Making a Preferences Dialog like Visual Studios 'Options' Dialog?
-
Hello, I have just started to use C#, I have to make a User Preferences Dialog box like the 'Options' dialog in the VS.NET IDE, I have been searching online but (may be I am using wrong keywords for it) have not found any tutorials... second problem is that I have a form that has two parts, 1. Main Part, 2. Sub Part, and I want the sub-part to appear only if the check box 'Show Sub Part' is checked, otherwise it should remain hidden... Any help would be much appreciated (I'd be grateful if it's a link to some tutorial that deals with something like this) Peace... - A programmer's national anthem; "AAAAAHHHHH!!!!"
-
Hello, I have just started to use C#, I have to make a User Preferences Dialog box like the 'Options' dialog in the VS.NET IDE, I have been searching online but (may be I am using wrong keywords for it) have not found any tutorials... second problem is that I have a form that has two parts, 1. Main Part, 2. Sub Part, and I want the sub-part to appear only if the check box 'Show Sub Part' is checked, otherwise it should remain hidden... Any help would be much appreciated (I'd be grateful if it's a link to some tutorial that deals with something like this) Peace... - A programmer's national anthem; "AAAAAHHHHH!!!!"
signbit wrote:
have not found any tutorials...
Those sort of UI components do not exist in VS, they are custom written. So, you'll need to find a component that does it, not a tutorial showing you how to do it.
signbit wrote:
second problem is that I have a form that has two parts, 1. Main Part, 2. Sub Part, and I want the sub-part to appear only if the check box 'Show Sub Part' is checked, otherwise it should remain hidden...
Put a control on the edge of the area you want to hide, and use the Width property of your form to show/hide it based on the position of this control. A panel or something, maybe a label with no text ? It's a place holder. Then you need to also make your form a fixed size so the user does not maximise it. Christian Graus - Microsoft MVP - C++
-
signbit wrote:
have not found any tutorials...
Those sort of UI components do not exist in VS, they are custom written. So, you'll need to find a component that does it, not a tutorial showing you how to do it.
signbit wrote:
second problem is that I have a form that has two parts, 1. Main Part, 2. Sub Part, and I want the sub-part to appear only if the check box 'Show Sub Part' is checked, otherwise it should remain hidden...
Put a control on the edge of the area you want to hide, and use the Width property of your form to show/hide it based on the position of this control. A panel or something, maybe a label with no text ? It's a place holder. Then you need to also make your form a fixed size so the user does not maximise it. Christian Graus - Microsoft MVP - C++
-
You can create child forms and show them as modeless dialogs, and then you can set their visible propertly. Christian Graus - Microsoft MVP - C++
-
signbit wrote:
have not found any tutorials...
Those sort of UI components do not exist in VS, they are custom written. So, you'll need to find a component that does it, not a tutorial showing you how to do it.
signbit wrote:
second problem is that I have a form that has two parts, 1. Main Part, 2. Sub Part, and I want the sub-part to appear only if the check box 'Show Sub Part' is checked, otherwise it should remain hidden...
Put a control on the edge of the area you want to hide, and use the Width property of your form to show/hide it based on the position of this control. A panel or something, maybe a label with no text ? It's a place holder. Then you need to also make your form a fixed size so the user does not maximise it. Christian Graus - Microsoft MVP - C++
-
hmm, that sure helps... and hey!, instead of writing a new control for the first problem, why can't I use the same approach i.e. making several penals and show/hide appro Thanks... - A programmer's national anthem; "AAAAAHHHHH!!!!"
Yes, a tree on the right and a lot of panels that you show and hide would work just fine. I'd just be inclined to wrap that in a control, and then create the panels as user controls, if it was me. Christian Graus - Microsoft MVP - C++
-
Yes, a tree on the right and a lot of panels that you show and hide would work just fine. I'd just be inclined to wrap that in a control, and then create the panels as user controls, if it was me. Christian Graus - Microsoft MVP - C++