Search:

Type: Posts; User: si_the_geek

Page 1 of 13 1 2 3 4

Search: Search took 3.38 seconds.

  1. Replies
    13
    Views
    861

    Re: code conversion from vb.net to vb6.0

    XmlWriter is specific to .Net, and there is no VB6 equivalent that I am aware of (bear in mind that VB6 is older than XML).

    You would need to re-write the code entirely, so it is best to ask in...
  2. Replies
    4
    Views
    174

    Re: Recordset closure error.

    Welcome to VBForums :wave:


    We have anti-spam measures here, including a system that means some posts from new users are temporarily hidden until they are checked by a moderator - your first post...
  3. Replies
    63
    Views
    2,021

    Re: Ignoring moderators

    Well I guess some people might want to shave by candle light (during a power outage), so it isn't that bad... unlike the warning labels on packets of nuts, eg: "warning: may contain nuts"
    ...
  4. Replies
    9
    Views
    436

    Re: Project Gets Lost Somewhere

    The likely reason for the issues is not the order of references etc, but the fact that the contents of one of them is unknown.

    As a library is missing, the compiler cannot tell if it contains a...
  5. Replies
    3,760
    Views
    367,109

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

    https://www.vbforums.com/member.php?39991-manavo11

    He moved to Bristol about 10 years ago, and we met up several times for drinks over the first couple of years... we even had a visit one weekend...
  6. Re: DllRegisterServer failed with error code 0x80004005

    Near the bottom of that programs list should be a folder called "Windows System", and Command Prompt should be in there.
  7. Replies
    63
    Views
    2,021

    Re: Ignoring moderators

    Moderators and Admins sometimes need to deal with rule violations etc and communicate something about that in a thread... In order for that to work, we need everybody to see our post.

    The forum...
  8. Re: DllRegisterServer failed with error code 0x80004005

    Another potential issue is that for this you should run command prompt as an admin (it doesn't happen automatically, even if you user is an admin).

    To do that, right-click on the link to command...
  9. Re: DllRegisterServer failed with error code 0x80004005

    If you are using command prompt, you can do it like this:

    cd c:\windows\syswow64
    regsvr32.exe "c:\PathToDll\dllname.dll"
    ...or:

    c:\windows\syswow64\regsvr32.exe "c:\PathToDll\dllname.dll"
  10. Re: DllRegisterServer failed with error code 0x80004005

    If you are using a 64-bit version of Windows and the dll is 32-bit, you need to use the version of regsvr32 in the windows/syswow64 folder
  11. Replies
    12
    Views
    497

    VS 2019 Re: Progress Bar count users + Timer

    That .ToString does not belong there at all, and it is causing the issue.

    The .Value property wants a number, and accountCount is a number... you shouldn't be converting anything to/from String.
  12. Replies
    15
    Views
    767

    Re: Many old unresolved threads

    Some threads can't be solved. Sometimes that is because it is technically impossible (such as: how do I determine the date format from "3/4/21") , and other times it is because the thread starter...
  13. VS 2019 Re: Drag & drop to Specific Listview folder

    I would assume that if there is no node at the specified point, the .GetNodeAt method will return Nothing/Null.

    As such, you should ensure that the Selected variable doesn't contain Nothing before...
  14. 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...
  15. Replies
    15
    Views
    767

    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.
  16. Replies
    3,760
    Views
    367,109

    Re: [RESOLVED] Corona virus, China major city lockdowns, etc.

    That is heavy for rain :D

    I think an editing is more appropriate this time
  17. Replies
    12
    Views
    585

    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...
  18. 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...
  19. Replies
    6
    Views
    416

    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.
  20. Replies
    2
    Views
    922

    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.
  21. Replies
    6
    Views
    411

    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...
  22. 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
  23. Replies
    6
    Views
    411

    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...
  24. Replies
    7
    Views
    544

    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...
  25. Re: Can someone tell me what the story is here?

    Sometimes his third eye really could predict the future! :afrog:
  26. 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...
  27. 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...
  28. Replies
    15
    Views
    868

    Re: Extra Value that is EMPTY

    Like this:

    If DBNull.Value.Equals(Me.DgUnitsUp.Rows(i).Cells(8).Value) Then
  29. 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...
  30. Replies
    6
    Views
    723

    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...
  31. Replies
    3
    Views
    385

    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 & "'...
  32. 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...
  33. 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 =...
  34. 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...
  35. 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"
  36. Replies
    424
    Views
    61,041

    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.
  37. Replies
    424
    Views
    61,041

    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...
  38. Replies
    8
    Views
    618

    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...
  39. Replies
    8
    Views
    618

    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
  40. Re: how to delete rows based on calculation

    You actually want our Office Development forum, so I have moved this thread there. :)
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width