Search:

Type: Posts; User: dday9

Page 1 of 13 1 2 3 4

Search: Search took 1.12 seconds.

  1. Replies
    5
    Views
    185

    VS 2017 Re: Toggle between two images based on filename

    The file is loaded dynamically every time based on the ternary If in the CheckChanged event. If the CheckBox is checked then it loads {partialFilename}_TOP.bmp otherwise it loads...
  2. Replies
    7
    Views
    156

    Re: Help with best practice for loading data

    I feel your pain on this. I am currently on a project with similarly bad naming that we only have read access to.
  3. Replies
    7
    Views
    156

    Re: Help with best practice for loading data

    Since they are essentially static lookup tables, what I would do is create a strongly typed object to represent the table and then store a collection of those objects in the My namespace during your...
  4. Re: Converting VB6 CrystalReport SectionFormat to C#

    In my case, I had to correlate the GF1 and TITLE values to their respective sections in the report's .cs file and then set those section's EnableSuppress to true:

    // filter["EnableSuppress"] = [0,...
  5. Replies
    20
    Views
    693

    Re: CCur Function

    This thread kind of spiraled out of control, but my original restatement (post 3) of Dil's post is more or less correct.

    Just a reminder, I am rewriting a VB6 application (originally written VB3...
  6. Re: Converting string to Phonetic Alphabet (Alpha, Beta, Charlie)

    The alphabet can be described pretty easily in a Dictionary(Of Char, String) where the Key would represent the letter and the Value would represent the phonetic equivalent.

    Once you have the...
  7. Replies
    2
    Views
    127

    Re: Speech to Text question

    You should be able to leverage the SpeechRecognitionEngine's SetRecognitionToWaveFile (documentation) method.

    What all have you tried up to this point?
  8. Replies
    2
    Views
    4,503

    Re: [JQuery] TabControl

    To clarify, this was a codebank submission and not a request for code. Also, it may be useful to reference the library you're using as it looks like your code is dependent on the jQuery UI library...
  9. Replies
    9
    Views
    262

    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...
  10. Replies
    9
    Views
    262

    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...
  11. Replies
    4
    Views
    181

    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...
  12. Replies
    5
    Views
    185

    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...
  13. Replies
    10
    Views
    277

    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()}
    ...
  14. Re: [RESOLVED] How do I Automatically update a text box, using a NumbericUpDown Box

    Ah I see, I misunderstood.
  15. 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.
  16. Replies
    20
    Views
    693

    Re: CCur Function

    Ok, so essentially it is a decimal with higher precision for the first four digit?
  17. Replies
    20
    Views
    693

    [RESOLVED] 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...
  18. 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.
  19. 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
    ...
  20. Thread: Post Race!

    by dday9
    Replies
    64,957
    Views
    6,275,302

    Re: Post Race!

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

    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...
  22. Thread: Post Race!

    by dday9
    Replies
    64,957
    Views
    6,275,302

    Re: Post Race!

    I have noticed some unusual hostilities lately.
  23. Replies
    18
    Views
    540

    Re: [RESOLVED] Prevent Main Form from Continuing

    I've done that too :blush:
  24. Replies
    18
    Views
    540

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

    Re: Prevent Main Form from Continuing

    Even better, thank you.
  26. 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...
  27. Replies
    18
    Views
    540

    Re: Prevent Main Form from Continuing

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

    [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...
  29. 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...
  30. 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
  31. Thread: Login Form Help

    by dday9
    Replies
    4
    Views
    263

    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...
  32. Replies
    26
    Views
    738

    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...
  33. 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:
  34. Replies
    26
    Views
    738

    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...
  35. Replies
    26
    Views
    738

    VS 2019 Re: Save text file to disk?

    I'm curious, how did WriteAllText not suffice?
  36. Replies
    392
    Views
    8,239

    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
  37. Replies
    392
    Views
    8,239

    Re: The US fragile democracy Exposed

    179802
  38. Replies
    392
    Views
    8,239

    Re: The US fragile democracy Exposed

    I am genuinely surprised with the Ossoff/Perdue race. Not so much with the Warnock/Loeffler race.
  39. Replies
    392
    Views
    8,239

    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...
  40. Replies
    2
    Views
    864

    Re: IP Address control (v4)

    Was there any reason why the MaskBox wouldn't suffice?
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width