Search:

Type: Posts; User: LaVolpe

Page 1 of 13 1 2 3 4

Search: Search took 1.71 seconds.

  1. Replies
    15
    Views
    342

    Re: UpdateLayeredWindow() Drove Me Crazy

    I haven't played with that API for at least 10 years. But from what I recall, you are not wrong. The 32bpp pARGB bitmap is rendered by Windows. You don't draw to the form, your draw to the memory DC.
  2. Replies
    58
    Views
    978

    Re: need 2 decimal places

    Val() method is relatively ok if the input is not locale-dependent; otherwise, consider using CDbl() instead.

    However, Val() allows potential garbage to be considered as valid numeric data......
  3. Replies
    58
    Views
    978

    Re: need 2 decimal places

    Suggestion: while cleaning up the code, give your variables meaningful names. x, c, d, etc isn't very descriptive. Avoid naming textboxes with "txt" prefixes and also creating variables with "txt"...
  4. Replies
    58
    Views
    978

    Re: need 2 decimal places

    I think you confused us even more. It appears you were settng the formula result to totcubic? If so and it was declared as Integer, that explains the rounding. And now you are saying that when you...
  5. Replies
    58
    Views
    978

    Re: need 2 decimal places

    Thinking that Txttotcubic is probably returning the right result.

    You mention that Txtsize(7).Text contains 4.5, but in your code just before the formula, you overwrite it with: 2.25 * Txthm.Text...
  6. Replies
    2
    Views
    175

    Re: CoTaskMemFree vs ILFree

    I'd almost expect the opposite behavior. Per MSDN: "Note When using Windows 2000 or later, use CoTaskMemFree rather than ILFree."

    For now, ignore that fact that it was working before. Look at...
  7. Re: Proof of concept for handling DPI per monitor V2 transparently... or almost

    @dilettante, if entire project is in same DPI, all issues can be handled regarding intrinsic controls, and many known common-use ocxs. In the replies within this thread, the scenarios that applied...
  8. Re: Proof of concept for handling DPI per monitor V2 transparently... or almost

    Well, the framework is targeted at new applications, not existing ones.

    Regarding mixed-mode, ocxs not appearing on forms loaded into unaware/GDI-scaling context while overall thread is PMV2 is a...
  9. Re: DAO MDB database SQL error "Too many fields"

    When you get that error, debug.print the SQLQ variable and post is contents. Sometimes wth ADO/DAO, the displayed error doesn't mean exactly what it says, but rather can be due to a SQL string with a...
  10. Thread: Thanks....

    by LaVolpe
    Replies
    19
    Views
    612

    Re: Thanks....

    It's more purple than marroon; a deep purple -- like smoke on the water ;)
  11. Thread: Thanks....

    by LaVolpe
    Replies
    19
    Views
    612

    Re: Thanks....

    But when you've lived a 1/2 century and longer, sometimes you throw caution to the wind. Sammi's ride & my ride :)

    178796
  12. Thread: Thanks....

    by LaVolpe
    Replies
    19
    Views
    612

    Re: Thanks....

    Though the 1st part of your statement is true, I don't think the 2nd part is the case here. Many of us have known Sammi on this site for years & years. We know he's no spring chicken. We know he...
  13. Thread: Thanks....

    by LaVolpe
    Replies
    19
    Views
    612

    Re: Thanks....

    Good on you. Many of us that are a bit younger than you already have that check-engine-light lit
  14. Thread: Thanks....

    by LaVolpe
    Replies
    19
    Views
    612

    Re: Thanks....

    That's all? You're welcome.

    My mind went directly to a dark place when I saw the thread title; thinking something medical. And embedded into the 'thank you', a fairwell. Phew.
  15. Replies
    5
    Views
    322

    Re: DPI Aware question

    FYI: DPI virtualization on modern systems is not static. An app can move into and out of virtualization as DPI changes.

    Oh, regarding unmanifested apps. There is one gotcha & possibly another.
    ...
  16. Re: Problem with combo box with its Style property set to "0 - Dropdown combo"

    Here's a simple auto-fill type solution that will update the listindex as typing occurs. Not bullet proof, needs a bit of work. For example, try backspacing after typing the letters "ti"

    .. Combo1...
  17. Replies
    10
    Views
    408

    Re: Mouse move API problem.

    FYI: SetCursorPos simply moves the mouse, it doesn't add any mouse move events to active threads. Mouse_Event however does and those events are processed by the system as applicable, i.e., keeping...
  18. Replies
    5
    Views
    322

    Re: DPI Aware question

    Except XP. It didn't have manifests for awareness, system settings only.
  19. Replies
    5
    Views
    322

    Re: DPI Aware question

    Those can't really determine if you're app is virtualized, only if the system DPI is same as what VB's internal DPI is. In most cases when DPI > 150%, system DPI is not same as VB's internal DPI when...
  20. Re: Problem with combo box with its Style property set to "0 - Dropdown combo"

    When style is 0, simply typing an item into the cbo text box (or setting text via code) does not change its ListIndex value. On LostFocus or Validate, you might want to see if the new text exists in...
  21. Re: Proof of concept for handling DPI per monitor V2 transparently... or almost

    VB may be aware, but not all controls (ocxs) are. Many VB built controls and apps aren't even system-DPI-aware because coders do things like hardcode 15 twips per pixel. But that's the fault of the...
  22. Re: Change the text of the Common Dialog button

    The biggest difference between my version and fafalone's is that his uses a typelib and mine does not; but does allow subclassing and customizing not available via a typelib directly.
  23. Re: Proof of concept for handling DPI per monitor V2 transparently... or almost

    I've looked over you last few replies and can see some definite problems. I plan on playing with this over the weekend. Regarding the sizes and positions reported from the UCs to/from the form, there...
  24. Replies
    10
    Views
    408

    Re: Mouse move API problem.

    That's not quite descriptive.

    P.S. Why are you moving the mouse then using SetCursorPos. Can't believe that didn't trigger with me earlier. Use one or the other; definitely don''t use both.
    ...
  25. Replies
    5
    Views
    209

    Re: Click event

    Ensure AutoRedraw is true, or put that code in the picturebox's Paint event. Also, you don't need the parentheses
  26. Re: [RESOLVED] GDI Scaling, ImageLists, ListView

    You probably know, but just in case. LoadResPicture(bitmap) returns DDB. Unlikely in modern systems using 32bit resolution, but that could change image colors. Don't know if that type of scenario...
  27. Replies
    10
    Views
    408

    Re: Mouse move API problem.

    parameters are in wrong order

    mouse_event MOUSEEVENTF_MOVE, 0, 0, x, y
    should be:

    mouse_event MOUSEEVENTF_MOVE, x, y, 0, 0
    look again at the parameters in the API declaration.
  28. Replies
    5
    Views
    209

    Re: Click event

    Use a picturebox instead of a textbox? A picturebox can be made to look exactly like a textbox. And you can add text to a picturebox via its .Print method and positioning the text via its .CurrentX &...
  29. Re: What good is a command button's Value property?

    Click is an event, Value is a method/property. Standard code flow does not call events, it raises events and calls methods.

    It has one advantage. You can call the click from outside the form,...
  30. Replies
    6
    Views
    263

    Re: RtlMoveMemory ByVal 0, ByVal 1, 1

    If you google using these terms, your first hit should get you the bas-module I created: lavolpe SetUnhandledExceptionFilter

    You can look over the module comments. Looks like I wrote that back in...
  31. Re: Change the text of the Common Dialog button

    There's three styles now: oldest style (pre-XP?), old-style (pre-Vista), current style (Vista+). Here are some comments from another site. I'm not on a VB box now, so can't verify myself, but those...
  32. Replies
    6
    Views
    263

    Re: RtlMoveMemory ByVal 0, ByVal 1, 1

    I played with that exception filter API decades ago. I managed to get it work most of the time, but not always. It definitely reduced the crashes even with CopyMemory/RtlMoveMemory blunders. However,...
  33. Re: Proof of concept for handling DPI per monitor V2 transparently... or almost

    Given up on trying to get the double move to stop. On my system, the double move is very evident. On a newer system, the double move is so fast that if you weren't paying attention, you wouldn't even...
  34. Re: Change the text of the Common Dialog button

    Only way I really recognized it was due to the combobox near the "Make" button. GetOpenFileName can still be used, but unfortunately, once the OFNHookProc is in play, the dialog goes back to...
  35. Re: Change the text of the Common Dialog button

    That's the modern equivalent, available since Vista: IFileDialog

    There are several variations of that in the code bank. Here is mine:...
  36. Re: Proof of concept for handling DPI per monitor V2 transparently... or almost

    Probably using GDI-scaling?

    In task manager, details tab, right click on one of the tabs and choose "Select Columns". Scroll more towards bottom of popup window and find/check "DPI awareness"....
  37. Re: Proof of concept for handling DPI per monitor V2 transparently... or almost

    But not in the cmd prompt window, which is unaware. But that's a Windows app & they may have workarounds built in. I'm curious as to why it appears on my machine a constant offset of -8, -31,...
  38. Re: Proof of concept for handling DPI per monitor V2 transparently... or almost

    So how is your UC going to be organized? One for the entire project, hosted on the main form? One per form?
  39. Re: Proof of concept for handling DPI per monitor V2 transparently... or almost

    The form creation must occur before the controls, correct? Well, once you get that CBT hook notification that a top-level window is being created, couldn't you set thread awareness at that point,...
  40. Re: Proof of concept for handling DPI per monitor V2 transparently... or almost

    Wonder what those magic offset numbers are? We figure that out and the form double-moving-issue is history.

    P.S. You chose to create controls dynamically in unaware context while I used a...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width