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. WPF
  4. Windows forms application popup dialog?

Windows forms application popup dialog?

Scheduled Pinned Locked Moved WPF
winformsquestion
7 Posts 4 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.
  • M Offline
    M Offline
    Mattzimmerer
    wrote on last edited by
    #1

    I want to have my application pop up a dialog or another form do display a lot of check boxes and return the condition of the check boxes... I was just wondering how I could do this using "best practices". So far I think I'm looking at a child window of a custom dialog? Where should I go?

    S 1 Reply Last reply
    0
    • M Mattzimmerer

      I want to have my application pop up a dialog or another form do display a lot of check boxes and return the condition of the check boxes... I was just wondering how I could do this using "best practices". So far I think I'm looking at a child window of a custom dialog? Where should I go?

      S Offline
      S Offline
      Super Lloyd
      wrote on last edited by
      #2

      your question is partly confusing... it seems to be a "Winform" question (the previous UI toolset of .NET, before WPF), yet you ask the WPF forum! A quick answer to both: in winform Form have this method

      public class Form
      {
      public DialogResult ShowDialog();
      public DialogResul DialogResult { get; set; }
      ....
      }

      and in WPF Window have this method

      public class Window
      {
      public bool? ShowDialog();
      public bool? DialogResult { get; set; }
      ....
      }

      Take your pick, use one. ShowDialog() is blocking until the window is closed

      A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.

      M 1 Reply Last reply
      0
      • S Super Lloyd

        your question is partly confusing... it seems to be a "Winform" question (the previous UI toolset of .NET, before WPF), yet you ask the WPF forum! A quick answer to both: in winform Form have this method

        public class Form
        {
        public DialogResult ShowDialog();
        public DialogResul DialogResult { get; set; }
        ....
        }

        and in WPF Window have this method

        public class Window
        {
        public bool? ShowDialog();
        public bool? DialogResult { get; set; }
        ....
        }

        Take your pick, use one. ShowDialog() is blocking until the window is closed

        A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.

        M Offline
        M Offline
        Mattzimmerer
        wrote on last edited by
        #3

        yes SORRY.. lol, i thought WF meant winform... so maybey your confused about the forum? its name is (WPF / WCF / WF) besides, I found out how noob I was, I simply had my main form launch another form giving its self as a parameter... problem solved!!!

        S D 2 Replies Last reply
        0
        • M Mattzimmerer

          yes SORRY.. lol, i thought WF meant winform... so maybey your confused about the forum? its name is (WPF / WCF / WF) besides, I found out how noob I was, I simply had my main form launch another form giving its self as a parameter... problem solved!!!

          S Offline
          S Offline
          Saiyed Alam
          wrote on last edited by
          #4

          Man before you say some thing be sure that you are right... WF does not mean winform... It means Work Flow... Have u ever heard the name of Work Flow..

          M 1 Reply Last reply
          0
          • M Mattzimmerer

            yes SORRY.. lol, i thought WF meant winform... so maybey your confused about the forum? its name is (WPF / WCF / WF) besides, I found out how noob I was, I simply had my main form launch another form giving its self as a parameter... problem solved!!!

            D Offline
            D Offline
            darkelv
            wrote on last edited by
            #5

            Mattzimmerer wrote:

            I simply had my main form launch another form giving its self as a parameter... problem solved!!!

            That is probably the worst way to do it. Passing Data Between Forms[^]

            M 1 Reply Last reply
            0
            • D darkelv

              Mattzimmerer wrote:

              I simply had my main form launch another form giving its self as a parameter... problem solved!!!

              That is probably the worst way to do it. Passing Data Between Forms[^]

              M Offline
              M Offline
              Mattzimmerer
              wrote on last edited by
              #6

              Lol, yea probally, what should I do then?

              1 Reply Last reply
              0
              • S Saiyed Alam

                Man before you say some thing be sure that you are right... WF does not mean winform... It means Work Flow... Have u ever heard the name of Work Flow..

                M Offline
                M Offline
                Mattzimmerer
                wrote on last edited by
                #7

                "lol, i thought WF meant winform" yea reading my post it does really read like I think your wrong... I should sit back and reread my posts No, I meant to show that that was probably a misconception by me... sorry for coming off as rude... Once again I'm aware I am a noob, and my formal education is limited intro c++ (sorting, recursion, ect) I'm coding a GUI for an SQL database for my families business, and I would love professional input..., so once again I just want to reiterate, I KNOW you know more than me, throw me some direction. The reason I'm using Windows forms and not WPF is that I couldn't use the dataGridView object (at least as far as I know). What direction should I use to display SQL data with WPF with data-binding? I want the data to resemble excel for this particular database table.

                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