Its probably best to mention first this issue is on a school system.
The issues is that when i start my program, the first form is fine but the second form scales very strangely so everything is small and blurry.
When I open my project I get a message saying my main display is set to 200% so I click the link to restart with 100% but the problem persists,
this issue suddenly appeared without me changing anything which leads me to believe it's an issue with the school system but I'm unsure and would be welcome to any suggestions.
Related
I ran into an issue where my second monitor with decent resolution, was showing a poorly rendered VS2019.
Disclaimer: If somebody would port the features I need in VS2019 to VSCode that'd be great.
Anyway, here is a pic that sums up my issue and since I had to comb through the annoyingly fixed-but-not-fixed, yet locked, tickets on MS to find clues to my answer I'm sharing here.
Here is my secondary, 27" monitor, with poor rendering. This happens to be the ONLY program that does this... VSCode looks great and is readable, Outlook, Gimp, they all look fine. Only VS2019 is giving my eyes pain.
Main/Built-in Monitor looks just fine though. I'd prefer to work with more screen space though.
In VS2019 GOTO: Tools > Options >> Environment > General, and look for "Optimize rendering..." Note: This screenshot is from after I'd found and applied the the fix.
It will be grayed-out and unselected if requirements are not met by your system, along with a message, "Requires NET 4.8 and Windows 10 minimum build 1803". I then mistakenly installed NET 4.8, and nothing changed (and the checkbox was still locked indicating requirements were not met).
More searching lead me to the 4.8 Dev Pack. Here is a link to it:
NET 4.8 Developer Pack
Finally, after another reboot, I opened up VS2019 and the rendering looks something like modern... and the checkbox automatically checked itself.
For me the accepted answer didn't change anythig, turns out it was caused by scaling on Windows (on main monitor it was set to 125%), after changing it to 100% everything looks normal
For me, I just move the VS window to the blurry monitor. Close VS. Open VS again and all looks good.
One of my duties at my job is to enhance and maintain a mature VB.Net windows application used internally by my company. We run 8 computers at the small company that each runs the app with no problems.
Recently we replaced one of the computers with a pretty standard notebook running Win 7 Professional with SP1 and for some reason, it won't display message boxes displayed using the normal MessageBox.Show("Message") method.
The vendor who sold us the computer says it must be the program, and I kind of sympathize with that view, but the fact is we have 8 other computers that all display their message boxes just fine.
Thought I'd post the issue here to see if anyone else has run into this and, if so, did they find a resolution?
I'm going to paint outside the lines a little bit and answer my own question with sort of a non-answer.
We battled that computer for about a week and a half and finally gave up and reinstalled the OS. Problem solved. Not really an answer because we still don't know what was going on or why reinstalling the OS fixed it.
Reinstalling was really an act of frustration/desperation as much as anything else. In the end we were just thankful the problem went away and we could move on. Figured I'd get this off of the unanswered questions list since I'm not really waiting for or expecting an answer at this point.
Ok bear with me because i am frustrated beyond belief right now.
go back about 30 minutes ago, i create a VB windows forms application. cool, nothing out of the ordinary only i make a big mistake and decide to start again. so i close the solution, delete the project folder and go to start again, only now i'm presented with
"requested operation cant be performed on file with user-mapped section open"
ok i think, there's obviously something still reading it or whatever, so i close VS completely and restart.. no avail. log off and try again. nothing. restart the computer. still nothing. what is causing this issue? i can create a C# Windows Forms Application without a frigging problem. everything BUT a VB WFA. what do i do? i'm in no real position to re-install VS right now or i'd have started 20 minutes ago. i really need a helping hand here please
I have this annoying bug in MS Expression Web 4 SP2, weird GUI quirks: you can see in the picture: like parts of the display isn't being painted. I had this before, and solved it by uninstalling something, but the problem is that I don't remember what it was... (I installed Exp.Web in fresh Win7 PC, and step by step installing everything, until this problem came up.)
Anybody came across this issue maybe ?
The problem is a program called FileBox eXtender. It's excellent program I use to pin windows to have them always on top (never be hidden by other windows), because it does its job and it's free. Unfortunately, MS-Expression (Web, Blend, etc...) doesn't get along with it, so I excluded it (somewhere in FileBox-eXtender's options) and now it's o.k.
I have a working vb.net project which runs successfully on my host computer through the console. I've published it, installed it on other computers, and run it successfully on those machines. I have installed xampp which is necessary for the php to run behind the scenes as well, and again, everything runs perfectly.
However, this morning, I went to install it on another computer and something weird occurred. One of the labels on the window, overlapped into a text field. This sounds somewhat harmless, but the result was that the user could not use the text field, and so the app will not work.
Basically my question then is, is there some way to limit the formatting so that it will work on all computers? (I find this odd to ask, since the questionable computer is a windows 64 bit operating system as is the computer's I've installed on and the computer I'm currently on)
It sounds like the DPI settings are causing your issue. You can verify this by changing the DPI settings back to 100%, restart the computer and see if it makes any difference. See this Link on how you can change your DPI settings.
I can't give you a straight up answer on how you can solve this issue that you are experiencing. But I am going to give you a lead to how you can solve it.
See the links below for two other threads on the issue:
Creating a DPI-Aware Application
How do I detect if the user's font (DPI)...
Some more information on the matter:
Creating an application that will scale correctly on other computers will depend if you have written the application in 100% DPI yourself. If you have not, then you might experience issues downscaling or upscaling the application size to fit other DPI settings.
You want the application to scale depending on user settings. You can use the following code to do so:
Public Sub New()
InitializeComponent()
Me.AutoScaleMode = AutoScaleMode.Dpi
Me.AutoSize = True
End Sub
Keep in mind, this will scale the current form, you will have to do the same for all other forms that you have in your application. See bullet-point link 2 for more information on this.
If you have used containers such as Panel, TableLayoutPanel, etc. whilst creating your form, you will have a better time making the form fit the other DPI settings. (I know this from personal experience with application scaling.)