Search:

Type: Posts; User: si_the_geek

Page 1 of 13 1 2 3 4

Search: Search took 5.81 seconds.

  1. VS 2019 Re: Using hoot to create indexes of documents in a folder

    The message "too many arguments" means that you are passing too many values to the method (ie: you have more items inside the brackets than you are allowed).

    In this case you have only one item...
  2. Replies
    5
    Views
    278

    Re: Button2 not referenced !

    You can't reference controls before they are created, and the declarations section actually runs before the controls are created.

    Set the value of yb in the Load event instead.
  3. Replies
    1,975
    Views
    120,425

    Re: Corona virus, China major city lockdowns, etc.

    What you are describing there sounds like it might be what is often called "shrink-flation" (less product for the same price), but it might also just be that they altered the packaging to make it...
  4. Replies
    1,975
    Views
    120,425

    Re: Corona virus, China major city lockdowns, etc.

    While there is certainly truth in that, the idea of vaccinating people as soon as possible (and therefore not all of them at once) means that you are basically removing some of that flaming trash.
    ...
  5. VS 2012 Re: Giving values to a series of user control internal controls

    What you were using in VB 6 was Control Arrays, but they don't exist in the same way in VB.Net (there are several variations that give you more options).

    For this kind of thing you can simply...
  6. Replies
    6
    Views
    237

    Re: Error in IF statement

    When mixing And/AndAlso with Or/OrElse, use brackets where appropriate to indicate how they should be grouped (this ensures the behaviour you want, and helps readability).

    Your If statement could...
  7. Replies
    322
    Views
    30,929

    Re: Hamilton 5x World Champion ?

    It was a shame Max couldn't keep it on track at the critical moment, but it was great to see close competition at the front.

    I also liked the fact that my team McLaren did well, and should be...
  8. Replies
    15
    Views
    649

    Re: Sorting Array

    You certainly aren't the first to make that mistake - the naming of variations is all a bit confusing!

    I have now moved this thread to the 'Office Development/VBA' forum.
  9. Re: Webview2 Download Not Firing

    Done :)
  10. Replies
    5
    Views
    351

    Re: What are Google Sitelinks ?

    Thread moved to the 'General Developer' forum.
  11. Replies
    15
    Views
    649

    Re: Sorting Array

    Welcome to VBForums :wave:

    I have moved this thread from the 'VBScript' forum (for .vbs files etc) to the 'VB.Net' (VB2002 and later) forum
  12. Replies
    1,975
    Views
    120,425

    Re: Corona virus, China major city lockdowns, etc.

    I agree, nearly all countries did noticeably better than the US and UK.

    Despite the WHO making a very big deal of testing, we didn't have the testing system to make it work... and didn't get that...
  13. Replies
    1,975
    Views
    120,425

    Re: Corona virus, China major city lockdowns, etc.

    In several countries (including the UK and US) masks would have been in very short supply if they had been advised from the start.

    Here the NHS couldn't get enough equipment, and needed...
  14. Replies
    11
    Views
    441

    Re: Text from dll

    In that case it doesn't sound like a DLL is an appropriate solution.

    Changing a DLL is almost identical to changing the main program, and this extra work to link the two is just adding extra...
  15. Re: C: \ WINDOWS \ SETUP.LST invalid line in setup information

    Welcome to VBForums :wave:

    Thread moved to the 'Application Deployment' forum, which is where questions about installing/distributing your software belong
  16. Re: Why does my .exe file not work on another computer ?

    You can't change a project between .Net Core and .Net Framework - if you pick the wrong one, you need to create a new project using the right one.

    Be wary of the project type you create, one that...
  17. Re: Possible to create a custom control made from several controls?

    What you want is a User Control, which you can add via the Project menu.

    You can position controls (and write code) as if it is a form, and then when you Build the project it will be added to the...
  18. Replies
    8
    Views
    824

    Re: Why can't I post?

    Welcome to VBForums :wave:

    Go to the home page of our site: https://www.vbforums.com/forum.php

    ..then pick the forum that is most appropriate for your question, and click on it.

    When the...
  19. Replies
    3
    Views
    330

    Re: Database login in vb

    Welcome to VBForums :wave:

    Thread moved from the 'CodeBank VB.Net' forum (which is for you to post working code examples, not questions) to the 'VB.Net' forum
  20. Replies
    11
    Views
    387

    Re: Read from Excel file and release COM

    Base your code on TysonLPrice's example, especially including ReleaseComObject and using that - as that is what should ensure that Excel closes.
  21. Replies
    3
    Views
    275

    Re: vb.net MEMORY problems

    An array (or an alternative such as a List()) needs to store the items within it, plus a small amount of extra data for itself.

    It should be noted however that the extra memory usage is totally...
  22. Replies
    5
    Views
    386

    VS 2017 Re: Beginner Please Need Help

    Welcome to VBForums :wave:

    This style isn't valid:

    ElseIf Grade >= 50 < 60 Then
    You need to write it out more fully, like this:

    ElseIf Grade >= 50 And Grade < 60 Then
  23. VS 2019 Re: Edit TextBox of an UserControl from another CLass

    Tthe only new information that seems relevant is that you don't seem to have a variable/property that refers to the control, so you need to get it somehow, perhaps something like this:

    Dim UC1 as...
  24. VS 2019 Re: Edit TextBox of an UserControl from another CLass

    You should not use an Event for this, a Property is the way to go.

    To understand the difference between the two, think about a TextBox:
    the .Text property allows you to set/read the text
    the...
  25. VS 2019 Re: Edit TextBox of an UserControl from another CLass

    Welcome to VBForums :wave:

    In UserControl1 create a Property to set the text of the label. If you don't know how, see this: ...
  26. VS 2019 Re: NullReferenceException when adding list

    Welcome to VBForums :wave:

    Initially a List(of ...) is not set to anything (it is not even an empty list), so you need to initialise it appropriately by assigning an empty list to it.

    You can...
  27. Re: String was not recognized as a valid DateTime

    Assuming that the values that end up in updatestockquery look OK to you, try using a different format for the date values.

    Instead of:
    "yyyyMMdd HHmmss"
    try:
    "yyyy-MM-dd HHmmss"
    or:...
  28. Re: String was not recognized as a valid DateTime

    What are the values in Cells[10] and Cells[8] when the issue occurs?
  29. Re: VISUAL STUID 2017 scrooling image keeps moving

    The code in Timer1_Tick moves it up

    The code in PictureBox1_LocationChanged checks if it has moved down past a certain point (which it wont have, because it is moving up).


    You probably want...
  30. Re: Simple VB code for date comparison and formatting

    Welcome to VBForums :wave:

    Thread moved from the 'VB.Net' forum to the 'Office Development/VBA' forum... note that while it certainly isn't made clear, the "VB Editor" in Office programs is...
  31. Replies
    22
    Views
    738

    Re: Attemping to pull in lines from a DT

    You can simplify it using an array and a loop, eg:

    Private Sub StateColor()
    Dim controlsToColor() as Textbox = {tbALMiles, tbAKMiles, tbAZMiles,
    ...
  32. Replies
    22
    Views
    738

    Re: Attemping to pull in lines from a DT

    You can just add a Join to the SQL statement, and return the appropriate field, eg:

    SELECT STATE, ISNULL(SUM(MILES),0) AS TOTAL_MILES, ISNULL(SUM(GALLONS),0) AS...
  33. Replies
    16
    Views
    713

    Re: IDE0017 - Should I simplify all these?

    If I was the successor I would prefer it had been changed, but would understand if it wasn't.

    Doing a few at a time (and potentially giving up after a while) is certainly a valid approach :)
  34. Replies
    16
    Views
    713

    Re: IDE0017 - Should I simplify all these?

    Those two code blocks can be changed to these variations:

    frmCustomerService frmCustomerService = new frmCustomerService(txtCustNo.Text, tab, sdc)
    {
    StartPosition =...
  35. Replies
    27
    Views
    6,075

    Re: How to Save a TreeView to Text File?

    Debugging is examining what happens as the code runs, for example seeing which parts of the code actually run (due to If statements etc), what the values of variables etc are, and so on.

    There is...
  36. Replies
    530
    Views
    20,036

    Re: The US fragile democracy Exposed

    I'm fairly certain he wont do anything dangerous himself (he doesn't want to look bad), but I am concerned about what he will inspire his fans to do.

    The amount of weaponry they turned up with the...
  37. Replies
    530
    Views
    20,036

    Re: The US fragile democracy Exposed

    I think that is one of the features you get as a PowerPoster (2000+ posts)
  38. Replies
    530
    Views
    20,036

    Re: The US fragile democracy Exposed

    Time for some good news... Twitter has permanently banned Trumps account.

    I wonder what he'll do with his time now, does he still have access to the Nukes? :eek:
  39. Re: Best way to read a random line from a text file ?

    If you only call it once in total then it doesn't matter.

    If you might ever call it more than once while the program is running, then Delaney's suggestion is better (and the other is dodgy).

    ...
  40. Re: Best way to read a random line from a text file ?

    If the length of text on each line can be different, you do basically need to read the whole file (and store the data, at least temporarily), so your method is certainly valid.

    A List is a...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width