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: Interface Definitions, VTables, etc

    http://www.vbforums.com/image.php?u=147151&type=sigpic&dateline=1374042884
  2. Replies
    15
    Views
    402

    Re: ImageSearchDLL Not working with VB6.0

    http://www.vbforums.com/image.php?u=147151&type=sigpic&dateline=1374042884
  3. Re: CommonControls (Replacement of the MS common controls)

    Here's a shorter (and faster!) equivalent:



    Private Declare Function SysReAllocString Lib "oleaut32.dll" (ByVal pBSTR As Long, Optional ByVal pszStrPtr As Long) As Long

    'Returns a copy of a...
  4. Re: OptionButtonEx (grouping without frames, Unicode at runtime, & lightweight)

    It only fully works when not using a manifest that specifies v6.0 of the Common Controls library. When a Visual Styles manifest is applied, VB6 fails to render the Unicode characters properly (the...
  5. Re: Not appear in Task Bar but creates its own little title/controls bar

    'API-free, subclassing-free alternative

    Private Sub Form_Resize()
    If WindowState = vbMinimized Then Hide
    End Sub
  6. Re: How to identify a specific disk, media or flash memory

    So you need some sort of device ID? Of the alternatives to the dummy file presented so far (volume label/name, volume serial number, hardware serial value), the volume label/name is IMO the easiest...
  7. Re: How to mamage files with non-English names?

    Ilia have probably already tried and found out that the CopyFileW API is unable to copy folders (no surprise there).



    I haven't mentioned it in my previous post, but SHFileOperationW does more...
  8. 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...
  9. 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...
  10. Replies
    20
    Views
    524

    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...
  11. 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!

    ...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. [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....
  17. 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
  18. 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...
  19. 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.
  20. 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...
  21. 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"....
  22. 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...
  23. Replies
    1
    Views
    423

    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.
  24. 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...
  25. 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...
  26. 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
  27. 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)...
  28. 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...
  29. Replies
    1
    Views
    423

    [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...
  30. 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...
  31. Replies
    3
    Views
    271

    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...
  32. 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.
  33. 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...
  34. 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...
  35. 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...
  36. 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...
  37. Replies
    2
    Views
    229

    Re: Listen to copy

    Here's one of the top results from Google.
  38. 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...
  39. 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&)
  40. 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...
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.