Search Results - VBForums

Search:

Type: Posts; User: Bonnie West

Page 1 of 13 1 2 3 4

Search: Search took 0.07 seconds; generated 19 minute(s) ago.

  1. Replies
    1
    Views
    137

    Re: href buttons

    HTML-created buttons are windowless (they have no hWnd). The SendMessage API thus won't work on them.



    Try the example here (which I found by searching the forum).
  2. Re: Using mouse scroll wheel with VB scrollbar

    The Declare aliases aren't necessary as long as the loaded ComCtl32.dll is version 6 or higher (achieved by specifying it in the app manifest). However, since it appears that many VB6 developers...
  3. Re: Using Replace function in a mshflexgrid

    Dim r&, TextToReplace$, sTextMatrix$

    TextToReplace = " price adjusted for sales commission (.911)"

    With GridMisc
    For r = 1& To .Rows - 1&
    sTextMatrix = .TextMatrix(r, 2&)

    ...
  4. Re: Display custom control over form borders

    The ListBox component of a ComboBox isn't actually "embedded" in the ComboBox itself, unlike with the TextBox portion. It isn't a child of the ComboBox, nor of the parent Form. Rather, it is a child...
  5. Replies
    2
    Views
    128

    Re: Mysterious VBControlExtender

    See VBControlExtender Object, Add Method (Controls Collection) and How To Dynamically Add Controls to a Form with Visual Basic 6.0.



    Here's another example of creating an ActiveX control (the...
  6. Re: Download a web page into a text file

    In another recent thread, I posted a variation of the following. This might also work for you:



    Public Sub SaveWebPageToFile(ByRef URL As String, ByRef FileName As String, Optional ByRef...
  7. Replies
    10
    Views
    215

    Re: [RESOLVED] Unicode filename

    Sorry, but I'm not aware of any equivalent COM object faster than the ADO Stream object. You might want to search the VB6 CodeBank section for examples of using CreateFileW.
  8. Replies
    10
    Views
    215

    Re: Unicode filename

    Well, according to WinHTTP Versions:



    I didn't experience any issues here in Windows 7; not sure about other OSs, though.
  9. Replies
    10
    Views
    215

    Re: Unicode filename

    Here's another option:



    Option Explicit

    Private Sub Main()
    Dim sTitle As String

    sTitle = GetYouTubeTitle("https://www.youtube.com/watch?v=gi7gs4EGnCI")
  10. Re: you tried to execute a query that does not include the specified expression why?

    This has nothing to do with your question but I just wanted to point out something. You can retrieve the current system date by using the intrinsic Date function; there's absolutely no need for the...
  11. Replies
    21
    Views
    440

    Re: Finding text files on a directory.

    Some people (like myself) prefer to convey the same information using the Hungarian notation instead of Sigils.



    Assuming you meant to say UDT, note that sigils are invalid inside Type blocks....
  12. Replies
    21
    Views
    440

    Re: Finding text files on a directory.

    Regarding the $ suffix of the Dir function, I've always wondered - did the Dir function come in 2 flavors (Variant & String) in previous versions of VB? If so, that would help explain what seems to...
  13. Thread: Button

    by Bonnie West
    Replies
    2
    Views
    245

    Re: Button

    An alternative to the EnumChildWindows and GetWindowLong APIs is the GetDlgItem function. If the button is a standard button control, you can click it programmatically by sending the BM_CLICK message.
  14. Replies
    21
    Views
    440

    Re: Finding text files on a directory.

    The reason why I usually prefer calling the Unicode API equivalent of intrinsic VB6 functions/statements is not because I need to deal with Unicode characters, but because it is faster to call them...
  15. Replies
    21
    Views
    440

    Re: Finding text files on a directory.

    Here's a Unicode-aware example:



    Private Type WIN32_FIND_DATA
    dwFileAttributes As VbFileAttribute
    ftCreationTime As Currency
    ftLastAccessTime As Currency
    ...
  16. Re: [RESOLVED] How to get Unicode char on IME window in VB6?

    According to Handling Unicode in an IME-Aware Application:



    So, as already suggested before, creating a Unicode Edit control is your best bet.
  17. Re: how to check if a option box is chekced

    The Value property of OptionButtons is a Boolean so you'd check them the same way you would with any other Boolean expression - use the Or operator to test whether one of them is True:



    Private...
  18. Re: [VB6] Win7 Taskbar Features with ITaskbarList3 (overlay, progress in taskbar, etc

    Subclass, window and hook procedures are all considered callback procedures as well. ;) Whenever a callback has provision for a pointer-size parameter, you can pass an object pointer to it and have...
  19. Re: [VB6] Win7 Taskbar Features with ITaskbarList3 (overlay, progress in taskbar, etc

    I don't see why that would be a problem. Advanced VB coders have always wanted to integrate subclassing code in the Object module being subclassed (Form/MDIForm/UserControl/PropertyPage/UserDocument)...
  20. Replies
    4
    Views
    150

    Re: Waiting until called form is unloaded

    How about this example?



    Option Explicit 'In MDIForm1

    Private Sub MDIForm_Load()
    Form1.Show
    End Sub
  21. Re: Code for program to re-structure itself?!

    Such code is called Metamorphic code:
  22. Re: [VB6] Win7 Taskbar Features with ITaskbarList3 (overlay, progress in taskbar, etc

    There is a newer, much simpler and safer way of subclassing using ComCtl32.dll version 6. ;)
  23. Re: [RESOLVED] How To Combine Date Value And Time Values In 1

    Sorry, I just assumed Salsa knew what he was doing with his SQL string. :o
  24. Re: [RESOLVED] How To Combine Date Value And Time Values In 1

    Yeah, I'm aware one can perform arithmetic with Date types. However, the result I got (before I posted #2) seems to be wrong:


    "#10/02/2130 12:00:00 AM#,"

    when I selected today's date for...
  25. Re: How To Combine Date Value And Time Values In 1

    StrSql = StrSql & "#" & Format$(DtStartDate, "dd/mm/yyyy") & " " & Format$(DtStartTime, "Hh:Nn:Ss AMPM") & "#,"

    Bookmark this reference page.
  26. Re: Clone a UDT of Variable Size?

    Not sure if this has anything to do with the cloning issue, but it is still a good idea to ensure that you minimize padding in UDTs as much as possible. Rearrange the members so that most, if not...
  27. Re: want to know user agent when using VB6 webbrowser Control

    I suggest that you do a search on MSDN. You might find something that I've missed. Good luck!
  28. Re: want to know user agent when using VB6 webbrowser Control

    Unfortunately, the user agent will revert to the default WebBrowser control user agent (which is almost the same as that of IE's). Like I said, the Navigate method can only temporarily override the...
  29. Replies
    4
    Views
    179

    Re: mysql backup

    The Shell function doesn't know how to expand environment variables; the Environ$ function, OTOH, does. ;)
  30. Re: Clone a UDT of Variable Size?

    What sort of data types does your UDT contain? Can you provide an example? CopyMemory (and similar APIs) can only do a shallow copy of a UDT; if there are any pointer members, the data they're...
  31. Replies
    6
    Views
    184

    Re: Font dialogue box

    Krool's Class module replacement for the CommonDialog control does include the Font dialog.
  32. Re: Right Mouse Click in TextBox brings up strange menu

    (The OP seems to be satisfied already with the workaround he found, so this is for other people who stumbles upon this thread in the future.)

    The cleanest and most robust way, IMO, of...
  33. Re: want to know user agent when using VB6 webbrowser Control

    Pointing both Windows Internet Explorer and a VB6-hosted WebBrowser control to http://www.useragentstring.com/ yielded nearly identical user agent strings on my system (the only difference was that...
  34. Re: Is it possible to embed a sound clipping in a form?

    The attached zipped project below demonstrates several ways of playing waveform audio files (*.WAV) via the PlaySound API function.
  35. Re: Multi-line TextBox VbCrLf Anomaly

    You might want to check out a faster alternative to Firefox: Pale Moon
  36. Re: Special Characters In TextBox!

    This assumes you're using the code in post #3 and that there's a CommandButton and CommonDialog control in your Form using the default names:



    Private Sub Command1_Click()
    With...
  37. Re: how to show reg value in the textbox in vb

    DataMiser already told you what to do:




    Text1.Text = CreateObject("WScript.Shell").RegRead("HKLM\Software\Mysoftware\information")

    See the WshShell object's RegRead method to learn how to...
  38. Re: Special Characters In TextBox!

    Here's an alternative solution using regular expressions:



    Option Explicit

    Private m_RE As Object 'RegExp

    Private Sub Form_Load()
    Set m_RE = CreateObject("VBScript.RegExp") 'New...
  39. Re: how to show reg value in the textbox in vb

    Your posts contradict each other. You should have provided that latest detail in your initial post.

    When composing your initial post, take the time to ensure you've given all the necessary...
  40. Re: how to show reg value in the textbox in vb

    Text1.Text = CreateObject("WScript.Shell").RegRead("HKEY_LOCAL_MACHINE\Software\Mysoftware\information\Regdcode")
Results 1 to 40 of 486
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.