Search:
Type: Posts; User: jmcilhinney
Search:
Search took 2.27 seconds.
-
You would only need to invoke that method on the UI thread if the current method could be executing on a different thread. The Click event handler of a Button is never going to be, so invoking is...
-
I wouldn't have thought so but I wonder whether your Invoke call has anything to do with it. That's pointless anyway so you should get rid of it and just call Close. See whether that makes a...
-
If timerRunning AndAlso (RdoCustomStopTime.Checked OrElse RdoPredefinedStopTime.Checked OrElse RdoNoStopTime.Checked) Then
' Display a confirmation dialog
Dim result As DialogResult =...
-
Moved to the VB6 forum. CodeBank forums are for sharing working code.
-
You could use a TextFieldParser. The documentation for that class has a code example.
You could also just do something like this:
For Each line In IO.File.ReadLines(filePath)
Dim fields...
-
I can tell you what that error message means but not why you're getting it. The compiler things that the result of (rsZins / 100) is a String and there is no String.ToString overload that takes a...
-
I just wrote this code:
Dim rsZins As Double = 12.5
Dim s = (rsZins / 100).ToString("P1")
It compiled without issue with Option Strict On and, when I ran it, s contained "12.5%". You're...
-
I just took a look and realised that your terminology was accurate in the first place - there is a window named SQL Server Object Explorer in VS. Not one I've ever used as I don't think it can do...
-
The fact that you don't see something on the screen does not mean that nothing is happening.
That's not an answer to the question I asked. In future, if you ask for help and someone asks you a...
-
What actually happens? What is the value of fq?
-
Are you talking about the Object Explorer window in SSMS or the Server Explorer window in VS? I'm assuming the former but, even if it's the latter, this question has nothing to do with VB.NET. Please...
-
No you don't, because that's not a thing. You should already know that. You don't create the data reader. It is created when you call ExecuteReader on a command. You might have one command that you...
-
Can you do it in the designer? If so, do so, then open the designer code file and see what code was generated. To make the designer code file visible in the Solution Explorer, you need to click the...
-
The page for that extension says that it is not feature-complete and that it was last updated in 2020. I doubt that it is, in its current state, intended for working on forms and is more for...
-
Ther's a reason that that conversion tool hasn't been provided since 2008. As suggested, the results were generally so bad that you'd spend as much or more time fixing the errors as you would writing...
-
As suggested, you can display a new form and close the previous form each time. If you do that, be sure to configure the app to close after the last form rather than after the startup form.
The...
-
Look at Environment.GetFolderPath and My.Computer.FileSystem.SpecialDirectories for some of the special Windows folders that .NET respects. Both ClickOnce and the first-party Setup Projects extension...
-
I thought that I'd responded to this but apparently not. You can deploy any Interop assembly with your app that you like. You wouldn't be able to deploy the original COM component though. If you...
-
Just be aware of the pricing and license for that.
-
Do you have access to Microsoft Word, because it should be able to do it. It's not an ideal solution but it should work. That said, maybe it would have similar trouble with images, given the...
-
Yes I do but it should if you did it right, so either you did something wrong or something is broken in your project or on your system. We can't work out which or what if all you do is keep telling...
-
Sounds like you did something wrong. Create a new form, add a ToolStrip, then add a TreeView. The ToolStrip will be docked to the Top by default. Set the Dock for the TreeView to Left. Does it work...
-
There's no need to set the Height if you set Dock. Dock the ToolStrip to Top first, then Dock the TreeView to Left. That should give you the effect you want.
-
I'll do some testing myself too. Maybe I was making an incorrect assumption. A dialogue is dismissed when you set the DialogResult property so maybe it is only in that case that the form needs to be...
-
If you want to do string concatenation then you should use the concatenation operator (&) rather than the addition operator. Both will work in many scenarios but the latter will fail in some where...
-
If you are going to use a DataGridView, you would need to set the DefaultCellStyle.Format property of the appropriate grid column to the same format specifier as above. If you create your columns in...
-
If you're determined to use a ListView then you need to format each individual DateTime value as you convert it to a String. If you simply call ToString and provide no format specifier, you're going...
-
I strongly recommend that you don't use a ListView in the first place. If you're not using groups or multiple views then using a ListView is pointless and you're just making things harder for no...
-
That is unnecessary. When a form is displayed by calling ShowDialog, closing it does not dispose it, so you actually do have to dispose it explicitly or via a using block. When you display a form by...
-
Don't hardcode a path like that if you can possibly avoid it. You should be using Environment.GetFolderPath and specifying System or SystemX86 for the SpecialFolder value as required. I believe that...
-
I think you're mistaken that that works anywhere. WinForms simply doesn't support real transparency and what you describe is how it always works. Please provide an example with steps that we can...
-
As .paul. says. I would assume that you created your clock by handling the Paint event of a control and using e.Graphics to draw lines. That's GDI+. In this case, you would presumably call...
-
Thread moved from VB.NET, which is for asking questions, to VB.NET CodeBank, which is for sharing working code.
-
Any specific reason that you're using that folder? You really shouldn't be. Any specific reason you couldn't use a more appropriate folder?
-
Thread moved From VB.NET to Application Deployment forum.
-
If the point of the project was to learn how to rotate a control then abandoning it is the right option. If rotating the control was just a means to an end though, there's no need to abandon the...
-
If you wrote them to one line then they're in one line. If a particular application doesn't display them in one line then it's probably because it has word wrap turned on in its settings.
BTW,...
-
Note that controls in WinForms are drawn using GDI+ too, which is why you can draw on them that way. If you create a custom control then you determine how it is drawn so you could give it the...
-
You don't rotate controls. Rotating the Image within the control is what you do. Either rotate the Image itself or else draw on the PictureBox in its Paint event handler and use RotateTransform to...
-
If they are text to begin with and you're writing them as text then it may be that Excel is interpreting them as numbers because they look like numbers and leading zeroes are not displayed for...
|
Click Here to Expand Forum to Full Width
|