Can I have a message box pop up in a form that is called via ShowDialog?

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2009
Posts: 22
Reputation: rciprogrammer is an unknown quantity at this point 
Solved Threads: 1
rciprogrammer rciprogrammer is offline Offline
Newbie Poster

Can I have a message box pop up in a form that is called via ShowDialog?

 
0
  #1
Nov 5th, 2009
I have a form that is called w/ ShowDialog. Inside that form, I want to pop a message box to ask the user a question, but it doesn't show.

Form:
  1. Dim someFrame as myFrame = new myFrame
  2. someFrame.ShowDialog()

Then, inside that form:
  1. Dim ans As MsgBoxResult
  2. ans = MsgBox(transarr(16), MsgBoxStyle.YesNo + MsgBoxStyle.SystemModal, "WARNING!")
  3.  
  4. If ans = MsgBoxResult.Yes Then
  5. 'do something
  6. Else
  7. 'do something else
  8. End If

Is this possible to get working?
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,721
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 499
Moderator
adatapost's Avatar
adatapost adatapost is offline Offline
Posting Maven
 
0
  #2
Nov 5th, 2009
>Is this possible to get working?
Yes.
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 22
Reputation: rciprogrammer is an unknown quantity at this point 
Solved Threads: 1
rciprogrammer rciprogrammer is offline Offline
Newbie Poster
 
0
  #3
Nov 6th, 2009
Originally Posted by adatapost View Post
>Is this possible to get working?
Yes.
And that would be how? (Not exactly the most helpful post)
Reply With Quote Quick reply to this message  
Reply

Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



Tag cloud for VB.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC