Search:

Type: Posts; User: Elroy

Page 1 of 13 1 2 3 4

Search: Search took 0.28 seconds.

  1. Replies
    11
    Views
    559

    Re: How Recognize geometric shapes

    Dan, out of curiosity, were are VB6 classes taught these days?
  2. Replies
    9
    Views
    277

    Re: Small C# Code to VB6

    I searched, and the primary page I had for a reference is gone. The only thing I found was here, but there's not much to it, and here's what it says:
  3. Replies
    9
    Views
    277

    Re: Small C# Code to VB6

    And another approach is to grab the Double's (or Single's) bits and put them into some type of integer via CopyMemory, and then convert that integer to hex. But that's really a kludge, as that hex...
  4. Replies
    9
    Views
    277

    Re: Small C# Code to VB6

    VB6 doesn't have any mechanism for handling floating point hex numbers. Many C/C++ languages can handle them. Typically, they have a p# suffix where # is a power-of-two exponent applied to the...
  5. Replies
    11
    Views
    559

    Re: How Recognize geometric shapes

    What do you want such a function to return? If we give it your picture, do you want it to return that there are 5 circles, 1 star, and 1 triangle?

    Are you drawing the individual shapes on some...
  6. Re: Looking for Custom UC checkbox on/off switch

    I have seen some similar controls out there, but I'll let you search for them. One thing I often do is search with Google, with the site:vbforums.com as part of my search terms.

    Also, if I were...
  7. Replies
    5
    Views
    196

    Re: Where are menu items stored?

    The only thing I can think of is that, however you searched, you searched for some brand of Unicode, and you didn't search for ANSI (single byte) characters. All FRM files are saved as ANSI.
    ...
  8. Replies
    6
    Views
    216

    Re: Password Protection

    Also, just some considerations about this. If done correctly, you've got to be careful to wipe all String variables containing a password before they're re-assigned or fall out of scope. If you...
  9. Replies
    5
    Views
    196

    Re: Where are menu items stored?

    VERSION 5.00
    Begin VB.Form Form1
    Caption = "Form1"
    ClientHeight = 10290
    ClientLeft = 3435
    ClientTop = 3900
    ClientWidth = 6585
    LinkTopic ...
  10. Thread: Encrypt/Decrypt

    by Elroy
    Replies
    19
    Views
    529

    Re: Encrypt/Decrypt

    I understand completely, and you are correct. But it just seemed like vbgeobas wanted something very simple. Basically, I think he just wanted his code fixed. I tried to tell him how to do it in...
  11. Thread: Encrypt/Decrypt

    by Elroy
    Replies
    19
    Views
    529

    Re: Encrypt/Decrypt

    Goodness gracious. vbgeobas, here. If all you want is some soft encoding/decoding of anything ANSI (any codepage, including Greek), the following will do it for you:



    Option Explicit
    ...
  12. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    That's getting pretty esoteric for me ... and I'm not sure I've got an opinion at this time. I certainly don't currently use the FocusRectWidth property, so I've got no opinion on changing how that...
  13. Replies
    4
    Views
    262

    Re: Listview SetRedraw

    Here's (attached) a small project using the ListView in MsComCtl.ocx (the VB6 ListView), and subclassing it.

    I'm not sure it'll do you much good though. Here's a link to Krool's ListView, with...
  14. Thread: Encrypt/Decrypt

    by Elroy
    Replies
    19
    Views
    529

    Re: Encrypt/Decrypt

    vbgeobas, it's not exactly English vs Greek that you're struggling with. I believe it's more ASCII vs ANSI (or possibly Unicode, but more likely just ANSI) that you're struggling with. ASCII is a...
  15. Re: [RESOLVED] .ForeColor = 0-16842751 but not more.

    Sounds like a custom user control to me. That way, you can create properties that do exactly what you want, and are named as you want them.
  16. Re: [RESOLVED] .ForeColor = 0-16842751 but not more.

    The Tag property is a String. As such, you could stuff 2GB of data into it. Heck, with a bit of parsing, you could get a small database in there. Also, it's Unicode (no ANSI filtering) so you...
  17. Re: .ForeColor = 0-16842751 but not more.

    Someday I should play around with that palette and palette relative stuff in OLE colors. I've just never had a need.

    And to paraphrase the MS link from Dil, 0x0100iiii is valid, 0x02bbggrr is...
  18. Re: .ForeColor = 0-16842751 but not more.

    I believe you're talking about the System colors. I haven't tested but I believe anything from 0 to &hFFFFFF (16777215) is going to be valid ... or, you can turn the Long sign bit on and address the...
  19. Thread: Lynx ComboBox 2

    by Elroy
    Replies
    5
    Views
    259

    Re: Lynx ComboBox 2

    And I just looked around a bit, and it doesn't seem that I've ever implemented a ComboBox with multiple columns in the pulldown. It's sure a good idea though.

    I'm assuming that only the first...
  20. Thread: Lynx ComboBox 2

    by Elroy
    Replies
    5
    Views
    259

    Re: Lynx ComboBox 2

    It looks like a DPI (monitor scaling) issue to me. Does it work correctly if all your monitors are scaled to 100%?
  21. Replies
    4
    Views
    262

    Re: Listview SetRedraw

    I have done some subclassing of the ListView control, and have dealt with refreshing it in the past. However, I'd do better if you just outlined what you're actually trying to do (at a higher level).
  22. Re: [RESOLVED] Type Mismatch problem regarding an If Else statement

    zhyr, you're absolutely fine. With respect to other threads, you really haven't done anything at all that's not still in the vein of your original question. In other words, compared to other...
  23. Re: i need to loop all combobox in frame2 in a form and get the .tag value... if the

    Ahh, good point. I didn't think about that. Luca, I always have my IDE set to break only on unhandled errors. On the menu ---> Tools ---> Options ---> General tab ---> Break on unhandled errors. ...
  24. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Personally, I'll take all the options I can get. I already subclass the MS ListView to make it do several things it doesn't natively do ... specifically related to the color of things. I don't use...
  25. Re: [RESOLVED] Type Mismatch problem regarding an If Else statement

    I feel a bit compelled to explain a bit why I'm so harsh about the If V And B <> Empty Then line of code.

    First, Empty is a specific value that a Variant can take on, and it's actually the same as...
  26. Re: [RESOLVED] Type Mismatch problem regarding an If Else statement

    As stated elsewhere, I like Variants, but I strictly reserve their use for cases where they're needed. If an explicit type will get the job done, that is absolutely what I'll do, and it's what...
  27. Re: i need to loop all combobox in frame2 in a form and get the .tag value... if the

    Your test project works fine for me ... so IDK.
  28. Re: [RESOLVED] [Help]How to let WM_GETTEXT support unicode characters?

    keli, You'll find the StrPtr(YourString) method quite useful for virtually all the ...W API calls. The basic rules are, change the "As String" argument in the API call to "As Long", and then pass...
  29. Replies
    13
    Views
    469

    Re: [RESOLVED] IDE Question

    There always seem to be copies for sale on eBay. I've bought 3 or 4 there and never had a problem:

    https://www.ebay.com/itm/154360135882?hash=item23f094c0ca:g:ZAQAAOSwrndgQrsK
    ...
  30. Replies
    13
    Views
    469

    Re: IDE Question

    Hmmm, I guess I'm not in the habit of setting "lots" of breakpoints. Even in a large project, I'll typically only set three or four at the most. Typically, I just laboriously trace through the code...
  31. Re: [RESOLVED] Remove dead COM entries in the registry.

    Personally, unless I think I'm having some kind of performance issue, I don't mess with it ... and I'm scared to death of those registry "cleaner" utilities.

    I can easily see a situation where...
  32. Replies
    13
    Views
    469

    Re: IDE Question

    Through the years, Microsoft fixed most of that stuff. I remember a bug where you could crash the IDE with simple repeated searches of your code.

    Personally, vb6forever, I'd recommend moving to...
  33. Re: i need to loop all combobox in frame2 in a form and get the .tag value... if the

    Luca, I'm not sure what you're getting at. Here, I'll post my code:



    Option Explicit

    Private Sub Form_Load()

    ' This is the only place where specific ComboBoxes are addressed.
  34. Re: Question about GetSystemMetrics and VIRTUALSCREEN

    Weird about the negative value. I guess because my #1 monitor is disabled and my #2 monitor is on the left, I didn't get negative numbers. I can easily test that though.

    Yep, that's totally it...
  35. Replies
    13
    Views
    1,999

    Re: Using lstrlen in VB6

    Good to see that you've got the Length declared as LongPtr in your CopyMemory declaration. You'll see it declared as Long (even for 64-bit VBA) which is wrong but sort of works. It's a SIZE_T type...
  36. Replies
    13
    Views
    1,999

    Re: Using lstrlen in VB6

    haha, yeah, I was just looking at it too, and wondering why I didn't use RtlMoveMemory. But, 4+ years ago, who knows.
  37. Replies
    13
    Views
    1,999

    Re: Using lstrlen in VB6

    Jaafar, from a cursory look, it seems that you're correct. Maybe I was trying to cover the case of lpszW pointing to a string with surrogate pairs. However, I don't believe that lstrlenW correctly...
  38. Re: Question about GetSystemMetrics and VIRTUALSCREEN

    Say Krool, also, you declared ReleaseDC in your project, but you didn't call it. I just spotted that. It's NOT fixed in the project attached to post #5 either, so beware.
  39. Re: Question about GetSystemMetrics and VIRTUALSCREEN

    Ok, this is weird. I put my configuration back to this:

    183111

    With monitor #2 still at 150% scaling.

    And I also compiled things. The first (left) one is in the IDE and the second (right)...
  40. Re: Question about GetSystemMetrics and VIRTUALSCREEN

    Hmmm, it's not easy to make sense of this stuff. It doesn't seem that width and height are being handled the same way.

    The next configuration I tested was:

    183110

    And got this:


    Test: 1...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width