Search:

Type: Posts; User: vb6forever

Page 1 of 13 1 2 3 4

Search: Search took 0.25 seconds.

  1. Replies
    54
    Views
    630

    Re: DPI Awareness per Window

    Eduardo: Interesting.
    Here's an article (May 2021 so hopefully current) with C++ code that discusses lot of this....
  2. Replies
    54
    Views
    630

    Re: DPI Awareness per Window

    Eduardo:
    If you haven't read this (6/2021), worth a read regarding manifests.
    https://docs.microsoft.com/en-us/windows/win32/api/windef/ne-windef-dpi_awareness
  3. Replies
    54
    Views
    630

    Re: DPI Awareness per Window

    Eduardo:

    BUT if you use lot API call (pixels) then what?

    ===================

    As you point out MS recommends manifest usage (at least in following).
    Whether manifest has any impact on pixel...
  4. Replies
    54
    Views
    630

    Re: DPI Awareness per Window

    That makes more sense.
    I was under the impression (obviously wrongly) that by setting the awareness, that automatically made the App aware and hence the System adjusted everything (Controls, Text,...
  5. Replies
    54
    Views
    630

    Re: DPI Awareness per Window

    I'm a bit confused and guess I need to do a little bit more reading.
    If we're making just one (1) call to set the DPI for that monitor (or System) how does the System know to resize the App. For...
  6. Replies
    54
    Views
    630

    Re: DPI Awareness per Window

    Elroy

    This seem logical just like creating an hPen.

    Eduardo:


    I can see where both could be right depending on code approach.
    For example say one has a popup form, then Calling DPI prior...
  7. Replies
    54
    Views
    630

    Re: DPI Awareness per Window

    Elroy:

    Running Win10 (latest) with VB5,
    Put code into VB5 Single App in Form_Load.
    My Old Monitor Reports:

    Per Monitor Aware V1
    Per Monitor Aware V2
  8. Replies
    54
    Views
    630

    Re: DPI Awareness per Window

    dilettante: Whether a browser window or desk app, still has to appear on the screen.
    What I got from the article is to look at each text sting as being contained in its own RECT (viewport) and...
  9. Replies
    54
    Views
    630

    Re: DPI Awareness per Window

    Here's an interesting discussion of dealing with Font Scaling:

    https://bits.theorem.co/css-pro-tips-responsive-font-sizes-and-when-to-use-which-units/
  10. Replies
    54
    Views
    630

    Re: DPI Awareness per Window

    Eduardo, thanks for your feedback.



    I would think going system wide, with multi-monitors would create an issue.
    1) EACH monitor might have a different DPI
    (The system would know those DPI...
  11. Replies
    54
    Views
    630

    Re: DPI Awareness per Window

    Eduardo:
    I'm a newbie messing with DPI, but here's my first swipe approach (prior to pseudocode):

    Re: Per Window.
    Whether right or wrong the way I'm looking at approaching this is everything is...
  12. Replies
    54
    Views
    630

    Re: DPI Awareness per Window

    Per article:


    Haven't played with any code yet, but wouldn't the simplest approach be to
    Set a Hook using:


    If lMsg = HCBT_ACTIVATE Then

    Call SetThreadDpiAwarenessContext
  13. Re: Flipping Applicaton based Screen Orientation

    Elroy: Thanks for responding. Figured someone had messed with this before me.


    So I assume this was toggled to portrait in control panel from Win10 or earlier OS
    --- OR ---
    You just coded...
  14. Re: Flipping Applicaton based Screen Orientation

    Bump. Had hoped someone had messed with this.

    As I see it, the App could be re-coded or a view port included which would switch the X and Y axis. But whether Windows (or VB) would display this...
  15. [RESOLVED] Flipping Applicaton based Screen Orientation

    I wrote an MDI application written for the standard screen orientation (i.e. horizontal axis is longer than the vertical).
    A question was raised, if the physical screen was oriented
    such that the...
  16. Replies
    65
    Views
    2,543

    Re: Extending VB6

    As I see it, it is all about the Educational System and marketing on the part of Microsoft and Apple to name two.

    Apple played the game of giving computers to school systems to try and get...
  17. Replies
    6
    Views
    294

    Re: DefWindowProc vs SendMessage

    Not to contradict wqweto, but the code note tells you want is going on:
  18. Re: How to Activate/Create Debugging Log for Desktop app

    Search the forum for logging, plenty of examples.
    For starters each procedure should have an error routine.
    You can write any errors to a log file and/or display a message.
    You can even go...
  19. Re: What is the best way to hide online database password?

    The following link is a bit in the future but throwing it out so people are at least aware and may ultimately solve many problems.

    https://cse.engin.umich.edu/stories/morpheus-vs-everybody
  20. Re: Configuring Windows Defender Firewall (Outbound)

    dilettante:
    Thanks for responding.



    IMHO this issue has been a major security risk for years. With the number of 3rd party ActiveX's being used, and no one being able to either monitor them...
  21. Re: Configuring Windows Defender Firewall (Outbound)

    Thanks Steve and Zvoni for responding.
    I may be looking at this in the wrong context, but what I'm after is trying to eliminate any possibility of a particular ActiveX (NOT mine) from screen...
  22. [RESOLVED] Configuring Windows Defender Firewall (Outbound)

    I'd like to prevent any graphic files (.BMP, JPEG, TIFF, etc.)
    from being sent out of the system. Is this possible?
    If so how?

    Thanks

    Possible Link Help:
    {no example of a rule}...
  23. Replies
    2
    Views
    224

    Re: toolbar question

    When you select another button, depending on your code, set the previous button tbrUnPressed or Enum (loop) your other buttons and set each of them tbrUnpressed.
  24. Re: Pause Execution Until Function Completed (web access function)

    webbiz:

    Remember you are the coder, so you can do anything you want that makes sense to you and accomplishes your objective.
    Each individual has their querks (e.g. only professionals use C, ...
  25. Re: Pause Execution Until Function Completed (web access function)

    Zvoni:



    LOL Either will work. In ASM one uses Jumps all the time.
    Other than the leads to spaghetti code argument, if used sparely why not.
  26. Re: Pause Execution Until Function Completed (web access function)

    Haven't read your other thread.
    A search of forum may yield a number of results in this area.

    Since you're returning a structure, then just test for one of the properties.
    FWIW: When dealing...
  27. Replies
    6
    Views
    914

    Re: ASP and Hard Wired Cable Modems

    jdc2000 thanks for responding.



    Multiple Times.
    FWIW, I did get events to come up last night after accessing the modem, clicking events, and then checking the browser page for a return about...
  28. Replies
    6
    Views
    914

    Re: ASP and Hard Wired Cable Modems

    dilettante: Thanks for responding.

    My modem from 192.168.100.1 has 6 (SSTAB) menu choices. THese are:
    Status | Product Info | Event Log | Addresses | Configuration | Help

    What's got me...
  29. Replies
    6
    Views
    914

    Re: ASP and Hard Wired Cable Modems

    techgnome: Thanks for responding.

    Your response confirms what I thought, but is NOT what I am seeing on COX using an Arris modem. Whether the ISP has the ability to override the modem (mine) is...
  30. Replies
    6
    Views
    914

    ASP and Hard Wired Cable Modems

    DO cable modems process ASP internally, or do they first make a call to the server, and the server is the one actually responding?

    For example:

    1) when I enter 192.168.100.1 when the modem is...
  31. Re: Setting Properties When Passing Objects (Comparing Advantages / Disadvantages)

    Thanks to all for the followup responses.


    The above has been my approach for all these years. In fact, maintainability is the reason I think so much of VB5/6. One can get the job done, pick...
  32. Re: Setting Properties When Passing Objects (Comparing Advantages / Disadvantages)

    Plausibly Damp:
    Thank you for responding and the Excellent explanation. Really helps.

    So taking this to the next step for the "average" coder (no matter what language).
    If one picks up a book...
  33. Re: Setting Properties When Passing Objects (Comparing Advantages / Disadvantages)

    Using an example from the link (compileroptimizations.com) above which addresses loops:


    Re:


    Which is what I normally do in my VB code (use one loop instead of two on the presumption it is...
  34. Re: Setting Properties When Passing Objects (Comparing Advantages / Disadvantages)

    Niya thanks for your response.
    Your responses address what my post is after.
    My initial example(s) may have muddied the waters a bit. My apologizes.

    However, where I see a disconnect in...
  35. Re: Setting Properties When Passing Objects (Comparing Advantages / Disadvantages)

    Niya:

    First Thanks.
    Per my original post (#1), I get that it is pushed on the stack.
    I guess what I am after -- and long wondered about -- is there an easy way to compare code to see which...
  36. Re: Setting Properties When Passing Objects (Comparing Advantages / Disadvantages)

    Niya thanks for responding.



    That is what I'm curious about
    -- Without a timer test programe, is there a way to look at ANY VB or assembly code and say
    These are / or are NOT meaningful...
  37. [RESOLVED] Setting Properties When Passing Objects (Comparing Advantages / Disadvantages)

    When writing procedures fewer parameters being passed would save a bit of stack access. Is there any compiler advantage to setting properties BEFORE the call or AFTER?

    Here's three (what I...
  38. Re: PictureBox.Line method to draw dotted line?

    If your DrawWidth is > 1, then the line defaults to vbSolid.
    You need to write a separate procedure for anything other than vbSolid with DrawWidth > 1
    HTH
  39. Replies
    26
    Views
    1,668

    Re: Copy Protection Ideas

    Best one I've seen -- but would require an interactive server for each logon -- is:
    A printed card with codes is issued to the user along with software.
    On this card is row column listing which has...
  40. Replies
    33
    Views
    1,880

    Re: [RESOLVED] Static Functions of VB6

    There are about 2500 different programming languages if I recall correctly.
    Each has its plus and minuses.
    IMHO the key is not the language one uses to program in, but what the
    compiler does.
    ...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width