Search Results - VBForums

Search:

Type: Posts; User: Bonnie West

Page 1 of 13 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    1
    Views
    184

    Re: [VB6] Friend Callback Procedures

    The updated demo project below reorganizes most of the code and also now includes a Hook callback function inside the Class module.
  2. Re: How to mamage files with non-English names?

    Have you actually tried timing how long it really takes to loop through all your folders? What algorithm(s) or method(s) were you using? FSO? Shell? API? Have you considered just copying everything...
  3. Re: Problem with Public UDT: 'Only public user defined types......

    I doubt VB6 does something like that. I don't know the low-level details though, so I could be wrong.



    Thanks a lot! :thumb:



    After changing SystemMouseEvent's scope to Friend, the EXE...
  4. Re: VB6 user control and Win7 task bar focus problem

    Glad you figured it out. :)


    Don't forget to mark this thread :check: Resolved!


    http://www.vbforums.com/attachment.php?attachmentid=104683&d=1379286949
  5. Re: Problem with Public UDT: 'Only public user defined types......

    Yes, the scope of a callback function (or any other kind of procedure for that matter) isn't really important because in compiled code, there is no such distinction. What matters (to external codes)...
  6. Re: Problem with Public UDT: 'Only public user defined types......

    It appears that merely changing the scope of a procedure in a UserControl from Public to Friend isn't enough (at least in a Standard EXE). The following example shows one way of making it work...
  7. Replies
    1
    Views
    184

    [VB6] Friend Callback Procedures

    The attached project below demonstrates how to set up Friend procedures inside object modules (FRM, CLS, CTL, etc.) for Windows API callback purposes. The goal of such a technique is to keep as much...
  8. Re: VB6 user control and Win7 task bar focus problem

    The reason other windows don't get the focus when your main window minimizes is because the unseen Static window (whose size is 0x0 pixels) is actually visible to the OS and has a normal window state...
  9. Replies
    3
    Views
    182

    Re: MDI Form border problem

    That's because an MDIForm doesn't expose a BorderStyle property.


    @ ckcheah

    Try this simple class module: http://www.vbforums.com/images/attach/zip.gif clsGetWorkArea.zip. Here's an example of...
  10. Re: VB3 program saved in binary need to convert to text problem

    You might also want to check out the VB 1/2/3 Binary Form to Text Converter project that vbgamer45 links to in his VB6 CodeBank thread.
  11. Re: [VB6] CommandButton with image and text: No UCs, ActiveX, or OwnerDraw/subclassin

    Or more accurately, the IDE's Resource Editor add-in doesn't know about such icon sizes and depths, and consequently doesn't allow them.



    There's no need to resort to third-party resource...
  12. Re: [VB6] CommandButton with image and text: No UCs, ActiveX, or OwnerDraw/subclassin

    Icon resources seems to work just fine when loaded via the LoadImage function. The attached demo project below shows 4 ways of associating an icon with a CommandButton by sending the BM_SETIMAGE...
  13. Re: [RESOLVED] Get drives used space for multiple drives

    Why not get drive D's statistics first instead of the usual order? That way you won't have to reset the variables. I agree with dilettante, you really should be checking SHGetDiskFreeSpace's return...
  14. Re: Edit Control (EM messages) - Reset cursor

    I believe that is how carets are supposed to behave. Aside from "indicating the place at which text or graphics will be inserted", carets also serves as a visual cue that a particular window has the...
  15. Replies
    2
    Views
    206

    Re: Listen to copy

    Here's one of the top results from Google.
  16. Re: Edit Control (EM messages) - Reset cursor

    ? Len("The EM_GETLINECOUNT message does not pass additional parameters to the API in the ")
    82

    According to the documentation of the EM_LINEINDEX message, wParam specifies "the zero-based line...
  17. Re: Edit Control (EM messages) - Reset cursor

    SendMessageAsLong oRTB.hWnd, EM_SETSEL, 100&, 100& '<-- Same as oRTB.SelStart = 100&




    oRTB.SelStart = SendMessageAsLong(oRTB.hWnd, EM_LINEINDEX, lngLineNumber, 0&)
  18. Re: How Can I show Form2 Without Show all Project Forms !?

    Because when you activate any of the Forms in your app, VB automatically brings to the foreground all the other visible Forms as well. Most non-VB apps don't behave that way, so I guess you could...
  19. Re: How Can I show Form2 Without Show all Project Forms !?

    Can you attach your project to your next post (click the Go Advanced button and then the Manage Attachments button) so we can finally understand what it is that you want to happen?
  20. Re: Edit Control (EM messages) - Reset cursor

    Can you please tell us what you're trying to accomplish? Also, please show us how you've declared the relevant API functions and constants.
  21. Re: Get drives used space for multiple drives

    Try the properties of the FileSystemObject's Drive object instead:



    'You may also want to set a reference to the Microsoft Scripting
    'Runtime so you can early-bind the FSO for better...
  22. Re: how to disable the MDIForm in task bar

    See if this works:



    Option Explicit 'Paste in the MDIForm

    Private Const GWL_EXSTYLE As Long = (-20&)
    Private Const SW_HIDE As Long = 0
    Private Const SW_SHOW As Long...
  23. Thread: .

    by Bonnie West
    Replies
    0
    Views
    431

    .

    http://www.vbforums.com/image.php?u=147151&type=sigpic&dateline=1374042884
  24. Re: how to create new form while executing

    Here's an example:



    Option Explicit 'Paste this in a blank Form

    Private WithEvents List1 As VB.ListBox

    Private Sub Form_Load()
    Caption = "Click the ListBox's 1st item."
  25. Re: [InnoSetup] Create a new item in the Windows context menu

    See this recent post.
  26. Re: [RESOLVED] User Control Question - How do I add an Enabled Property

    As explained in that article, the Procedure ID is required so that if you disable the UserControl's container (either a Form, Frame, PictureBox or another UC), your UC will be treated by the...
  27. Replies
    4
    Views
    251

    Re: Task Bar Context Menu Close

    It looks like the CHILD's modal dialog box isn't really being owned by the MAIN form. You can confirm that by manually trying to set the focus to the MAIN form while the CHILD's modal dialog box is...
  28. Re: [RESOLVED] User Control Question - How do I add an Enabled Property

    The rationale for that requirement was explained in Allowing Your Control to be Enabled and Disabled:
  29. Replies
    4
    Views
    251

    Re: Task Bar Context Menu Close

    How about toggling a module-level flag variable before and after the modal dialog is shown?



    Private m_bModalDialogIsActive As Boolean

    Private Sub Command1_Click()
    ...
  30. Thread: Move Data

    by Bonnie West
    Replies
    1
    Views
    143

    Re: Move Data

    Private Sub RotateTextBoxes(ByVal TxtBox As Object)
    Dim LB As Integer, UB As Integer
    Dim i As Integer, sText As String

    With TxtBox
    LB = .LBound
    UB = .UBound
    ...
  31. Re: Need Full Understanding of VarPtr, StrPtr, ObjPtr

    Dynamic String arrays are trickier because dynamic Strings are actually composed of a pointer (the String variable itself) and the separately stored string data. If you were to substitute String...
  32. Re: Need Full Understanding of VarPtr, StrPtr, ObjPtr

    That table is for VB.NET! :eek: Here's the Data Type Summary table for VB6. ;)
  33. Re: Need Full Understanding of VarPtr, StrPtr, ObjPtr

    The Long data type actually occupies just 4 Bytes, not 8. ;)



    The amount of memory required for the array elements is calculated as:


    Number of Elements * Size of an Element

    Therefore,...
  34. Re: Need Full Understanding of VarPtr, StrPtr, ObjPtr

    The GetStrFromPtr function here shows one possibility.
  35. Re: Need Full Understanding of VarPtr, StrPtr, ObjPtr

    That's what pointers are for; they hold memory addresses (like 100110556) so you can dereference the value located at the address it points to.



    The empty string is most likely in the area of...
  36. Re: Need Full Understanding of VarPtr, StrPtr, ObjPtr

    That number is the virtual memory address where the empty string ("") is located. It's actually not a pointer.



    In the Random Access Memory of your PC, of course! ;) Seriously though, the empty...
  37. Re: Need Full Understanding of VarPtr, StrPtr, ObjPtr

    These articles might help you understand:

    Pointer (computer programming)

    How To Get the Address of Variables in Visual Basic

    Unofficial Documentation for VarPtr, StrPtr, and ObjPtr

    The...
  38. Re: Help Needed - Hijri to Gregorian Date convertion

    There's nothing wrong with the example code from the manual. You just need to pass the correct arguments:



    ? """"; ConvertDateString("5/28/1435", vbCalHijri, vbCalGreg, "d mmmm yyyy"); """"...
  39. Replies
    14
    Views
    836

    Re: Can a Function return an Array

    According to Matt Curland's tip that appeared in the 11th Edition of the VBPJ Technical Tips Supplement:
  40. Thread: Sleep?

    by Bonnie West
    Replies
    3
    Views
    568

    Re: Sleep?

    Maybe one of the options from Rob van der Woude's Scripting Pages site will work for you.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.