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

Expandable Message Box and MsgBox Icon in VB.NET

P: n/a
JB
Hi All,

I've been using MsgBox function in VB for years and now that I've
moved to .NET, I'd like to do something a little bit more fancy.
I would like to create a message box that can be expanded to display
more details about an error. I have 2 questions about that:
1 - Is there something like an expandable Message Box built in VB.NET
or will I have to create the form and do all the resizing myself?
2 - How can I display the icon like the one in MsgBox (e.g. a question
mark for MsgBoxStyle.Question, a red cross for MsgBoxStyle. Critical)

I'd appreciate any suggestion.
Thanks

Jun 16 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a

"JB" <jb*********@gmail.comwrote in message
news:11**********************@q69g2000hsb.googlegr oups.com...
Hi All,

I've been using MsgBox function in VB for years and now that I've
moved to .NET, I'd like to do something a little bit more fancy.
I would like to create a message box that can be expanded to display
more details about an error. I have 2 questions about that:
1 - Is there something like an expandable Message Box built in VB.NET
or will I have to create the form and do all the resizing myself?
2 - How can I display the icon like the one in MsgBox (e.g. a question
mark for MsgBoxStyle.Question, a red cross for MsgBoxStyle. Critical)

I'd appreciate any suggestion.
Thanks
http://www.vbdotnetheaven.com/Upload...7-67629865b913

Your friend is Google.
http://www.google.com/search?hl=en&s...VB.net&spell=1

Jun 16 '07 #2

P: n/a
JB
On Jun 17, 1:13 am, "Mr. Arnold" <MR. Arn...@Arnold.comwrote:
"JB" <jb.bross...@gmail.comwrote in message

news:11**********************@q69g2000hsb.googlegr oups.com...
Hi All,
I've been using MsgBox function in VB for years and now that I've
moved to .NET, I'd like to do something a little bit more fancy.
I would like to create a message box that can be expanded to display
more details about an error. I have 2 questions about that:
1 - Is there something like an expandable Message Box built in VB.NET
or will I have to create the form and do all the resizing myself?
2 - How can I display the icon like the one in MsgBox (e.g. a question
mark for MsgBoxStyle.Question, a red cross for MsgBoxStyle. Critical)
I'd appreciate any suggestion.
Thanks

http://www.vbdotnetheaven.com/Upload...calizableVb111...

Your friend is Google.http://www.google.com/search?hl=en&s...=0&ct=result&c...

Hi All,

After quite a lot of searching, I've found on a news group a very
simple technique that works fine.
1 - Create an PictureBox control on the form
2 - Set the icon with the following code (in Load event for instance)
With Me.PictureBox1
.BackColor = Color.Transparent
.SizeMode = PictureBoxSizeMode.AutoSize
.Image = SystemIcons.Information.ToBitmap 'Other icons available
in SystemIcons
End With

JB

Jun 17 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.