Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 0.88 seconds.

  1. VS 2022 Re: [RESOLVED] Confirmation dialog box not showing

    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...
  2. VS 2022 Re: Confirmation dialog box not showing

    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...
  3. VS 2022 Re: Confirmation dialog box not showing

    If timerRunning AndAlso (RdoCustomStopTime.Checked OrElse RdoPredefinedStopTime.Checked OrElse RdoNoStopTime.Checked) Then
    ' Display a confirmation dialog
    Dim result As DialogResult =...
  4. Re: RC6 error adding item to a cCollection with an empty string as a key (vb6 col can

    Moved to the VB6 forum. CodeBank forums are for sharing working code.
  5. Re: .txt file read for acad polyline conversion

    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...
  6. Re: how to show a string value in a double variable

    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...
  7. Re: how to show a string value in a double variable

    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...
  8. Re: I detached a database from SQL Server Object Explorer

    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...
  9. Re: How to load HTML file in Webview2 TinyMCE?

    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...
  10. Re: How to load HTML file in Webview2 TinyMCE?

    What actually happens? What is the value of fq?
  11. Re: I detached a database from SQL Server Object Explorer

    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...
  12. Replies
    48
    Views
    6,681

    Re: Problem with conversion of values

    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...
  13. Replies
    2
    Views
    1,652

    Re: Vb.net chart annotation

    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...
  14. Re: I installed vs2015 and the vb6 classic add on, which can import vb6 code, but...

    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...
  15. Re: VS 2008 is it free to download anywhere? I don't find any working links

    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...
  16. Replies
    2
    Views
    291

    VS 2022 Re: How to open new forms in one window?

    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...
  17. Replies
    8
    Views
    1,837

    Re: Creating Installer

    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...
  18. Replies
    7
    Views
    411

    VS 2019 Re: Displaying HTML in Rich Text Box

    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...
  19. Replies
    7
    Views
    411

    VS 2019 Re: Displaying HTML in Rich Text Box

    Just be aware of the pricing and license for that.
  20. Replies
    7
    Views
    411

    VS 2019 Re: Displaying HTML in Rich Text Box

    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...
  21. Re: how to have the treeview the whole height of the page

    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...
  22. Re: how to have the treeview the whole height of the page

    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...
  23. Re: how to have the treeview the whole height of the page

    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.
  24. Replies
    3
    Views
    390

    Re: Form Show - Disposing Form

    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...
  25. Re: [RESOLVED] Return same dialog box input value twice in one line with other text s

    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...
  26. Replies
    5
    Views
    277

    Re: vbnet how to date format in Listview

    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...
  27. Replies
    5
    Views
    277

    Re: vbnet how to date format in Listview

    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...
  28. Replies
    5
    Views
    277

    Re: vbnet how to date format in Listview

    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...
  29. Replies
    12
    Views
    801

    Re: loading forms

    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...
  30. Re: Process failing to open file

    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...
  31. Re: VS2022 Transparent Backcolor doesn't work

    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...
  32. Replies
    13
    Views
    807

    Re: PictureBox rotation.

    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...
  33. Replies
    2
    Views
    1,264

    Re: Multi-Monitor ScreenShots

    Thread moved from VB.NET, which is for asking questions, to VB.NET CodeBank, which is for sharing working code.
  34. Replies
    8
    Views
    1,837

    Re: Creating Installer

    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?
  35. Replies
    8
    Views
    1,837

    Re: Creating Installer

    Thread moved From VB.NET to Application Deployment forum.
  36. Replies
    13
    Views
    807

    Re: PictureBox rotation.

    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...
  37. Re: how to make the headers of txt file in one row

    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,...
  38. Replies
    13
    Views
    807

    Re: PictureBox rotation.

    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...
  39. Replies
    13
    Views
    807

    Re: PictureBox rotation.

    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...
  40. Re: Export time value from Datagridview to Excel

    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...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width