Search:

Type: Posts; User: Victor Bravo VI

Page 1 of 11 1 2 3 4

Search: Search took 0.08 seconds.

  1. Replies
    5
    Views
    4,466

    Re: looking for vb6idemousewheeladdin

    https://www.vbforums.com/image.php?u=147151&type=sigpic&dateline=1374042884
  2. Replies
    25
    Views
    19,096

    Re: Cpu Utilization in vb6

    The Performance Counters API can give you more than just the memory usage of a process — it can also tell you the CPU usage of any process, the utilization of the CPU (including per core/thread...
  3. Re: Installing the VB6 IDE on Windows 10 - 64 bit.

    Service Pack 6 for Visual Basic 6.0 (2004/3/25)
    https://web.archive.org/web/20210413035615/https://www.microsoft.com/en-us/download/details.aspx?id=5721


    Service Pack 6 for Visual Basic 6.0,...
  4. Replies
    25
    Views
    19,096

    Re: Cpu Utilization in vb6

    Indeed, there is.
  5. Re: Subclass ALL forms in an application

    See if the performance of the following WH_CBT hook solution is good enough for you:


    Option Explicit 'In a Standard (.BAS) Module

    Private Const HCBT_CREATEWND As Long = 3
    Private Const...
  6. Re: VB6 Question: Are there any tools that allow for disassembly of a binary?

    Dependency Walker
    Spy++ (download here)
    Resource Hacker
    Process Hacker (latest version here)
    Process Explorer, Process Monitor & other Sysinternals Process Utilities


    Explorer Suite
    ...
  7. Replies
    61
    Views
    18,233

    Re: C++ DLL to VB6

    You might be interested in these ANSI/Unicode one-liners as well.



    Typically, you don't need to use that API; simply letting the string go out of scope or setting it to vbNullString is enough...
  8. Re: [RESOLVED] VB6 command-line executable sending "result" code back to caller

    From a comment in OptionBase1's link:




    I don't know if VBA supports this, but you might want to consider using DDE, which VB6 has built-in support for.
  9. Re: Extend Picturebox WIDTH beyond it's MAX-Width

    Yes, there is, but be aware that Windows also has an upper limit:
  10. Replies
    8
    Views
    1,995

    Re: GET version from exe

    Quite possibly the most compact solution:


    MsgBox """" & CreateObject("Scripting.FileSystemObject").GetFileVersion("C:\My_Dir\My.exe") & """", vbInformation
  11. Re: Quickest way to Compare 2 Image or video Files

    Here's an alternative version:


    Option Explicit

    Private Const ALG_CLASS_HASH As Long = 32768
    Private Const ALG_SID_MD2 As Long = 1
    Private Const ALG_SID_MD4 ...
  12. Re: Quickest way to Compare 2 Image or video Files

    Well, yeah. As the name of that function implies, that simple code will only tell you whether 2 files are the same or not. If you need to know the exact byte range(s) of where 2 files differ, the...
  13. Re: Quickest way to Compare 2 Image or video Files

    I'm sorry, but can you please elaborate on what you mean by that?
  14. Re: Quickest way to Compare 2 Image or video Files

    https://www.vbforums.com/image.php?u=147151&type=sigpic&dateline=1374042884
  15. Re: Flashing a warning on the taskbar REVISITED

    Yes, as you would expect from a highly polished product, VB6 came with both a physical and electronic manual. In fact, Microsoft still hosts the electronic copy on their site to this day, as...
  16. Re: Flashing a warning on the taskbar REVISITED

    Well, you could begin with this chapter in the VB6 manual: Accessing DLLs and the Windows API.

    After that, you might want to peruse these:


    Win32 API Programming with Visual Basic
    Visual...
  17. Re: Flashing a warning on the taskbar REVISITED

    I believe what's actually happening is that the (keyboard) focus is transferred to your alarm window, thus making it appear as if your document window is unresponsive.



    Relinquishing (keyboard)...
  18. Re: Flashing a warning on the taskbar

    Option Explicit

    Private Declare Function AttachThreadInput Lib "user32.dll" (ByVal idAttach As Long, ByVal idAttachTo As Long, ByVal fAttach As Long) As Long
    Private Declare Function...
  19. Replies
    3
    Views
    7,195

    Re: [VB6] Force Foreground Window Demo

    Here's my reply in your thread.
  20. Re: Flashing a warning on the taskbar

    The following quotes are from el84's post in the linked thread above.



    Here are the relevant parts from the demo linked above:


    Option Explicit

    Private Enum BOOL
  21. Re: Flashing a warning on the taskbar

    Try this.



    https://www.vbforums.com/attachment.php?attachmentid=102911&d=1375178303
  22. Re: [RESOLVED] VB6 - IDE - how can i change the default control property value standa

    Hmm, I can't think of a reason why an elevated VB6 IDE wouldn't be able to properly register an add-in. 🤔

    If you're still interested in that add-in, let me know and I'll send you a PM with a link...
  23. Re: How to set form interior size (ScaleWidth and ScaleHeight) to specific dimensions

    There are Windows APIs designed exactly for this problem: AdjustWindowRect, AdjustWindowRectEx and AdjustWindowRectExForDpi.


    Private Declare Function AdjustWindowRect Lib "user32.dll" (ByRef...
  24. Re: Automatically Load most recent project at startup?

    Here it is:


    Option Explicit 'Connect.dsr

    Private Declare Function SetWindowsHookExW Lib "user32.dll" (ByVal idHook As Long, ByVal lpfn As Long, ByVal hMod As Long, ByVal dwThreadId As...
  25. Replies
    19
    Views
    3,390

    Re: Thanks....

    Be careful, though...


    And the winner of the international statistic of the year is...
    Riding lawnmowers kill average of 70 people each year, injure 80,000 more
    90 Americans Are Killed...
  26. Replies
    10
    Views
    2,665

    Re: [RESOLVED] Mouse move API problem.

    According to this (I've not verified it), yet another way of suppressing the screensaver is by handling the WM_SYSCOMMAND(SC_SCREENSAVE) message. But I agree with baka and the most popular answer in...
  27. Replies
    15
    Views
    3,665

    Re: Vb6: Get cookies with Inet control

    For future readers, here's a more efficient GetCookie/GetCookieEx implementation:


    Option Explicit 'In a blank Form

    Private Const ERROR_INVALID_PARAMETER As Long = 87
    Private Const...
  28. Re: I want to find the directory where the program is running

    Here's another example using the same GetModuleFileNameExW API but with lesser process access rights:


    Option Explicit 'In a blank Form

    Private Declare Function CloseHandle Lib "kernel32.dll"...
  29. Re: [RESOLVED] Programmatically Raise MouseUp event for a command button array

    Just post/send the WM_LBUTTONUP/BM_CLICK message:


    Option Explicit 'In a blank Form

    Private Declare Function PostMessageW Lib "user32.dll" (ByVal hWnd As Long, ByVal uMsg As Long, ByVal wParam...
  30. Replies
    10
    Views
    1,689

    Re: else if (uh boy)

    It can be made even more concise:


    Private Sub cmd_exit_Click()
    Dim FN As Integer, strFileName As String

    strFileName = "C:\lotto diary\OCR_8_2020_lottoPIK4" _
    &...
  31. Replies
    2
    Views
    1,127

    Re: magnification.dll example?

    [/QUOTE]https://www.vbforums.com/images/ieimages/2020/08/2.jpg
  32. Re: (howto get) xpos/ ypos of an icon in systray

    Private Type GUID
    Data1 As Long
    Data2 As Integer
    Data3 As Integer
    Data4(7) As Byte
    End Type

    Private Type NOTIFYICONIDENTIFIER
    cbSize As Long
    hWnd As...
  33. Re: Putting multiple lines of text in a Label's caption

    Well, as you know, there's hardly anything that can't be done in VB6. LaVolpe happens to have already worked out how to accomplish that in this CodeBank thread. Apparently, it was inspired by a...
  34. Re: Putting multiple lines of text in a Label's caption

    The usual approach is to associate a Property Page with the property, but you could also simply just allow developers to edit the control at design time.


    ...
  35. Re: Horizontal and Vertical Dot/Pixel Pitch from EDID

    I'm surprised the code in your Module1 doesn't cause a crash. The MonitorEnumProc procedure (myEnumDisplayMonitors in your code) that EnumDisplayMonitors calls is supposed to have 4 parameters but...
  36. Re: Putting multiple lines of text in a Label's caption

    Why couldn't you set it at run time?


    Private Sub Form_Load()
    Label1.Caption = "Foo" & vbNewLine & "Bar"
    End Sub



    If you really must do it at design time, try this:
  37. Re: Horizontal and Vertical Dot/Pixel Pitch from EDID

    There appears to be a bug in the above hastily written code—rather than supplying a monitor handle to all 4 functions, the loop index was passed instead. This explains why the 1st iteration of the...
  38. Re: MMcontrol question and guidance

    According to the documentation of the FileName Property:
  39. Re: MMcontrol question and guidance

    I assume you are talking about the Multimedia MCI Control. If so, then...



    I haven't tried this but according to the Command Property documentation, I believe it's "Save".



    Check out MCI...
  40. Replies
    5
    Views
    3,400

    Re: [VB6] Another "magnifier"

    Microsoft has had a Magnification API since Windows Vista but unfortunately for VB6-compiled programs, they can't make use of it when running on a 64-bit OS.
Results 1 to 40 of 404
Page 1 of 11 1 2 3 4



Click Here to Expand Forum to Full Width