473,406 Members | 2,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Expandable Message Box and MsgBox Icon in VB.NET

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
2 7646

"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Raymond H. | last post by:
Bonjour, Est-il possible d'exécuter seulement un msgbox dans l'événement clik d'une ToolBar mais sans que le bouton en question (de la ToolBar) ne s'enfonce mais reste normal sans enfoncement ?...
1
by: Gordon Sanderson | last post by:
I have been working with for two days on a database with no problems(changing forms and adding code to the forms and a module). Shut down last night was fine, with no errors generated. This...
0
by: sanjana | last post by:
hi i want to write a C# .net code to display a balloon in the task bar i have used notifyicon class to get the icon in the task bar then i have used Shell_NotifyIcon and NotifyIconData structure...
0
by: kapcreations | last post by:
I have a system tray app which gets the status of a windows service, and displays the appropriate icon for the status of the service in the systray. the problem I am having is the icon disapears...
1
by: Jason | last post by:
I am trying to send mail via SMTP, using VB.NET on XP. I keep getting this error: "Could not access 'CDO.Message' object." (I can send mail fine via VB6, using CDONTS.) I have added a reference...
8
by: g_man | last post by:
I am trying trap Runtime error 3022 (duplicates) in the click event of a command button that closes the form. I have code in the Form_Error event that does a good job of providing a more meaningful...
4
by: rzito | last post by:
I am looking for a technique with regards to the message displayed when you enter text into a numeric field. I obviously get the "The value entered isn't valid for this field" message how do I...
0
by: hellboss | last post by:
Hi ! im work in vs05 asp.net , i would like to use a custom msgbox where i can attach my icon. LIke the Critical and information icon in the usual msgboxs, or else can we Change the icon of existing...
8
ADezii
by: ADezii | last post by:
Have you ever wondered how Microsoft Access displays those Custom Message Boxes with the first line in BOLD, and the second and/or second and third lines in Normal Font Weight? The answer lies in the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.