Closing windows form via taskbar different to close button? [closed] - c#

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
I have a windows forms program which saves properties like its size, location, splitter bar locations &c in a properties file in hte usual way. I've noticed that whenever I close the application by right clicking on its taskbar icon and choosing 'close window', these properties don't save correctly and my application then either won't start or starts with size 0 or something.
Of course I can catch these problems and hack around them, but I would like to know what is different between closing via the form and via the taskbar, so I can handle the appropiate events.

As the first commenter to recommend the use of Form.Closed, I'm demanding my ransom money! :-)

Related

selenium with C# on IE [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
Switching multiple windows in IE.
First page has LOGIN button which on clicked goes to second window.
Second window takes credentials and has a NEXT button which on clicked goes to third window.
Third window has a button which on clicking moves to the fourth window.
How do I navigate mutiple windows using Selenium with C#.My website runs on IE only.
To switch to the new window after it opens you can use
driver.SwitchTo().Window(driver.WindowHandles.Last());

WinForms moving object C# [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I want to move an object on WinForms (with WASD) and it goes pretty well,but when I add a button at the Form, the object doesn't move anymore.
Controls like Button take focus and "eat" the keypress events. A form will always set focus to one of its child controls if there is one that allows getting focus.
Set KeyPreview = true on your form to receive these events regardless.

Windows form design not updated when running? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
I'm using VS2012(c# winforms w/ devexpress).
I added a Ribbon Control and tried to debug the project.
I have noticed the form doesn't have a Ribbon Control.
I tried deleting the bin folder, but that did not helped.
Step 1. Delete the bin folder and the rebuild the project.
Step 2. If step 1 doesn't work check the visibility property of your ribbon control maybe it is set to false

How to build custom shell for windows7, wpf? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
How can I make my own shell for windows 7?
That will run in fullscreen mode and act something like windows media center.
What I want to achieve is a kind of application menu. After OS starts, shell will boot so the user can choose and run apps from the shell. When they are closed, user returns back to shell.
I've found no information on how to implement custom shells. Does anyone know where should I start with it?
I understand that it may require some c/c++ code, but i'd like to code in c#, wpf mostly.
Full screen application will probably enough for you.
To truly replace shell you need to change setting like HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell. Please search and read about making changes to this key... you still may be able to use task manager to bring regular explorer back if you change the value incorrectly.

Dialog too large for netbook's 800 x 480 resolution [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I've designed a winforms dialog that is too large for a netbook's 800 x 480 resolution.
How can I fix that the dialog is shown properly. Is there a simple way that avoids a complete redesign?
Here's a screenshot of my problem: http://img689.imageshack.us/img689/2449/allgemeina.jpg
You might want to look at this thread:
Windows Forms resolution problem
The question that you should be asking is..
Do I really need to have all of the form fields displayed at the same time?
If not, how about breaking it down into sub-groups and placing each group onto a separate tab?
I second #p.campbell in asking for a screenshot.
Perhaps take a stab at redesigning your dialog. Perhaps consider:
using tabs
moving some information out of the dialog
using scrollbars
If netbooks are not used much by your users, so you just need your software to work on them rather than to be nice, you could enable AutoScroll on the Form/Dialog, or use a one or more Panel controls with AutoScroll enabled.
You will then need to check the screan size and set the size of the dialog to be no bigger then the screan before showing it.

Categories

Resources