By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,032 Members | 1,175 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,032 IT Pros & Developers. It's quick & easy.

Making a form popup

P: n/a
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

Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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" wrote:
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

Nov 21 '05 #2

P: n/a
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
Nov 21 '05 #3

P: n/a
"Prasun" <pr******@csufresno.edu> schrieb:
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?


I am not sure what you want to archieve...

\\\
Dim f As New FooForm()
f.ShowDialog()
f.Dispose()
///

Use .NET Forms as Popup Windows
<URL:http://vbaccelerator.com/article.asp?id=13309>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.