Search:

Type: Posts; User: dday9

Page 1 of 13 1 2 3 4

Search: Search took 1.15 seconds.

  1. Replies
    9
    Views
    218

    Re: Best way to append data into a textbox?

    You can use a TextBox, just keep in mind that Strings are immutable. Once String is created its data can't be changed, rather what happens is an entirely new String is created when you concatenate a...
  2. Replies
    9
    Views
    218

    Re: Best way to append data into a textbox?

    I would suggest using a ListBox since it is designed to display simple collections.

    Take a look at this example with a ListBox and a Button:

    Private Sub Button1_Click(sender As Object, e As...
  3. Replies
    4
    Views
    155

    Re: Images as checkboxes

    It looks like you have put quite a bit of work into this, though I wouldn't agree with creating a new control just to toggle an image.

    However, if you want to avoid doing something that has...
  4. Replies
    2
    Views
    125

    VS 2017 Re: Toggle between two images based on filename

    Here is how I would approach it:

    Get the filename from the open file dialog
    Store the value in a global variable without the _TOP or _BTM suffix
    Load the image by appending the suffix...
  5. Replies
    10
    Views
    236

    Re: Bizarre string concatenation issue

    I would ignore using the concatenation and go with interpolation since you're using VS2017:

    Function BaseString() As String
    Return $"<iframe
    width={WBrowser.Width.ToString()}
    ...
  6. Re: [RESOLVED] How do I Automatically update a text box, using a NumbericUpDown Box

    Ah I see, I misunderstood.
  7. Replies
    1
    Views
    101

    VS 2012 Re: For / Next Loop fails on last XML node

    Just a heads up, I wrapped your code in
    tags. They help format your code. For more information you can visit the link in my signature.
  8. Thread: CCur Function

    by dday9
    Replies
    19
    Views
    524

    Re: CCur Function

    Ok, so essentially it is a decimal with higher precision for the first four digit?
  9. Thread: CCur Function

    by dday9
    Replies
    19
    Views
    524

    CCur Function

    I am trying to convert a piece of VB6 code and running into a Function that I'm not familiar with, the CCur function.

    According to the documentation (here) it looks as if the currency data type is...
  10. Re: How do I Automatically update a text box, using a NumbericUpDown Box

    I don't know if you saw or not, but that is what I did in my example.
  11. Re: How do I Automatically update a text box, using a NumbericUpDown Box

    There are a couple of notes:

    You have Option Strict turned off
    You can use ToString and pass the currency format
    You will need to leverage the ValueChanged event of the NumericUpDown
    ...
  12. Thread: Post Race!

    by dday9
    Replies
    64,953
    Views
    6,255,538

    Re: Post Race!

    Well this Shaggy Hiker fellow and his accomplice wes4dbt are a just a few.
  13. Replies
    12
    Views
    14,106

    Re: [HTML5] Tic Tac Toe

    My original submission is 6.5 years old. I figured I would rewrite it with how I would do it now.

    This submission uses ES6 JavaScript and sets text rather than leveraging a canvas.

    <!DOCTYPE...
  14. Thread: Post Race!

    by dday9
    Replies
    64,953
    Views
    6,255,538

    Re: Post Race!

    I have noticed some unusual hostilities lately.
  15. Replies
    18
    Views
    488

    Re: [RESOLVED] Prevent Main Form from Continuing

    I've done that too :blush:
  16. Replies
    18
    Views
    488

    Re: [RESOLVED] Prevent Main Form from Continuing

    Same here, only with typescript which is basically if JavaScript and C# had a baby. It really has been a while since I've done any VB development.
  17. Replies
    18
    Views
    488

    Re: Prevent Main Form from Continuing

    Even better, thank you.
  18. Re: [RESOLVED] How do I use a combobox to make images and labels visible or hidden

    Because you have several controls that you're wanting to toggle the visibility on, I would suggest storing a Dictionary where the Key would represent the item in the ComboBox and the Value would...
  19. Replies
    18
    Views
    488

    Re: Prevent Main Form from Continuing

    End did it. Don't know why I didn't think of it.
  20. Replies
    18
    Views
    488

    [RESOLVED] Prevent Main Form from Continuing

    It has been a while since I've done any WinForm applications and I'm running into a slight issue.

    I have the following in the constructor of my frmMain:

    Sub New()
    Using loginForm = New...
  21. Re: [RESOLVED] Boolean expression and Syntaxe problem

    Personally I don't believe in intellectual property laws, but if I am working with someone who wants to avoid potential copyright issues (for images) I will:

    Go to www.bing.com
    Bring up the...
  22. Re: [RESOLVED] Boolean expression and Syntaxe problem

    Mais bruh, put that up in the game demos! https://www.vbforums.com/forumdisplay.php?63-Game-Demos
  23. Thread: Login Form Help

    by dday9
    Replies
    4
    Views
    249

    VS 2019 Re: Login Form Help

    Quick side note, you should never store password in an insecure manner like what you're doing, but I get this is for class.

    What I would do is loop until you run out of lines or until you pass...
  24. Replies
    26
    Views
    706

    VS 2019 Re: Save text file to disk?

    I would highly recommend you going through my tutorial that I provide for free. The link can be found in my signature under VbLessons.

    I put a lot of effort into it and I genuinely feel like you...
  25. Re: Boolean expression and Syntaxe problem

    There shouldn't be any difference between the two. According to the documentation (here), it specifically addresses your situation:
  26. Replies
    26
    Views
    706

    VS 2019 Re: Save text file to disk?

    You should really read the documentation on MSDN.


    https://docs.microsoft.com/en-us/dotnet/visual-basic/programming-guide/program-structure/references-and-the-imports-statement

    Reading the...
  27. Replies
    26
    Views
    706

    VS 2019 Re: Save text file to disk?

    I'm curious, how did WriteAllText not suffice?
  28. Replies
    365
    Views
    7,345

    Re: The US fragile democracy Exposed

    It looks like the police opened the barricades to let the "demonstrators" in: https://twitter.com/cevansavenger/status/1346920924310867968?s=21
  29. Replies
    365
    Views
    7,345

    Re: The US fragile democracy Exposed

    179802
  30. Replies
    365
    Views
    7,345

    Re: The US fragile democracy Exposed

    I am genuinely surprised with the Ossoff/Perdue race. Not so much with the Warnock/Loeffler race.
  31. Replies
    365
    Views
    7,345

    Re: The US fragile democracy Exposed

    Fox News was getting heat ever since calling Nevada (or Arizona, can't remember which) for Biden early on.

    Many Republicans saw it as an intentional gamble to call it super early in favor of Biden...
  32. Replies
    2
    Views
    808

    Re: IP Address control (v4)

    Was there any reason why the MaskBox wouldn't suffice?
  33. Replies
    53
    Views
    1,237

    Re: Do you use ()'s for your IF statements?

    I personally use the parenthesis around my If statements, even if it is just a single check. Mostly out of habit, not for any specific reason.

    Side note: COBOL is very verbose, but not very...
  34. Replies
    365
    Views
    7,345

    Re: The US fragile democracy Exposed

    What I personally don't understand is what Republican's think would happen if by some wild outcome the Electoral College votes are rejected.

    Constitutionally, wouldn't it go back to the house to...
  35. Replies
    365
    Views
    7,345

    Re: The US fragile democracy Exposed

    (read point 2 in the list of differences in post 112)
  36. Replies
    365
    Views
    7,345

    Re: The US fragile democracy Exposed

    I disagree. I would wager a small fortune that their (unstated) intent was to politically posture just like the Republicans are doing now knowing that it won't go anywhere in the house. They are...
  37. Replies
    365
    Views
    7,345

    Re: The US fragile democracy Exposed

    I was recently pointed to another event where this has happened by a Republican friend of mine. Barbara Boxer and Stephanie Tubbs Jones objected to the certification of Bush's 2004 win in Ohio which...
  38. Replies
    26
    Views
    706

    VS 2019 Re: Save text file to disk?

    See post 8.
  39. Replies
    26
    Views
    706

    VS 2019 Re: Save text file to disk?

    You are trying to combine a console application project example with your windows form application. That might work sometimes, but not in this case.

    Try moving the code inside of your sub to...
  40. Replies
    26
    Views
    706

    VS 2019 Re: Save text file to disk?

    If the file c:\temp\MyTest.txt does not exist, then it will create a new file with the line: "Hello and Welcome"
    Regardless of if the file exists or not, it will always append the line: "This is...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width