Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 0.42 seconds; generated 19 minute(s) ago.

  1. VS 2019 Re: Datagridview values create folder names

    Put some thought into it. This is your application, not ours. If you are going to use a loop to get the data from the grid into a list and then use another loop to get the data from the list to...
  2. VS 2019 Re: Datagridview values create folder names

    So are you able to populate the list with the data you want or not?
  3. VS 2019 Re: Datagridview values create folder names

    What's wrong with using a loop? Don't try to copy LINq code that you don't understand. Presumably you know the baqsics of writing a loop. Put some thought into the logic instead of expecting to find...
  4. VS 2019 Re: Datagridview values create folder names

    You're asking multiple unrelated questions here. Stick to one thing at a time. Getting data from a DataGridView is the same no matter what you want to do with it, so creating folders is irrelevant to...
  5. Replies
    5
    Views
    162

    VS 2022 Re: Searching Form for label text

    Your explanation is too vague. If you're looking for text then you're goinmg to be comparing Strings. Comparing a String is the same no matter where it comes from, so you can find out how to do that...
  6. Replies
    2
    Views
    106

    VS 2017 Re: Unable to run exe program

    What do those applications do at startup? What framework are they targeting?
  7. Replies
    2
    Views
    100

    Re: Where are my dots ?

    I just opened the documentation for the Int32.ToString method that you're using. A couple of links later, I was reading the information specifically relevant to this question.
    ...
  8. VS 2019 Re: Problem Writing to Multi-Line Textbox and Streamwriter at Same Time

    OptionBase1 is correct. You could call AppendText on the TextBox but there would be little point because you wouldn't see the result until the end anyway, and it would slow things down. Using the...
  9. VS 2019 Re: Problem Writing to Multi-Line Textbox and Streamwriter at Same Time

    That's because you keep setting the Text property over and over, thus replacing the existing value. You should be calling the AppendText method.
  10. Replies
    5
    Views
    151

    Re: there is no row at position error

    Also, I'm not sure if maybe you have changed the code to simplify things for this thread but, if it's what you're actually using, this part is ridiculous:

    Select Case True
    Case LoadForm =...
  11. Replies
    5
    Views
    151

    Re: there is no row at position error

    I repeat:

    At a quick glance, I don't see anywhere in the code you actually posted that that exception could be thrown. We shouldn't have to spend our time trying to work out stuff that you already...
  12. Replies
    5
    Views
    151

    Re: there is no row at position error

    Perhaps you could actually tell us where in this extensive code the exception is thrown. Regardless, if you want to perform an action only if a condition is true then you use an If statement for that.
  13. Re: how to make a picturebox click fire a keypress event

    Nope. That's bad. What's the point of passing a hard-coded value into a method that then checks that value? Get rid of the parameter and the If statement. Put the If statement in the KeyPress event...
  14. Replies
    2
    Views
    155

    VS 2022 Re: UWP App how to save Data

    Given that VB and C# use all the same types with all the same members, there's no reason that you should have absolutely no clue if you've found C# examples. Unless it uses advanced features, reading...
  15. VS 2010 Re: X close button not closing the Form (hangs)

    The Invoke method is synchronous, i.e. it doesn't return until the invoked method does. BeginInvoke is asynchronous, i.e. it returns immediately, not waiting for the invoked method to complete. I...
  16. Re: Why there is Parentheses at the end of the List in C#

    You know how to call methods in C#, right? A constructor is basically just a method. Do you use parentheses when calling any other method? Yes you do, so why would you not when calling a constructor?...
  17. Re: How to delete consecutive blank lines in richtextbox

    You're assuming something that the OP didn't specify. Maybe you're right but the OP said "empty lines" and a line containing whitespace is not empty. Regardless, the logic is still the same so they...
  18. Replies
    6
    Views
    242

    Re: vb.net Issue with dbnull

    Unfortunately, Option Strict Off is the default and most tutorials and many courses don't mention it until fairly late on or even not at all. That default does make it easier for beginners to get...
  19. Re: How to delete consecutive blank lines in richtextbox

    Dim lines = myRichTextBox.Lines.ToList()

    'Loop backwards so that removing a line will not affect the index of the lines still to be processed.
    For i = lines.Count - 1 To 1 Step -1
    If...
  20. Re: Why there is Parentheses at the end of the List in C#

    That would be an object initialiser. When you use an object initialiser along with a parameterless constructor, you can include the parentheses or omit them.
  21. Re: Why there is Parentheses at the end of the List in C#

    What exactly do you not understand about this?
  22. Replies
    6
    Views
    242

    Re: vb.net Issue with dbnull

    As suggested, the main issue is that you're comparing the cell itself, rather than the Value of the cell. Even with that fix, you can still improve the structure of the code. Don't use the IsDBNull...
  23. VS 2010 Re: X close button not closing the Form (hangs)

    Get rid of the Application.Exit call too. If this is your startup form then closing it will exit the app anyway, so calling Application.Exit is also pointless and possibly doing so could cause the...
  24. VS 2010 Re: X close button not closing the Form (hangs)

    Firstly, why are you calling Application.Exit and then using End? Never use End at all but, if you were going to, calling Application.Exit first would be pointless. The point of Application.Exit is...
  25. Re: Copying/Installing font used in WinForm project

    I have no idea what that means.

    The page you linked to provides an actual example. What don't you understand? You load fonts from files into the collection, you create a Font, you use it. What's...
  26. Replies
    1
    Views
    223

    Re: Internal GPS

    There are some NuGet packages related to GPS so that's probably a good place to start.
  27. Re: Should I use a Class or a Structure, (Matrix Tool)

    Structures are value types but arrays are classes and therefore reference types. Copying a structure that contains an array will not copy the array; only the reference to the array. If you then...
  28. VS 2022 Re: Random String Function returns same result

    The issue is as Shaggy says. NEVER create a Random object in a method. You should most likely use a Shared field, so even different instances of the same type will use the same Random object.

    This...
  29. Re: Copying/Installing font used in WinForm project

    I've never done it myself but I think that you need to use the PrivateFontCollection class. This allows your app to use fonts that it supplies rather than having them installed in Windows.
  30. Re: A database project thoughts & basic questions

    No reason it shouldn't.

    VS 2022 Community Edition.
  31. Re: Trying to Stop a service and restart a different service in VB

    If your issue is resolved, please use the Thread Tools menu to mark the thread Resolved, so we can all see without opening the thread and reading the whole thing.
  32. Re: How to invoke the MouseMove event after clicking on a button

    I use CheckBoxes plenty too. I even said that using a CheckBox in this case was the proper solution. The OP is already using a Button so using a CheckBox with the Appearance set to Button will retain...
  33. VS 2022 Re: Grammar/ Spell Checker for RichTextBox in VB.NET 6.0/ VS 2022

    Are you saying that you want an existing component or you want to implement it yourself? If the latter then you can underline text in a RichTextBox by selecting the appropriate text and then setting...
  34. VS 2022 Re: Grammar/ Spell Checker for RichTextBox in VB.NET 6.0/ VS 2022

    The latest version of VB.NET is VB 2022. There's no such thing as VB.NET 6.0. There was VB 6 last century, then there was VB.NET (which was VB 7) and that was referred to as VB.NET 2002 when the next...
  35. Re: How to invoke the MouseMove event after clicking on a button

    This is the proper solution. You can set the Appearance of a CheckBox control to Button and then it will look exactly like a Button control. Instead of the Checked property corresponding to a check...
  36. Replies
    3
    Views
    192

    Re: Get Directories

    One small point. If you're going to be calling Append and get an IEnumerable(Of DirectoryInfo) from that then you should probably call EnumerateDirectories rather than GetDirectories. The former...
  37. Replies
    3
    Views
    192

    Re: Get Directories

    You can call Append or Prepend on your array to create a new list with the extra item. You can enumerate that list directly or call ToArray on it if you really need an array.
  38. Replies
    7
    Views
    365

    VS 2008 Re: Problem in number

    Double should be used over Decimal in the majority of cases. It's the default type for non-integers for a reason. There's nothing in the question to indicate that this is one of the minority of cases...
  39. Replies
    7
    Views
    365

    VS 2008 Re: Problem in number

    That's not really a solution because then everyone would end up using Decimal all the time, when it should only be used when it's specifically required. The proper solution is probably to only...
  40. VS 2012 Re: Search to run in DGV2 based on Text Typed in DGV1's Column

    Or you could just paste it inside CODE tags, like everyone else does.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width