Search Results - VBForums

Search:

Type: Posts; User: Bonnie West

Page 1 of 13 1 2 3 4

Search: Search took 0.05 seconds.

  1. Re: How to identify a specific disk, media or flash memory

    Have you considered making use of the volume label?

    You can give any drive a unique label by simply renaming it through Windows Explorer. Then you can figure out its drive letter using code like...
  2. Re: How to mamage files with non-English names?

    Well, according to the documentation of the CopyFile function:



    Since you were passing True, the API function therefore failed when you told it to overwrite an existing file.



    You can...
  3. Replies
    16
    Views
    327

    Re: Converting C to VB problem

    Correct me if I'm wrong, but my understanding is that when a static array is a member of a UDT, that array's elements becomes part of the UDT, while on the contrary, the elements of a dynamic array...
  4. Re: VB6 Input Validation to Disallow an All Alpha Character Field

    Glad to hear that! :) Good luck with the rest of your project!



    Oh, BTW, please don't forget to mark this thread :check: Resolved! Thank you!

    ...
  5. Re: VB6 Input Validation to Disallow an All Alpha Character Field

    That's most likely because strISBN couldn't be coerced to a number (it probably contained alphabetic character(s)). In the above expression, the highlighted subexpression is evaluated first before...
  6. Re: VB6 Input Validation to Disallow an All Alpha Character Field

    The following validation code is based on the ISBN Wikipedia article:



    Private Sub Text1_KeyPress(KeyAscii As Integer)
    Const PROMPT = "You may only enter numbers!" & vbNewLine & vbNewLine...
  7. Re: How to mamage files with non-English names?

    There is always (well, almost) an API-based approach because the Windows APIs are ultimately what wrappers like FSO, Shell, ADO, etc. call behind the scenes. The Windows APIs, however, were designed...
  8. Re: [VB6] TaskDialogIndirect: Complete class implementation of Vista+ Task Dialogs

    Sorry, but I'm not aware of any. I believe, however, that it's better to use dialog units because it is a device-independent measurement. The task dialog will be able to retain its proportions...
  9. [VB6] modLockEnumCase.bas - Enforce Case of Enums

    The VB6 IDE has an annoying quirk when it comes to the case of Enum members. Unlike with other identifiers, the IDE doesn't enforce the case of an Enum member as it was declared in the Enum block....
  10. Re: [VB6] TaskDialogIndirect: Complete class implementation of Vista+ Task Dialogs

    Bug report:


    Public Property Let Width(Value As Long): uTDC.cxWidth = Width: End Property

    Should be:


    Public Property Let Width(Value As Long): uTDC.cxWidth = Value: End Property
  11. Re: How to mamage files with non-English names?

    You're probably aware by now of the FileSystemObject. You probably know that it is Unicode-aware and that it has all sorts of methods for dealing with the file system. Browsing through its available...
  12. Re: [VB6] TaskDialogIndirect: Complete class implementation of Vista+ Task Dialogs

    Indeed. The MessageBox function has an MB_TASKMODAL flag whereas TaskDialogIndirect has no such equivalent.





    Here's another approach that doesn't require a callback procedure.
  13. Re: [VB6] TaskDialogIndirect: Complete class implementation of Vista+ Task Dialogs

    It's also possible to obtain a handle to an icon resource (even in the IDE) via LoadResPicture(IconID, vbResIcon).Handle. However, in cases where it refuses to load the newer icon formats, the...
  14. Re: [VB6] TaskDialogIndirect: Complete class implementation of Vista+ Task Dialogs

    Unfortunately, yes. I tried replacing the older RC.EXE that came with VB6 with the one from the Win 7 SDK, but still, VB6's Resource Editor add-in complains that your icons are "Invalid Icon Files"....
  15. Re: [VB6] TaskDialogIndirect: Complete class implementation of Vista+ Task Dialogs

    The TaskDialogCallbackProc callback function can be reduced and made more efficient at the same time by simply modifying the type of its last parameter:



    Public Function...
  16. Replies
    1
    Views
    356

    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.
  17. 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...
  18. 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...
  19. 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
  20. 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)...
  21. 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...
  22. Replies
    1
    Views
    356

    [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...
  23. 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...
  24. Replies
    3
    Views
    245

    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...
  25. 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.
  26. 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...
  27. 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...
  28. 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...
  29. 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...
  30. Replies
    2
    Views
    218

    Re: Listen to copy

    Here's one of the top results from Google.
  31. 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...
  32. 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&)
  33. 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...
  34. 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?
  35. 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.
  36. 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...
  37. 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...
  38. Thread: .

    by Bonnie West
    Replies
    0
    Views
    448

    .

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

    See this recent post.
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.