This question already has an answer here:
How do you unpin and move the form in the Visual Studio designer?
(1 answer)
Closed 8 years ago.
I apologize for what may be a rudimentary question but I have looked through the net and can not find the answer to this question.
While designing the form in C#, I want to physically move the actual form to a different place on my Design Screen. I am not referring to it's location when I debug and run, but rather its positioning while I am designing it. I can't seem to drag it anywhere, and it seems to be locked in its position.
Thank you in advance
I think the answer is that you can't move the form in design mode, it's bound to the upper left corner. However you can undock and resize the window containing the form and move that to wherever you like, like shown in this screenshot:
.
Related
My problem is that I want to be able to simulate a click in a minimized window at specific coordinates. In other words, click in a hidden window without focus, not simulate a click to minimize said window. (I think my question is similar to this question, but I am not fluent in the syntax). I am using 2017 visual studio and would prefer VB answers as to how to approach this/ what methods I should do. Thank you for the help, and please let me know if I asked this question incorrectly.
EDIT: to clarify, I would also accept c# answers
This question already has answers here:
How to implement mdi in a WPF application
(3 answers)
Closed 5 years ago.
I have struggling with this issue since long time. I am working of a project in which there is requirement to create pages similar to msword or wordpad or page software(mac). In the mentioned softwares, user can able to type text and once the text reaches to the bottom, a new page appears below it. User continues typing in next page.
I could not able to figure out how to achieve this. I am developing this software using c# and WPF.
Any guidance will be helpful. Thanks in advance. Hope you understand my requirement. So far, I guess, the pages must be similar to iframes in website design. Anyways, any guidance will be helpful. Thank you.
As I understand you need MDI like UI.
Read this or google "MDI UI in WPF"
This question already has answers here:
WPF Always On Top
(7 answers)
How to make a window always stay on top in .Net?
(14 answers)
Closed 5 years ago.
When the task manager is open, there is an option for "Always On Top" in the menu bar. I would like this to be the default behavior for my application. I am using C# in Visual Studio to write the program. It is basically an investment calculator that offers important numbers for the user.
The user will need these numbers and it is unlikely for them to be able to memorize them. Time is of the essence when using my application so stopping to write them all down is not feasible either. How was this implemented? Thanks in advance.
Response to proposed duplicate
I do not think this is a duplicate question. Other questions on SO have used third party software to handle this task. I also was under the impression that what others were seeking related to keeping one of many of their forms as top most. I am specifically asking to be higher than all applications running on the machine.
Furthermore, the question was designed to seek help on implementation of code to facilitate this. In the article offered by Mohammed, there is code for working with Windows API and I was unable to get it working. I had read this article prior to asking the question. Most people reported TopMost property to not help them, and many responses reported using Windows API.
if its winform application Form.TopMost will work
Depending on what you are using (WPF or Forms), these may help you :
WPF : WPF Always On Top
Forms : How to make a window always stay on top in .Net?
The idea is to set True to the property YourForm.TopMost or YourWindow.TopMost. You may still have troubles with full screen applications that can be on top of yours.
This question already has answers here:
How to configure an app to run correctly on a machine with a high DPI setting (e.g. 150%)?
(6 answers)
Closed 7 years ago.
Here is a screenshot to get a clearer understanding to my problem:
.
As you can see that the program is not sharp while the one in the visual studio is sharp and clear. Please help me out as i couldn't find solution to this online.
It's due to re-sizing of your windows form. So more you enlarge the window the images becomes blurred. you can embed this resource in your project and correct few properties for that image.
This question already has answers here:
How can I navigate between forms
(3 answers)
Closed 8 years ago.
So, I'm new to Visual Studio and I'm trying to make a simple multi-page WinForms program in Visual C#. How do I change the "page" that the program is displaying like a normal program does? So far the best I can do is close/hide one Form and open another in its place.
WinForms doesn't have a notion of "pages". That mechanism was made popular later on the windows client, with WPF. One could argue that WinForms apps are more normal than the rest. ;)
One thing you could do to simulate it, would be to make your "pages" in UserControls, and then add/remove them from the form dynamically.