why I can't move a windows form in visual studio? - c#

this is probably an easy question but why I can't move a windows form while editing?
I mean, the tools box dont let me see the windows form and I cant move it to the other side, here's an image

The top left of the windows form will always stay at 0,0 in designer mode. To see it clearly in this case, just pin the tool box open, by clicking on the pin icon.

Related

Take a screenshot behind window in C# WinForm

I'm working on an app in c# windows forms, I have a form called Form1 with a button, and after click this button the idea is to take a screenshoot of everything behind it except the Form1 itself (without minimizing Form1).
Any idea or suggestion?
Thank you!
If you want a solution without hiding, moving, minimizing etc., you need the following approach:
EnumWindows() to iterate all windows. This will give you the windows top to bottom.
Don't forget to exclude your own window
Exclude windows that are invisible. Check out GetWindowLongPtr with GWL_STYLE and compare against WS_VISIBLE
GetWindowRect() to get their size
PrintWindow() to get a bitmap of the window, no matter whether it's in the background
Create a bitmap with the size of the VirtualScreen
Paint the windows in reverse order (bottom to top) using DrawImage()
I found that this is quite fast (514 ms on a 2560x1440 screen with 20 visible windows to draw).
Limitations:
since it sends a WM_PRINT message to the application, you can not capture applications that are "not responding"
For me, Firefox does not render well. It's missing page contents.
For me, control panel content appears black, although it's there when getting a screenshot of the whole screen.
you can use hard code. Actually light shot and other tools working such as. When you click to screenshot button you may close the form window after the event and reopen it. it is the basic way of solution...
Please check this way: How can i capture the screen without the Form?

Windows 10 UWP - How to make app dock at window edge and foldout

I'm planning the development of a fairly simple app and have little experience with UWP, some with Winforms. I'd like to make it so that the user can dock the app (similar to the taskbar, but the size of a browser tab) to the edge of the screen and allow it to slide in/out on click or hover. Searches have turned up nothing (maybe I'm not using the right terms) and I've yet to see this functionality on a Windows 10 app.
I'm thinking that I could just force the window to be offscreen or have a 0 width. But I'm not certain how to make a tab appear when that happens. Would I make a second window that is the tab?
All constructive thoughts and ideas are welcome.

Visual Studio Debug and variable watching

I'm having a really annoying issue with visual studio 2012.
During Debug I was used to look at the results of objects setting breakpoints and then moving mouse over the object and start exploring.
Now on my laptop that has a screen width of 1280px, it's not possible because the variable values are not wrapped, and the box goes completely out of the screen.
see the picture below:
and I'm not able anymore to click on the plus sign on the far left to view all the elements of the IEnumerable, or List...etc..
Is there some settings I have to modify to make it work also on 1280px screen?
At the root level, it (a DataTip dialog) has an unpin icon. Click the icon and the dialog floats above any open windows, and you can drag the dialog to a comfortable place, so you can expand to view all the elements in the IEnumerable (hopefully 1280px is enough).
View data values in Data Tips in the code editor
1920px (or higher) is a better resolution.

Visual Studio 2013 C# Designer won't let me move controls

I am working on a project in Visual Studio 2013, and recently I have found that the controls on any form simply refuses to move when I use the mouse to drag and drop. Instead it lets me drag, then as soon as I move the cursor it snaps back into place. Then when I let go, it selects the control the cursor is hovering over.
The keyboard keys work fine, but I don't see why the program has simply changed the rules on me from a convenient system to an annoying and tedious one.
The controls are not locked and the problem effects every form. If it helps, I use Citrix as a thin client on my computer to access school programs.
Hi can you please check the CSS styles
setting:Tools--> Options-->HTML Designer-->CSS styling--> then check
the "Change position to absolute for controls added using toolbox,
paste or drag and drop" check Box.
It should work

C# Visual Studio Open context menus the other way?

Normal context menus in Visual Studio always appear right to the mouse after you open them. Is it possible to make the context menu to appear left to the mouse after it opens? So it actually opens from right to left, instead from left to right.
Hope you know what I mean. (And no, the text in it is NOT meant, just the way the context menu opens) I wasn't able to find anything on that. It's just for aesthetics btw.
This is a new ergonomic feature in the Windows. The Windows check if you are using a touch screen than the Menus will open at the left side the reason is the human hand cover the right side of the clicked/pressed area (mouse pointer does not do that).
--------------------------------------------------Update -------------------------------------------------------------
I found the soultion for your prblem :-) you have to select from Tablet PC Settings the Left Handed, this will solve your problem.
Press the Windows logo key+R to bring up the Run dialog box. In the Open line, copy/paste the following text.
shell:::{80F3F1D5-FECA-45F3-BC32-752C152E456E}
Press OK.
This will start the Tablet PC Settings configuration dialog (Even if you do not have a Tablet PC).
Select the Other Tab.
In the Handedness section, place a check mark in the Left Handed option.
Click OK.
Look to this information from microsoft:
http://answers.microsoft.com/en-us/windows/forum/windows_7-desktop/windows-7-application-menus-drop-to-left-instead/2d362701-90e4-4ea6-a3a1-c1391a3d2bea
Do not forget to mark the answer.

Categories