Windows forms application popup dialog?
-
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?
-
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?
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 methodpublic class Form
{
public DialogResult ShowDialog();
public DialogResul DialogResult { get; set; }
....
}and in WPF
Window
have this methodpublic 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.
-
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 methodpublic class Form
{
public DialogResult ShowDialog();
public DialogResul DialogResult { get; set; }
....
}and in WPF
Window
have this methodpublic 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.
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!!!
-
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!!!
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..
-
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!!!
-
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[^]
Lol, yea probally, what should I do then?
-
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..
"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.