Search:

Type: Posts; User: si_the_geek

Page 1 of 13 1 2 3 4

Search: Search took 1.05 seconds.

  1. Replies
    8
    Views
    676

    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...
  2. Replies
    3
    Views
    235

    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
  3. Replies
    11
    Views
    261

    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.
  4. Replies
    3
    Views
    195

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

    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
  6. 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...
  7. 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...
  8. 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: ...
  9. 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...
  10. 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:...
  11. Re: String was not recognized as a valid DateTime

    What are the values in Cells[10] and Cells[8] when the issue occurs?
  12. 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...
  13. 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...
  14. Replies
    22
    Views
    617

    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,
    ...
  15. Replies
    22
    Views
    617

    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...
  16. Replies
    16
    Views
    615

    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 :)
  17. Replies
    16
    Views
    615

    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 =...
  18. Replies
    27
    Views
    5,866

    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...
  19. Replies
    530
    Views
    16,573

    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...
  20. Replies
    530
    Views
    16,573

    Re: The US fragile democracy Exposed

    I think that is one of the features you get as a PowerPoster (2000+ posts)
  21. Replies
    530
    Views
    16,573

    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:
  22. 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).

    ...
  23. 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...
  24. Replies
    10
    Views
    797

    [VB.NET] Re: Games in Vb.net

    The signature is the bottom part of the post (in my case starting with the MVP logo, in Jacobs case starting with "Useful Forum Tips:").

    If you can't see them, at the top-right of the page click...
  25. Re: ASP NET Core on Apache Servers

    Neither of them are wrong.

    .Net Core can be installed on those different platforms.

    it is not installed on Vodahost.


    If your host doesn't have it installed (and wont allow you to install...
  26. Replies
    3
    Views
    712

    Re: Create OutlookFolder

    Our 'Office Development/VBA' forum is more appropriate for this question, so I've moved the thread there.
  27. Replies
    8
    Views
    440

    Re: Legacy Conversion Fun

    The good news is that for VB6 you can edit the watch so that you automatically break when the value changes, it makes the hunting much easier.
  28. VS 2019 Re: Trouble populating then updating a text box

    You will repeatedly get values from the same record, unless you use .Read to move to the next record.
  29. Replies
    3
    Views
    267

    Re: Donation Problem

    It certainly doesn't look very modern... hopefully that is because they are focussing all their efforts on the software they make, but it isn't ideal.
  30. Replies
    3
    Views
    267

    Re: Donation Problem

    Welcome to VBForums :wave:

    I'm afraid this is nothing to do with VBForums, it seems that you are referring to this site: http://nuke.vbcorner.net/default.aspx
    (which has a link to VBForums, but...
  31. Replies
    311
    Views
    28,975

    Re: Hamilton 5x World Champion ?

    The drivers market seems to have settled now, and there are some potentially interesting things there, especially with the new people and the returning Alonso.


    In terms of teams, things are...
  32. VS 2019 Re: Trouble populating then updating a text box

    Actually the IsNull function used there is basically "If (field) Is Null Then 0 Else (field)"

    So it is just a way to avoid returning Null - any rows that are Null will be treated as 0 instead. In...
  33. Replies
    4
    Views
    1,412

    Re: Is there a bug in the latest upgrade ?

    I've moved this thread to the .NET Architecture & Design forum
  34. VS 2017 Re: In vb.net error Command text was not set for the command object

    Welcome to VBForums :wave:

    Your seem to have missed an SQL statement, or got confused with your variables.

    This is the important section of code:
    You assign an SQL statement to sqlStr
    You...
  35. VS 2019 Re: DataTable Adding Pirmary Key Values when adding a new row

    Rather than generating the number yourself, set the field to be an Identity field (or called AutoNumber in Access based databases). The details of how you do that vary based on the database system...
  36. Replies
    311
    Views
    28,975

    Re: Hamilton 5x World Champion ?

    George had a brilliant race - shame about the team (radio fail led to the wrong tyres), and the bad luck (the puncture).

    He is certainly a star of the future, and will get a good chance soon...
  37. Replies
    10
    Views
    646

    Re: I need help, please.

    Welcome to VBForums :wave:

    Due to our spam protection features, posts from some new members don't become visible until they are manually approved by moderators - and the system has chosen you to...
  38. Replies
    311
    Views
    28,975

    Re: Hamilton 5x World Champion ?

    I expect George Russell to be a bit slower than Bottas, but it is a good chance for him to show off his skills - and if he does perform better than Bottas, it could boost his career a lot (maybe even...
  39. Replies
    7
    Views
    583

    Re: Syntaxe sql - multi table

    In that case you just need to use the same kind of code for each of the tables you want to add data to (so for 3 tables, you would have 3 blocks of code like that, one for each table).


    As...
  40. Replies
    311
    Views
    28,975

    Re: Hamilton 5x World Champion ?

    It's hard to keep the driver away from others, for example if there is a crash (even a small one) then the marshals are likely to need close contact with the driver.

    There are also several...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width