S
Sreedharan
Mine is a WinCE3.0 device.
When deploying application from Visual Studio .NET, I am selecting
"Pocket PC device" as the targwet device.
I found by using the steps mentioned below, ShowDialog isn't working
properly(It will still show the new form, but it won't be a modal
dialog). How ever this scenario didn't occur in Emulator
1) Create a new Smart device Project
2)Let the class name be Form1.Place 2 buttons controls namely
"Show","Close" in the Form1.
3)On the button click event place the following code,
private void CloseButton_Click(object sender, System.EventArgs e)
{
Close();
}
private void ShowButton_Click(object sender, System.EventArgs e)
{
Form1 frm = new Form1();
frm.ShowDialog();
}
4) Run the application in the device. Click the "Show" button, It will
pop-up another form. Click the Show button in the second form. 3rd
form will be shown. Now Click "Show" button in the 3rd form. another
form will be shown.
5) I notice that, user can still activate 3rd form when 4th form is
being shown. (this should not happen, for ShowDialog() )
How to resolve it?
Regards,
Sreedharan
When deploying application from Visual Studio .NET, I am selecting
"Pocket PC device" as the targwet device.
I found by using the steps mentioned below, ShowDialog isn't working
properly(It will still show the new form, but it won't be a modal
dialog). How ever this scenario didn't occur in Emulator
1) Create a new Smart device Project
2)Let the class name be Form1.Place 2 buttons controls namely
"Show","Close" in the Form1.
3)On the button click event place the following code,
private void CloseButton_Click(object sender, System.EventArgs e)
{
Close();
}
private void ShowButton_Click(object sender, System.EventArgs e)
{
Form1 frm = new Form1();
frm.ShowDialog();
}
4) Run the application in the device. Click the "Show" button, It will
pop-up another form. Click the Show button in the second form. 3rd
form will be shown. Now Click "Show" button in the 3rd form. another
form will be shown.
5) I notice that, user can still activate 3rd form when 4th form is
being shown. (this should not happen, for ShowDialog() )
How to resolve it?
Regards,
Sreedharan