Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Making a Preferences Dialog like Visual Studios 'Options' Dialog?

Making a Preferences Dialog like Visual Studios 'Options' Dialog?

Scheduled Pinned Locked Moved C#
csharpvisual-studiohelpalgorithmstutorial
7 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    signbit
    wrote on last edited by
    #1

    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!!!!"

    C 1 Reply Last reply
    0
    • S signbit

      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!!!!"

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      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++

      S 2 Replies Last reply
      0
      • C Christian Graus

        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++

        S Offline
        S Offline
        signbit
        wrote on last edited by
        #3

        [Message Deleted]

        C 1 Reply Last reply
        0
        • S signbit

          [Message Deleted]

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          You can create child forms and show them as modeless dialogs, and then you can set their visible propertly. Christian Graus - Microsoft MVP - C++

          1 Reply Last reply
          0
          • C Christian Graus

            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++

            S Offline
            S Offline
            signbit
            wrote on last edited by
            #5

            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!!!!"

            C 1 Reply Last reply
            0
            • S signbit

              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!!!!"

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              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++

              S 1 Reply Last reply
              0
              • C Christian Graus

                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++

                S Offline
                S Offline
                signbit
                wrote on last edited by
                #7

                Ummm... Okay... I'll put that in a control :) Thanks for your help, it was great... - A programmer's national anthem; "AAAAAHHHHH!!!!"

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups