Search:

Type: Posts; User: si_the_geek

Page 1 of 13 1 2 3 4

Search: Search took 4.83 seconds.

  1. Re: Search String Array by Multiple Words

    Change the order of the loops, so that for each file you can check how many words match.

    eg:

    For Each file In files
    Dim foundWords = 0
    For Each searchWord As...
  2. Replies
    15
    Views
    496

    Re: Load Event Aborting

    In some circumstances errors that occur in the Load event get swallowed up, try moving the code to the Shown event instead, as that doesn't have the same issue.
  3. Re: [RESOLVED] Corona virus, China major city lockdowns, etc.

    That is heavy for rain :D

    I think an editing is more appropriate this time
  4. Replies
    12
    Views
    372

    Re: Moving PictureBox with Timer

    Welcome to VBForums! :wave:

    Instead of checking the entire .Location , you should be checking just the part that changes (the .Location.Y).

    It would also be a good idea to not check for an...
  5. Re: The $5,000 electric car-5G battle vs. new energy vehicle battle

    No they haven't, it is about 10%

    The reason for the rise is because we are not using coal any more, because is bad for the environment. We haven't got enough renewable power supply yet...
  6. Replies
    6
    Views
    288

    Re: troubles working with double

    This seems to be a typo:

    if MyArray(n,1)=MyArrayy(m=1) then
    Presumably you wanted: m, 1

    Currently you are only specifying one dimension of a 2 dimensional array.
  7. Replies
    1
    Views
    615

    Re: rest sharp code is not working

    Thread moved from the CodeBank forum (which is for working examples, not questions) to the ASP.NET And ASP.NET Core forum.
  8. Replies
    6
    Views
    300

    Re: Question WRT cursors

    In that case this part of my post is probably your best option:


    To do that, at the point in your code you have Cursor.Hide() , for the sake of recording the video also do something like...
  9. Re: Work with the application each time with a different comoboxvalue

    There is a guide to debugging (including breakpoints etc) here:
    https://docs.microsoft.com/en-gb/visualstudio/debugger/navigating-through-code-with-the-debugger
  10. Replies
    6
    Views
    300

    Re: Question WRT cursors

    Several video recording apps add their own image of a cursor (because the actual cursor isn't included in screenshots, which is part of how they record).

    There should be an option within the video...
  11. Replies
    7
    Views
    448

    Re: Error when saving SQL view

    Update statements are generally in this format:

    UPDATE tablename SET fieldToUpdate = newValue WHERE aUniqueField = valueOfTheUniqueField

    In that case you should use VB code to create a new...
  12. Re: Can someone tell me what the story is here?

    Sometimes his third eye really could predict the future! :afrog:
  13. Re: Can someone tell me what the story is here?

    I'm not sure of the timing, but it might have been due to one of the times we met up, and he tried to work out how to pronounce the name of the beer I wanted (a local beer called Butcombe)... for a...
  14. Re: Can someone tell me what the story is here?

    The most significant one was actually a snake game, but included some kind of spyware thing.

    The thread: https://www.vbforums.com/showthread.php?269853-My-Snake-Game-RESOLVED


    There have been...
  15. Replies
    15
    Views
    746

    Re: Extra Value that is EMPTY

    Like this:

    If DBNull.Value.Equals(Me.DgUnitsUp.Rows(i).Cells(8).Value) Then
  16. Re: windows 10: how disable Just-In-Time on programs execution?

    We can only guess, there are far too many possibilities and we don't have any information to narrow it down.

    I recommend trying to work out what is different when it works (eg: do you have...
  17. Replies
    6
    Views
    571

    Re: Optimise a For loop VB.net

    The ideas from Niya and jmcilhinney are definitely worth considering, but you can also get big improvements from your current style by optimising the Ucase calls (or equivalent).

    You are running...
  18. Replies
    3
    Views
    338

    Re: Datagridview data from SQL database

    You haven't got the syntax right there, this section:

    DgUnitsUp.Rows(i).Cells(0).Value & "'" And Units = DgUnitsUp.Rows(i).Cells(1).Value
    ...should be:

    DgUnitsUp.Rows(i).Cells(0).Value & "'...
  19. Re: windows 10: how disable Just-In-Time on programs execution?

    The program crashed before the JIT Debugger was involved (if you hadn't got that message, you would have got a normal "program crashed" error message).

    The JIT Debugger just gives you a chance to...
  20. Re: SQL Connection to different database based on username

    Welcome to VBForums :wave:

    Instead of doing the Declaration and the Initialisation together, separate them out, eg:


    Public SQLCon As SqlConnection
    Dim currentUser As String =...
  21. VS 2019 Re: Numeric Up Down Autosize not changing size

    A NumericUpDown can only contain numbers, so there is no option for text in it.

    A fairly standard way for a user to indicate an infinite number of loop iterations is to use -1 as the value; but...
  22. Re: Can't Access Properties Of Declared Instance Of A Class

    This looks like a typo:

    x,DataProviderName = "System.Data.SqlClient"
    It is presumably meant to be:

    x.DataProviderName = "System.Data.SqlClient"
  23. Replies
    411
    Views
    57,585

    Re: Hamilton 5x World Champion ?

    The Indy scandal was bad, too much politics going on to allow the race to happen properly.

    The highlight of that race was somebody throwing beer in front of Schumi's car.
  24. Replies
    411
    Views
    57,585

    Re: Hamilton 5x World Champion ?

    That race day was painful to watch... I'm glad I only saw the highlights.

    Thankfully the teams etc are getting together to try to change the rules so that it can't happen again. The governing...
  25. Replies
    8
    Views
    509

    Re: Can this be made 'cleaner'?

    One option that might work is:

    for i = 1 to n
    For j = 1 To limit
    If test_is_false Then Exit For
    Next j
    If j <= limit Then
    <do stuff> ' because test was true limit times
    End...
  26. Replies
    8
    Views
    509

    Re: Can this be made 'cleaner'?

    Here is one way it could be done:

    for i = 1 to n
    Dim AllTrue as Boolean = True
    For j = 1 To limit
    If test_is_false Then
    AllTrue = False
    Exit For
    End If
    Next j
  27. Re: how to delete rows based on calculation

    You actually want our Office Development forum, so I have moved this thread there. :)
  28. Re: Establish sub-forums for vbRichClient and twinBasic

    This site was created for discussing VB, so the various versions of VB (and things included with it like WPF) all belong here.

    Other languages/tools/libraries/etc are debatable, and are basically...
  29. Thread: TwinBasic

    by si_the_geek
    Replies
    496
    Views
    52,232

    Re: TwinBasic

    There were several, to varying degrees.

    No, that would be a waste of my time. Not only would they be out of context, but there were also some attacks in there.


    It is time for these off-topic...
  30. Thread: TwinBasic

    by si_the_geek
    Replies
    496
    Views
    52,232

    Re: TwinBasic

    Keep it on topic folks, and stay away from personal attacks.

    I have deleted most of the posts from today (and a few from a couple of days ago).

    Due to the large quantity of posts today, some...
  31. Replies
    3
    Views
    292

    Re: Is This Ciode Correct?

    The Microsoft site allows you to pick a language (C# or VB, and sometimes others) via a drop-down at the top-right of the page.

    In this case, if you select VB on that page the examples are:

    '...
  32. Thread: TwinBasic

    by si_the_geek
    Replies
    496
    Views
    52,232

    Re: TwinBasic

    It is fine to create multiple threads in Other Basic, then if/when a twinBASIC forum is created I (or other moderators) will move the threads across.
  33. VS 2019 Re: textfileparser not working as expected - vb.net 4.6 - vs 2019 - mysql

    For an explanation of why you should be using parameters (and links to code examples), see the article Why should I use Parameters instead of putting values into my SQL string? from our Database...
  34. Replies
    5
    Views
    709

    Re: Code each item of ComboBox

    Welcome to VBForums :wave:

    I have moved this thread from the 'VB.Net' forum to the 'Office Development/VBA' forum.
  35. Thread: TwinBasic

    by si_the_geek
    Replies
    496
    Views
    52,232

    Re: TwinBasic

    While TwinBasic is similar to VB6, it is different - so the VB6 forum is not right, and OtherBasic is the place.

    If it becomes popular (as it looks like it might), we would certainly consider a...
  36. Re: Application interperting textbox context as SQL Code

    The ' character (and various other characters, or combinations of characters) can cause problems - including severe security issues.

    You can avoid all of those issues by using Parameters to pass...
  37. Re: bad reply from esp32 on rfcomm bluetooth

    Welcome to VBForums :wave:

    Thread moved from the 'VB.Net' forum to the 'C#' forum
  38. Replies
    20
    Views
    1,444

    Re: HTML sub directory problem

    No they aren't - they can be, but it depends on the server, as Niya mentioned:



    While in one particular example you found that they seemed to be linked, that does not mean that all (or even...
  39. Re: [RESOLVED] Corona virus, China major city lockdowns, etc.

    That is the dirty spelling (used for the liquid that shows a man has "finished" being excited)... you were thinking of: come
  40. Replies
    411
    Views
    57,585

    Re: Hamilton 5x World Champion ?

    A 'demolition' race would certainly make the news if it happened!

    I suspect the penalties for attempting it would be rather harsh tho.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width