473,616 Members | 2,835 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Que stion, a red cross for MsgBoxStyle. Critical)

I'd appreciate any suggestion.
Thanks

Jun 16 '07 #1
2 7654

"JB" <jb*********@gm ail.comwrote in message
news:11******** **************@ q69g2000hsb.goo glegroups.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.Que stion, 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.c omwrote:
"JB" <jb.bross...@gm ail.comwrote in message

news:11******** **************@ q69g2000hsb.goo glegroups.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.Que stion, 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.Transpare nt
.SizeMode = PictureBoxSizeM ode.AutoSize
.Image = SystemIcons.Inf ormation.ToBitm ap '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
2806
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 ? Car dans mon programme, lorsque je clique sur le point d'interrogation mon curseur change en point d'interrogation. Et si je clique sur la ToolBar avec ce point d'interrogatin je veux seulement afficher le msgbox d'aide qui explique le bouton de...
1
2587
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 morning, I opened the database and I started getting the dialog "MSACCESS.exe has generated errors and will be closed by Windows. You will need to restart the program. An error log is being created." with an OK button. Access shuts down. If I...
0
2548
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 for getting the balloon So now i have an icon n a balloon in the task bar But i wan tht when i click on the yellow windows balloon an event should be fired I know tht i have to use NIN_BALLOONUSERCLICK of Shell_NotifyIcon for
0
1822
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 under certain conditions, but the exe is still listed in the processes leading me to believe the app is still running. It fires up perfectly on boot, however if the user logs off, and then logs back in (not reboot), or if the system goes to...
1
2443
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 to System.Web, and this is my code: Try WebMailMessage.From = Sender
8
13094
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 error message than the default. It works in every situation except when the user clicks the close button. I am using Me.Dirty=False to force a save but if there are duplicates I just get the standard Runtime 3022 error message. I am wondering...
4
3171
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 substitute this message for my own? I have tried before update (if notisnumeric(myfield.text), keydown. But I can not get it to wok, thanks in advance!
0
941
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 msgboxs. Is it possible wit Asp.net , or any other alternative to achieve this , Thanks in advance
8
12368
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 unique ability to break up your Message Text into either two or three Paragraphs using the "@" symbol, then evaluating the entire expression using the Eval() Function. The "@" symbol inserted into your Message Text will break the Message into...
0
8145
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8592
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8294
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8448
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7118
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4060
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4140
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2576
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1759
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.