943,984 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 514
  • VB.NET RSS
Nov 5th, 2009
0

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

Expand Post »
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:
VB.NET Syntax (Toggle Plain Text)
  1. Dim someFrame as myFrame = new myFrame
  2. someFrame.ShowDialog()

Then, inside that form:
VB.NET Syntax (Toggle Plain Text)
  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?
Similar Threads
Reputation Points: 8
Solved Threads: 2
Light Poster
rciprogrammer is offline Offline
39 posts
since Jan 2009
Nov 5th, 2009
0
Re: Can I have a message box pop up in a form that is called via ShowDialog?
>Is this possible to get working?
Yes.
Moderator
Reputation Points: 2136
Solved Threads: 1228
Posting Genius
adatapost is offline Offline
6,527 posts
since Oct 2008
Nov 6th, 2009
0
Re: Can I have a message box pop up in a form that is called via ShowDialog?
Click to Expand / Collapse  Quote originally posted by adatapost ...
>Is this possible to get working?
Yes.
And that would be how? (Not exactly the most helpful post)
Reputation Points: 8
Solved Threads: 2
Light Poster
rciprogrammer is offline Offline
39 posts
since Jan 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Issue using Like in VB query to Access DB
Next Thread in VB.NET Forum Timeline: Keypress event





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC