Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 254.55 seconds; generated 7 minute(s) ago.

  1. Replies
    1
    Views
    59

    VS 2013 Re: Saving an edited Windows Form GUI

    No it's not possible, from the point of view of the form class that is defined in your application. Whatever you create in the designer and the code window before you build is the class so that's...
  2. VS 2017 Re: Torn Between IE 11/Web Browser Control and Edge/WebView2 Control

    https://docs.microsoft.com/en-us/microsoft-edge/webview2/concepts/distribution

    Seems like the Evergreen option would be the way to go. Especially now, when (I believe) WebView2 is still in preview...
  3. VS 2019 Re: Open File Explorer showing selected file or Search results?

    That is a contradiction in terms. You catch exceptions and your application crashes if an exception is thrown and goes uncaught. If an exception is thrown and you catch it then, by definition, there...
  4. VS 2019 Re: Open File Explorer showing selected file or Search results?

    If it's possible then it's not really anything to do with VB. It will be done via a commandline argument to the explorer.exe executable, so you should research what arguments are available. Whatever...
  5. VS 2017 Re: Set Location of controls on a flowlayoutpanel

    The whole point of a FlowLayoutPanel is that the layout flows. If that's not what you want then don't use a FlowLayoutPanel. Why exactly are you using a FlowLayoutPanel in the first place? Please...
  6. VS Code Re: Saving and loading user settings

    I just tested a NotifyIcon and, while it does appear to support binding, it doesn't seem to respond when a bound setting is changed. It did seem to read the correct value at startup but then didn't...
  7. VS Code Re: Saving and loading user settings

    Your attachment is invalid.

    Are you definitely creating the correct project type, i.e. VB, WinForms App, .NET Framework? If so, maybe your VS installation is corrupt and you should perform a...
  8. Replies
    2
    Views
    154

    VS 2019 Re: How to view 3D objects?

    It sounds rather like you're trying to run before you can walk. If you want to work with 3D in a Windows app then you really ought to be using WPF rather than Windows forms, so you should learn the...
  9. VS Code Re: Saving and loading user settings

    I just noticed that your question title is prefixed with VS Code but your screenshot indicates that you're using VS. Which is it? There are no visual project property pages in VS Code, as far as I'm...
  10. VS Code Re: Saving and loading user settings

    Actually, looking more closely at your code, I'm wondering whether you're breaking it yourself. Everything seems far more convoluted than is required. Try the following in a new project and see...
  11. VS Code Re: Saving and loading user settings

    Firstly, be aware that you can bind control properties to application settings. You can do this in the Properties window, using the (ApplicationSettings) node. That means not having to set properties...
  12. VS 2017 Re: Torn Between IE 11/Web Browser Control and Edge/WebView2 Control

    I would suggest using WebView2 as a first option but, if you think that you'll have users without Chromium-based Edge installed, have a WebBrowser option available as a backup. You can then warn...
  13. Replies
    288
    Views
    7,148

    Re: Presidential Debates

    I think that they are more divided than it appears on the surface too, because it's not just those who agree with Trump and those who don't. It's those who agree with Trump, those who disagree with...
  14. Replies
    288
    Views
    7,148

    Re: Presidential Debates

    I'll take that as a win. :)
  15. Replies
    288
    Views
    7,148

    Re: Presidential Debates

    I'm not sure that that's necessarily the case, particularly given that many would call Biden and those like him DINOs. It seems like many just want to claim that those at the interface between the...
  16. Replies
    288
    Views
    7,148

    Re: Presidential Debates

    That comment is no more meaningful now than the first time you posted it.
  17. Re: ComboBox using database index - a better way

    The one comment I would make there is that you should always set the DataSource last. In some situations it will make no difference but in others it might cause an event handler to thrown an...
  18. Replies
    6
    Views
    296

    Re: Random equation generator

    Here are some methods that you might find useful:

    Private rng As New Random

    Private Function GetNumberText() As String
    Dim number As Integer

    Do
    'Generate a number in the...
  19. Replies
    6
    Views
    284

    Re: App update system - better approach

    Is there a reason that you cannot use ClickOnce? Automatic updates is probably the most important feature of ClickOnce.
  20. Replies
    6
    Views
    296

    Re: Random equation generator

    Doing something random is .NET is always done pretty much the same way (unless for cryptographic purposes): use an instance of the Random class to generate a random number in an appropriate range and...
  21. Replies
    6
    Views
    296

    Re: Random equation generator

    Indeed. An equation, by definition, equates things. If there's no equality operator then there's no equation.
  22. Replies
    15
    Views
    659

    Re: Edit a text file.

    It doesn't imply that at all. You have to read the file regardless. If you use Copy Always then the source file will be copied from your project folder to the output folder every time the EXE is...
  23. Re: Drawing shapes on "canvas" and persisting when closing app

    You may benefit by reading through these two threads:

    https://www.vbforums.com/showthread.php?426684-Very-Simple-Drawing-Program&highlight=...
  24. Re: I Want to develop a CAM tool but don't know where to start

    Is it? The image you posted says:

    which would mean VB.NET.
  25. VS 2019 Re: Do you use Decimal, single, or double?

    Indeed, Integer and Double should be the default for whole and real numbers respectively, because these are the types that modern CPUs handle most efficiently. That's the reason that numeric literals...
  26. Replies
    15
    Views
    659

    Re: Edit a text file.

    Generally speaking, I would add a text file to a project exactly as I would any other item. I would right-click the project, select Add -> New Item and then select Text File as the item template to...
  27. Replies
    288
    Views
    7,148

    Re: Presidential Debates

    I'm not unhappy that his followers are flushing money down the toilet but it's a shame that he gets to benefit from it.
  28. Re: SQL - translate date to sequence as integer - timeline

    Is this for SQL Server? If so:

    https://docs.microsoft.com/en-us/sql/t-sql/functions/row-number-transact-sql?view=sql-server-ver15

    I just realised that you actually want separate sequences for...
  29. Replies
    288
    Views
    7,148

    Re: Presidential Debates

    It's kinda funny (in a sad way) that Trump said that it wasn't fair that there was no result on election night but, now that the result basically is known, he's saying that everyone should wait...
  30. VS 2019 Re: SQL Database to DatagridView - not populating

    Debug your code. Put a breakpoint on the Fill call and make sure that it executes successfully.
  31. Replies
    15
    Views
    659

    Re: Edit a text file.

    The whole point of resources is that they are not separate files, but data compiled into the assembly itself. They exist specifically so that they can't be changed or deleted. If you want to edit a...
  32. Re: How to generalize the name of a DataGridView object?

    WinForms has been supported in .NET Core since version 3.0. That said, a WinForms application is likely targeting .NET Framework so any library to support such an application should target .NET...
  33. Re: How to generalize the name of a DataGridView object?

    No, it doesn't mean that at all. I didn't even register the C# bit at the start. Why the hell have you posted in the VB.NET forum in the first place if this is a C# question? How about you respect us...
  34. Re: How to generalize the name of a DataGridView object?

    You need to define a class in this library that contains a method that does this work on the grid. You declare a parameter on that method of type DataGridView and then use that in the code. Any...
  35. VS 2017 Re: How To Save and Load Text File From and To DataGridView

    It's not about whether the dialogue has opened correctly. It's about what action the user took in the dialogue. The ShowDialog method returns a DialogResult value. There may be times when you don't...
  36. VS 2017 Re: How To Save and Load Text File From and To DataGridView

    No you don't. What do you think you're doing here?

    That says "if it is true that one value is equal to another value then". You already asked about If statements elsewhere and had it explained to...
  37. VS 2019 Re: How do I distribute my VB app to a friend ?

    Maybe take a look at the Publish page of the project properties. If you had researched ClickOnce, which you really ought to have by now, then I'd expect you to have been led to that page by now. This...
  38. Replies
    4
    Views
    247

    VS 2017 Re: Sharing Variable Between Two Forms

    Whatever you are trying to do, you're doing it the wrong way. You haven't actually explained what you're trying to achieve though - only how you're trying to achieve it - so it's hard to suggest...
  39. Replies
    2
    Views
    157

    VS 2010 Re: Encoding bytes into string

    A Byte is just a single numeric value. When you convert data to binary form you get a Byte array, not a single Byte. That's what you should be declaring your variable as because that's what...
  40. VS 2005 Re: How to write the interface code as shown in the asp.net language ?

    If you want to do web development then you need to learn how to do web development. Asking others to implement the entire UI for you is not really on. As always, you need to learn the principles...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width