Search:

Type: Posts; User: Alain

Page 1 of 13 1 2 3 4

Search: Search took 0.04 seconds.

  1. Re: Reaading DPI value of screen a form is on.

    Ok, I got an answer through https://www.phind.com/

    Here is the form's code that works, if anyone else needs the same info:



    Imports Microsoft.Win32
    Imports System.Runtime.InteropServices
    ...
  2. Re: Reaading DPI value of screen a form is on.

    Indeed!

    I fixed my code sample with that regard.

    But I still don't have a way to read DPI of a secondary screen...
  3. [RESOLVED] Reading DPI value of screen a form is on.

    Hi all,

    I have a form with a button n it, and the code of the button reads as so:



    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

    Using...
  4. Replies
    4
    Views
    674

    VS 2019 Re: Reading text size scaling value

    Yeah, I know and I'm using it, but rather to define my app as dpi-aware. I'm not looking to disable entirely the DPI-aware thing, but rather be able to disable it for a particular form, or at least...
  5. Replies
    4
    Views
    674

    VS 2019 Re: Reading text size scaling value

    Thanks Paul,

    I did stumble upon this documentation before posting here but if I understand correctly, this is all about setting up how Visual Studio's form designer behaves in DPI-Aware mode on. ...
  6. Replies
    4
    Views
    674

    VS 2019 Reading text size scaling value

    Hi all,

    I seacrhed the interwebs for this information, but couldn't find anything, so I thought I'd ask here.

    With monitors allowing for crazy resulutions nowadays, Windows allows to scale text...
  7. Re: How do I set proper DPI setting in my application?

    Ah well...

    Nevermind. I figured it's probably time I switch to 4.7 anyway...

    I applied the steps to follow in the documentation you linked to, and all works like a charm!

    Thanks!
  8. Re: How do I set proper DPI setting in my application?

    I've seen that doc, but my app is using .NET 4.5 and not 4.7. (Which is one of the reasons I never bothered putting time into this until I made the switch to 4.7.)

    But since changing a setting in...
  9. [RESOLVED] How do I set proper DPI setting in my application?

    Hi all,

    The application I made is slightly more blurry than most others. I've been told it had something to do with DPI high resolution scaling, but never put the time and energy into figuring it...
  10. Replies
    7
    Views
    1,359

    Re: My application clogs-up memory...

    Thanks for chipping in kebo.



    I was afraid that would be the answer! Making sure an object is unreferenced is far from trivial in a large application. Its seems it makes the whole concept of...
  11. Replies
    7
    Views
    1,359

    Re: My application clogs-up memory...

    Thanks for your answer, but I still feel I'm not being clear.

    I'm fully OK with the GC deciding when and if it will act. But I also know that it will not remove objects from memory if the objects...
  12. Replies
    7
    Views
    1,359

    Re: My application clogs-up memory...

    Thanks a lot for your answers guys.



    Pretty much.



    I do use DLLs, but all made by me, all native .NET.
  13. Replies
    7
    Views
    1,359

    My application clogs-up memory...

    Hi all,

    I made a CAD application where users can create projects, add pages to them and draw stuff on the pages. Naturally, as users work on their project, objects get created and the memory...
  14. Re: Making an install package that can install for all users...

    I actually already went that route. I just need to fine tune it so it works for all users.



    These are the values I was looking for! My problems are solved!

    Thanks a million!
  15. Re: Making an install package that can install for all users...

    Indeed! Force of habbit I guess...


    Sorry for not being clear enough. I made an install from scratch, in VB.NET, which essentially installs the other app I made. It does all I need for a given...
  16. [RESOLVED] Making an install package that can install for all users...

    Hi all,

    A while ago, I made myself an installation package for deplying my applicatio (our politics is to avoid as much as possible using third party applications/DLLs/etc.) All is going fine...
  17. VS 2019 Re: Ok, I messed up my VS settings...

    Ok, got it.

    It's the option 'Listing code in Pretty mode' option that was turned on. (Wording may not be right, my VS is in french...)

    I'm pretty sure it's the upgrade that turned this back...
  18. VS 2019 [RESOLVED] Ok, I messed up my VS settings...

    Hi all,

    Ok, after the last VS upgrade, I noticed some of my editor settings had changed (I had lost the navigation drop-down lists that are usually displayed at the top of code window...) I have...
  19. Replies
    7
    Views
    773

    VS 2019 Re: [RESOLVED] Issue with VS 2019...

    Done!
  20. Replies
    7
    Views
    773

    VS 2019 Re: Issue with VS 2019...

    Awesome...

    Thanks for the info.
  21. Replies
    7
    Views
    773

    VS 2019 Re: Issue with VS 2019...

    Ah! I think I just figured out what was going on. I double-checked on my old laptop and the 'Angle' property is displayed, but not evaluated as it has an optional parameter.

    So I guess...
  22. Replies
    7
    Views
    773

    VS 2019 Re: Issue with VS 2019...

    Yes, precisely. I assume it is a debugging option setting that is different, but I couldn't figure out which one, as I explained.
  23. Replies
    7
    Views
    773

    VS 2019 [RESOLVED] Issue with VS 2019...

    Hi All,

    I just upgraded from VS 2012 to VS 2019 (on a new laptop, so options were all set to default...) and I have a weird issue I can't (for the life of me!) figure out.

    In debug mode, when...
  24. Replies
    4
    Views
    3,066

    Re: Public/private key signature verification

    Hey thanks a lot for getting back to me Peter!


    Actually, I just need to import the public key, which is the only key needed to verify the signature.

    Further searches on the web had me stumble...
  25. Replies
    4
    Views
    3,066

    Re: Public/private key signature verification

    Thanks for the detailed answer Peter!

    It certainly helps me, but it doesn't solve my main problem: how do I convert a key I already have to the right format? One thing I forgot to mention, the...
  26. Replies
    4
    Views
    3,066

    Public/private key signature verification

    Hi all,

    I tried looking around the interwebs as much as it is reasonable to do, but failed so far in finding what I'm looking for, which I think should be fairly straightforward.

    My application...
  27. Re: Associating an custom icon to file types

    Arrrgh! I just figured it out....

    I was creating a String value named 'DefaultIcon' instead of a registry sub-key (for which it's default value was the path to the icon file...)

    Never mind!
  28. [RESOLVED] Associating an custom icon to file types

    Hi all,

    I made a CAD application, which spits out files with a specific extension, which was easy to associate to my application in the registries. This way the file icon displayed in Windows...
  29. Re: How to send instructions to an instance of my application?

    Thanks, but that wouldn't work. I don't want to close the first instance of my app for simlar reasons we wouldn't want a Word document to close itself automatically (without saving on top of it!)...
  30. Re: How to send instructions to an instance of my application?

    Cool, thanks!

    I'll check this out and report back. That said, re-evaluating the current architecture of my app to switch to a more 'standard' application that has a startup form is also an...
  31. Re: How to send instructions to an instance of my application?

    Thanks, but for this one must enable application framework, and it is not my case (my app starts from a 'Sub Main', and not a form...)

    Any other suggestion?
  32. Re: How to send instructions to an instance of my application?

    Thanks, but for this one must enable application framework, and it is not my case (my app starts from a 'Sub Main', and not a form...)

    Any other suggestion?
  33. How to send instructions to an instance of my application?

    Hi all,

    I built a CAD application in VB.NET. I takes into consideration the commandLineArgs, so when a user double-clicks on a file saved with my application, it starts my app and opens the said...
  34. VS 2013 Re: Saving image from a picturebox, including the 'processed' background image.

    Thanks for you answer, but this did not give me the results I was after. It stretches the image without keeping proporportions.



    Thanks jm, DrawToBitmap almost did the trick. It keeps the...
  35. VS 2013 [RESOLVED] Saving image from a picturebox, including the 'processed' background image.

    Hi all,

    Here's what I'm trying to do with no success so far:

    - I have a picturebox with square dimensions (so width = height).
    - The picturebox.BackgroundImageLayout is set to 'Zoom', which...
  36. Replies
    11
    Views
    1,200

    VS 2012 Re: [RESOLVED] Form refresh issues...

    Thanks jm.
  37. Replies
    11
    Views
    1,200

    VS 2012 Re: Form refresh issues...

    Ok, a little extra info.

    I have been able to put my finger on the source of the issue. When the modal view is closed, in my application, it is actually hidden in the following way:


    ...
  38. Replies
    11
    Views
    1,200

    VS 2012 Re: Form refresh issues...

    Unfortunately, showing you the guts of my ExploreObject class would just lead to more questions. Honestly, I don't think it has an influence on the issue. Once the dialog box is closed, the...
  39. Replies
    11
    Views
    1,200

    VS 2012 Re: Form refresh issues...

    You mean you don't understand where my problem comes from, or you don't understand what the code is suppose to do?
  40. Replies
    11
    Views
    1,200

    VS 2012 Re: Form refresh issues...

    Indeed!


    Public Function ShowExplorer(RootObject as ExplorerObject, Optional ModalView As Boolean = False, Optional ByRef CancelClicked As Boolean = False) As List(Of ExplorerObject)

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



Click Here to Expand Forum to Full Width