Hi is there any way in which the zoom in level changes to 85% whenever VS2010 loads a project.
I find doing this procedure every time I load a project or a different page/file.I would like the default level to be 85% rather than 100%
I don't think there is a way to do it on startup, but check out Presentation Zoom.
If you zoom in on one page, the other pages will respect the new setting. It only persists while the Visual Studio is open, so you'd have to do it once every time you open it.
Related
During the xamarin forms development, how to verify if a control is occupying certain pixels in the screen.
(i.e) Like we verify for a web page by going through the developer tools of a browser of the styles each of the element occupies.
Is this possible with Xamarin emulator? To verify if the UI is coming up as expected on the emulator?
There is the Xamarin Inspector if you can afford a Visual Studio Enterprise subscription.
If you can't afford this (about 6000 $ p.a. is quite something), you could use the Appium Inspector (see here). It's very generic and hence not optimized for Xamarin Forms, but it might do the trick, if you're on a budget.
It allows you to inspect the UI elements and verify that they take the space they should. This is approximately how it looks (I think it's an older version):
Anyway, it's somewhat tricky to set up, but if you have set it up, you can use it to run UI-tests, too (that's what it's usually used for).
Bonus: The lowest key variant to verify that your controls take the space they should is simply setting their background color and visually inspect your layout.
How can I have a window resize automatically to fit the screen on the monitor, using Visual Studio 13 and C#.
Have an application which displays the main window from which you can call up (Fig 1) and individually display different forms to be populated and then submitted.
On some computers, the complete form is shown (Fig 2); however, on a few computers, only about 80% of the page is displayed (Fig3). No side (up/down) scroll bar is displayed, so the users on these computers are unable to scroll up and see the rest of the page. This is occurring on several computer makes and/or models and not limited to a specific make or model. Is there a method to be able to automatically resize the page to fit the screen or to show a scroll bar?
Tried re-imaging an affected computer from scratch, but get the same results. Image is coming from a central area, so don’t believe it’s the software. Other machines are re-imaged with same central image without this problem.
Using Control Panel, tried adjusting the resolution for the monitor with no success, getting the same results. Using a larger monitor does not solve this issue.
Had users use other unaffected computer, and they are able to get the complete screen. Tried users from unaffected machines test affected machines and they are unable to get the complete screen. User account profile is probably not the issue.
I am new to Visual Studio, C# and programming. I am trying to maintain a legacy application and do not want to break the application 90% of users are able to see complete windows. Open to suggestions.
(Fig 1) Main window
(Fig 2) Functioning correctly, what window should look like.
90% of users get this window
(Fig 3) Functioning incorrectly, 10% of users get this window.
Bottom is cut off. No scroll bar
To Use Scroll bars for this purpose you have to select the panel which content is getting hidden and in the properties choose AutoScroll : True
Here is the image
I've encountered a weird issue in which that the mouse wheel scrolling sensitivity when browsing code is slow, but however when I open an older project the mouse's scrolling speed is normal.
If I create a brand new project, scrolling speed is normal.
It should be like this:
..but is instead like this (from an older project):
I've looked around but however the only results suggest increasing the DPI on the screen, but however this can't be right since the scrolling speed differs between projects on the same computer.
How can I reset the scrolling speed of my project's code back to normal?
Turns out that it's an issue related to Windows 8, 8.1, and earlier versions of 10.
I had set the scrolling speed via PC Settings, but however (for some unknown reason) there seems to be two separate settings for the mouse scrolling speed: one for PC Settings and one for Control Panel.
This issue is simple to resolve; simply adjust the mouse's scrolling speed via Control Panel instead of Settings. Doing this also seems to change the PC Settings' value also.
This is no longer an issue with Windows 10 since the November 2015 update, with Visual Studio 2017. It is present in Visual Studio 2019, to fix this you'll want to refer to Swifty's answer.
This problem is still happening in 2020. I'm using VS 2019 Community with the latest Windows 10 update. I had to go here in the Options dialog to change the scroll speed.
Tools >> Options... >> Text Editor >> Advanced >> Scrolling sensitivity
From there, you can adjust the vertical and horizontal scrolling speeds.
I've encountered that issue, too. On my machine (a notebook), it appears to happen under the following circumstances: I open VS2017 without external monitor first. When I then plug in the external monitor and move the VS-window onto there, then the scorlling-speed is super-slow. Closing and reopening VS solves the issue in this situation. Probably, opening a new project will also reset VS appropriately, so this might be a viable explanation.
Go to the registry editor
Navigate to Computer\HKEY_CURRENT_USER\SOFTWARE\Elantech\SmartPad
Then set the scrollControll_mode value to 1.
Via Reddit
I have an app that opens a stagewebview window on one of it's pages to display a few specifics websites. I'm in the process of performance optimizing it and I've seemed to hit a snag with the stagewebview pages.
On all of the other pages, after a few seconds of idling the memory/cpu usage drops back down to near starting levels, but if I open the stagewebview window it appears to permanently increase the memory/cpu usage by upwards of 30-40 MB, and garbage collection doesn't seem to be able to bring it back down.
This is what I'm using to clean it up:
myWebView.viewPort=null;
myWebView.dispose();
myWebView=null;
There are no event listeners associated with it. Does anyone know if this is an inherent problem with stagewebview, or am I just doing something wrong?
We faced the Same issue with the mx:Html desktop component, the main reason for this that the dom tree is built and added to your app which increase the memory, we used the following trick (it helps alot but not remove all added memory):
myWebView.loadString("");//and for desktop myHtml.loadHtml("");
this way you clean the old dom tree and create an empty one with minimum resources, i believe they should add a new function for clean up, until then we can use this workaround, hope this help :).
I've never found an "ideal" layout for coding in Visual Studio. I have a three-monitor setup, but it seems that the solution explorer/properties/output/errors/whatever panes are always getting in the way or hogging screen space. It's a bit open-ended, sure, but do you have an "ideal" layout with the myriad of floating/dockable/anchored setups for specific windows? For instance, I like to split vertical code panes between two screens, and typically the solution explorer is anchored to the right of the right-most code pane, but that chews up screen real estate that I'd rather have for the code. I was thinking of floating those sorts of things off to another screen.
Apparently VS 2010 will do a LOT more for multi monitor setups. ScottGu went over this at DevConnections 2008, and a few more times, usually wherever he goes.
I got the impression that the MDI or tabbed codefiles might be able to be detached from the IDE, and float/draggable onto another monitor.
As it stands today in VS 2008, Solution Explorer, Immediate Window, etc are detachable and be able to float onto another monitor, separate from the main IDE.