Search Results - VBForums

Search:

Type: Posts; User: Bonnie West

Page 1 of 12 1 2 3 4

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

  1. 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...
  2. 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...
  3. 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...
  4. 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...
  5. Replies
    2
    Views
    189

    Re: Listen to copy

    Here's one of the top results from Google.
  6. 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...
  7. 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&)
  8. 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...
  9. 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?
  10. 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.
  11. 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...
  12. 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...
  13. Thread: .

    by Bonnie West
    Replies
    0
    Views
    386

    .

    http://www.vbforums.com/image.php?u=147151&type=sigpic&dateline=1374042884
  14. 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."
  15. Re: [InnoSetup] Create a new item in the Windows context menu

    See this recent post.
  16. 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...
  17. Replies
    4
    Views
    219

    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...
  18. 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:
  19. Replies
    4
    Views
    219

    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()
    ...
  20. Thread: Move Data

    by Bonnie West
    Replies
    1
    Views
    133

    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
    ...
  21. 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...
  22. Re: Need Full Understanding of VarPtr, StrPtr, ObjPtr

    That table is for VB.NET! :eek: Here's the Data Type Summary table for VB6. ;)
  23. 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,...
  24. Re: Need Full Understanding of VarPtr, StrPtr, ObjPtr

    The GetStrFromPtr function here shows one possibility.
  25. 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...
  26. 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...
  27. 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...
  28. 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"); """"...
  29. Replies
    14
    Views
    737

    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:
  30. Thread: Sleep?

    by Bonnie West
    Replies
    3
    Views
    548

    Re: Sleep?

    Maybe one of the options from Rob van der Woude's Scripting Pages site will work for you.
  31. Re: Opera doesn't accept startup Parameters .

    According to your link, Opera only supports 4 command line options for its Windows version. Unfortunately, "-newtab <URL>" isn't one of them.
  32. Replies
    8
    Views
    392

    Re: How do I activate keyboard shortcuts?

    Didn't the code in post #2 work for you?
  33. Re: RegisterHotKey and ProcessMessages issue...

    That's the pitfall of using the WaitMessage function.



    I've used a subroutine very similar to your ProcessMessages() procedure some time ago and I've realized that it's a very hackish way of...
  34. Re: Click a Website Button using VB 6

    Why automate clicking the Google Search button when you can just send your search query directly to Google? ;)



    Private Sub cmdSrch_Click()
    wb1.Navigate "http://www.google.com/search?q=" &...
  35. Replies
    8
    Views
    392

    Re: How do I activate keyboard shortcuts?

    If you're done with this thread, please don't forget to mark it :check: Resolved! Thanks!


    http://www.vbforums.com/attachment.php?attachmentid=104683&d=1379286949
  36. Thread: Sleep?

    by Bonnie West
    Replies
    3
    Views
    548

    Re: Sleep?

    See this post. Since VB6's Shell function isn't available in VBScript, you'll have to use CreateObject("WScript.Shell").Run instead.
  37. Thread: Playlist?

    by Bonnie West
    Replies
    4
    Views
    261

    Re: Playlist?

    That's because the music variable's value keeps changing every time you assign a new string to it. Therefore, it will always contain only the last value that you've assigned to it.



    You have a...
  38. Re: How To Disable Keyboard Functions In A Form?!

    techgnome probably meant you either invoke another control's SetFocus method during the Form_Activate() event or set the TabIndex property of another control to 0 at design time.



    My question...
  39. Re: I'm Trying To Use VB6 To Change The System Path . . . And Not Having Any Luck

    Yeah, and in addition to updating the relevant Registry entries, one also needs to broadcast a WM_SETTINGCHANGE message:
  40. Re: [RESOLVED] Adding items to a ListView with LVM_INSERTITEM: not working

    Well, in that case, you might be interested to see Krool's ListView UserControl.
Results 1 to 40 of 477
Page 1 of 12 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.