Making a form popup

  • Thread starter Thread starter Prasun
  • Start date Start date
P

Prasun

Hello:

Is there a way from me to make a second form(a DataGrid) pop-up when the
user presses a button on a message box.
How do I do this?

Thank You
Prasun
 
If you are using the inbuilt MessageBox, then it is a model window. When you
click a button you get control back to the calling code. You can popup the
new window based on the button that was clicked in teh code following the
call to the messagebox.

Eg.

result = Msgbox("test")
newform.show() 'I am not checking the result here, but you can.

Rgds,
Anand
http://www.dotnetindia.com
 
Prasun
Is there a way from me to make a second form(a DataGrid) pop-up when the
user presses a button on a message box.
How do I do this?

\\\\
If messagebox.show(Whatever) = dialogresult.OK then
dim myDataGridForm as new DataGridForm
myDataGridForm.ShowDialog
End if
///
I hope this helps,

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top