Modal Dialog Box

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tranesy
    New Member
    • Jun 2007
    • 8

    #1

    Modal Dialog Box

    how can I create dialog box as openfiledialog or as other ready dialog box in window but from my design

    please help me
  • tranesy
    New Member
    • Jun 2007
    • 8

    #2
    please help me
    i need this very much

    Comment

    • tranesy
      New Member
      • Jun 2007
      • 8

      #3
      no one no the solution using C#

      Comment

      • dip_developer
        Recognized Expert Contributor
        • Aug 2006
        • 648

        #4
        Originally posted by tranesy
        how can I create dialog box as openfiledialog or as other ready dialog box in window but from my design

        please help me

        Please state ur requirement clearly........

        Comment

        • blackjack2150
          New Member
          • Feb 2007
          • 79

          #5
          Originally posted by tranesy
          how can I create dialog box as openfiledialog or as other ready dialog box in window but from my design

          please help me
          This is not very complicated.

          Right click on your project in solution explorer and choose Add->WindowsForm.
          Design the form the way you like/need it.

          When you need to use it, you declare an object of the type you created and display the form using the Show or ShowDialog if you want to behave like the predefined dialog boxes.

          Good Luck!

          Comment

          • Plater
            Recognized Expert Expert
            • Apr 2007
            • 7872

            #6
            Any windows form can act like a dialogbox. Instead of using .Show(), use .ShowDialog().
            You have other things to do like setting the .DialogResult for your form based on user actions, but that is very simple.

            Comment

            • tranesy
              New Member
              • Jun 2007
              • 8

              #7
              can i take object from Modal classs

              Comment

              • Plater
                Recognized Expert Expert
                • Apr 2007
                • 7872

                #8
                What Modal class?
                If you are asking can you inherint the openfiledialog class then the short answer is "no" the long answer is "yes, if you find a custom .dll made in c++ and import it"
                If you are just looking to make a popup dialog, you can inherit from the sysyem.windows. forms.form class

                Comment

                Working...