Search:

Type: Posts; User: Elroy

Page 1 of 13 1 2 3 4

Search: Search took 0.72 seconds.

  1. Replies
    1
    Views
    74

    Re: Storing Signed Whole Numbers in a Byte

    We just had this conversation, here.

    And what you've done is wrong. For instance, try: n = -192
    The only thing you'll get back is +64

    If you're going to do this, you've got to shift the...
  2. Replies
    8
    Views
    172

    Re: DPI Awareness per Window

    And also, apologies. I just realized that, once in the past, I started a similar thread. However, back then, I didn't come to a good resolution, so I'll soldier on with this one and see what I can...
  3. Replies
    8
    Views
    172

    Re: DPI Awareness per Window

    I had actually just been reading that link before I started this thread. And yeah, it'd be nice if I could get per-monitor-and-per-window DPI aware going (obviously done with API calls to make it...
  4. Replies
    8
    Views
    172

    DPI Awareness per Window

    Has anyone ever messed with specifying DPI awareness on a per Window (top level) basis? I know some will ask "why", but let's please set that aside for now.

    I've looked at a few of the API calls,...
  5. Replies
    9
    Views
    5,971

    Re: VB Snippet - Determine if Array is Empty

    Here's mine modified for the VBA. It should work in either 32-bit or 64-bit MS-Office. (Tested on Excel 64-bit.)

    I did take out the PtrAdd function and just directly added. I don't feel that...
  6. Replies
    9
    Views
    378

    Re: How to add OCX control at runtime

    You can, but, like I said, it's a bit involved. Here's a thread where Trick showed us how to do it. I've only done it for testing (and it works), but I'll leave you on your own to work through that...
  7. Re: VB6 QUESTION: Do you ever find yourself creating pseudo forms?

    I mean, there are several places I "reconfigure" a form during runtime, based on what the user has specified. But I think that's a bit different from what you're talking about.

    Sometimes, for...
  8. Replies
    9
    Views
    378

    Re: How to add OCX control at runtime

    You can add controls from scratch during runtime, but it's a bit tricky. First, when doing this, it's typically advisable to turn off the project's "Remove information about unused ActiveX Controls"...
  9. Thread: Dynamic Array

    by Elroy
    Replies
    4
    Views
    162

    Re: Dynamic Array

    All of that works fine for me. It's only when you use the Preserve keyword that you're limited. A straight-up ReDim totally reinitializes the array.
  10. Replies
    5
    Views
    142

    Re: Listview question

    I don't ever use the ListView in the Icon mode, but maybe just make the width of the control larger (in design mode of the IDE)?
  11. Replies
    11
    Views
    286

    Re: Rotating labels/textboxes

    Just as a further FYI, to include that LabelVert user control in any of your projects, just grab the CTL (and its associated CTX) and put them where you want (probably where the rest of your...
  12. Replies
    11
    Views
    286

    Re: Rotating labels/textboxes

    At the top of the thread, under "Thread Tools", but only you can do it.
  13. Replies
    11
    Views
    286

    Re: Rotating labels/textboxes

    Here, I added a 180 (upside down) option for you. I also included a direction as LabelVertNone so it'd work like a regular label. So, the Direction property now has four options: LabelVertUp,...
  14. Replies
    11
    Views
    286

    Re: Rotating labels/textboxes

    Also, just as a note, if you study that code, you can rotate the text in the label to any angle you like. I'll let you suss that out though.

    182694

    As a note, if you try this, be sure to...
  15. Replies
    11
    Views
    286

    Re: Rotating labels/textboxes

    I can post a vertical label (as a custom user control) that I put together (sample project attached). I've never had a need for a vertical textbox.

    Here's what it looks like:

    182692

    Just to...
  16. Replies
    3
    Views
    213

    Re: VirtualProtect use in vtable swapping

    If this is a vTable within our own project, I suspect that PAGE_READWRITE is already available. So, I'd think the OP is correct in that it's not needed.

    Although, after Googling around, the...
  17. Re: VB6 QUESTION: How to capture the MouseOver Event on a comboBox?

    I just noticed that I left quite a bit of superfluous code in that ComboBox_Proc procedure. Here is just that procedure with the superfluous code removed. You can leave it as it is above. The...
  18. Re: Complied app hangs on Exit Function statement

    Just as an FYI, I use the DAO (DAO360.dll) extensively (for MDB databases) and have virtually no problems with it, and absolutely love it.

    I also use transactions for virtually every "write" to a...
  19. Replies
    18
    Views
    479

    Re: CENTER string in string

    If you peruse through the posts of luca90, it's an interesting hodgepodge of questions. What has crossed my mind repeatedly is that it's some VbForums user handle that's passed around from class to...
  20. Re: VB6 QUESTION: How to capture the MouseOver Event on a comboBox?

    Also, just to repeat this (as it's stated many times in these forums). Subclassing really isn't anything new.

    For example, when events are raised in a form (or any of the controls on a form),...
  21. Re: VB6 QUESTION: How to capture the MouseOver Event on a comboBox?

    Ok, once a program is compiled, subclassing (done correctly) presents no more problems than anything else. It's just while developing in the IDE that you have to be careful.

    When subclassing...
  22. Re: VB6 QUESTION: How to capture the MouseOver Event on a comboBox?

    Ok, actually, I did manage to get it going for the main text of a standard ComboBox. It's three modules: Module1, Module2, & Form1.

    And Form1 has a single ComboBox (Combo1) on it.

    Module1 is...
  23. Re: VB6 QUESTION: How to capture the MouseOver Event on a comboBox?

    Hi Ber,

    Ok, I took a look at how I do it, and it's a bit involved. When I want balloon-hover-text help on a ComboBox, I always use a custom (user control) ComboBox to do it. This custom UC does...
  24. Re: Flipping Applicaton based Screen Orientation

    Yeah, the users just change it under "Display Settings" (or, control panel before it was there).
  25. Re: Flipping Applicaton based Screen Orientation

    I have users with multiple monitors who put one of them in portrait mode. However, I didn't make that setting from VB6.

    The main problem it caused me was that none of the methods associated with...
  26. Re: VB6 QUESTION: Quickest way to initialise an array

    I'm still wondering if there's a way to have the compiler make binary data of a series of constant literals that could then be CopyMemoried into an array of the correct size.

    I guess the only...
  27. Re: VB6 QUESTION: Providing Documentation for your Utility.

    You mean LaVolpe's project that I wedged my balloon tooltips into? Sure.

    It was too big to attach, so here it is on my Google Drive.
  28. Replies
    18
    Views
    479

    Re: CENTER string in string

    Yet again, this has a strong odor of homework.
  29. Re: Complied app hangs on Exit Function statement

    You know? This rings some faint bell in the distant past. Nouyana, you are using Service Pack 6 for your VB6 IDE, correct?

    I'm wracking my brain, but I do believe it had something to do with...
  30. Re: VB6 QUESTION: Providing Documentation for your Utility.

    Ok, I took a CodeBank project of LaVolpe's found here, and just added my balloon tooltips to it.

    All I did was unzip all the pieces of his project, add a BAS module and put my post #9 BAS code in...
  31. Re: VB6 QUESTION: Providing Documentation for your Utility.

    I'm sure I can find an APNG somewhere. If I get motivated in that direction, I'll take a look at it and see about getting one animated while I'm showing a balloon.
  32. Re: VB6 QUESTION: Quickest way to initialise an array

    Eduardo, just building on your ideas, it can actually all be done with one procedure:



    Option Explicit

    Private Sub Form_Load()
    Dim la() As Long
    la = LetArray(1&, 2&, 3&, 4&)
    ...
  33. Re: VB6 QUESTION: Quickest way to initialise an array

    It's a shame we don't have some more direct way to fill arrays, other than what Eduardo put together. (And Eduardo, what you did is great. I'm just thinking of a way that'd be more like a direct...
  34. Re: VB6 QUESTION: Providing Documentation for your Utility.

    Ber, that's the kind of thing I'd get stubborn about, and find a way to make it work.

    One idea I've got is to get Wanda into another PID (basically, another program, or maybe an ActiveX EXE). I...
  35. Re: VB6 QUESTION: Providing Documentation for your Utility.

    Ber, also, I was looking around my code at how I used that CreateTooltip call, and 99% of the time, I actually make the call in the ControlName_MouseMove event.

    Sorry I didn't mention that...
  36. Re: VB6 QUESTION: Providing Documentation for your Utility.

    Ahh, hey, just got back. Ber, if you'll show me some code, I'd be delighted to take a look.

    And also, what I gave in the post above was a brand new project. Maybe just follow that example.
    ...
  37. Replies
    9
    Views
    5,971

    Re: VB Snippet - Determine if Array is Empty

    Also, just as an FYI, the OP's code won't fail on a 0 to -1 array, which does occasionally happen.
  38. Re: Passing UDT as variant, for saving/loading UDTs

    Also, just to say it, be sure to declare all procedures in your forms and CLS modules as Friend (rather than Public). If you've got a public UDT, you can pass it around to Friend procedures without...
  39. Re: Passing UDT as variant, for saving/loading UDTs

    You have to declare your UDT in a TypeLib. You can create TypeLibs with VB6, but, when done that way, you have to distribute the TypeLib. Alternatively, you can learn about these TypeLibs and...
  40. Replies
    64
    Views
    1,461

    Re: Can anyone write an array module?

    I strongly second that thought.

    I do some programming with the latest Visual Studio (VB.net, C/C++/C#), and I also do a bit of C/C++ programming with other IDEs/compilers. But, especially when...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width