- VBForums
- Visual Basic
- API
- Change The Message Box Default Icon
- If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
Results 1 to 3 of 3 Thread: Change The Message Box Default Icon - Jul 11th, 2000, 03:26 AM #1 gshabtay
- View Profile
- View Forum Posts
Thread Starter Junior Member Join Date Jun 2000 Posts 24 I just wonder how can I Change The Message Box Default Icon ? Reply With Quote - Jul 11th, 2000, 01:48 PM #2 Guest
Code: Constant Value Description vbOKOnly 0 OK button only (default). vbOKCancel 1 OK and Cancel buttons. vbAbortRetryIgnore 2 Abort, Retry, and Ignore buttons. vbYesNoCancel 3 Yes, No, and Cancel buttons. vbYesNo 4 Yes and No buttons. vbRetryCancel 5 Retry and Cancel buttons. vbCritical 16 Critical message. vbQuestion 32 Warning query. vbExclamation 48 Warning message. vbInformation 64 Information message. vbDefaultButton1 0 First button is default (default). vbDefaultButton2 256 Second button is default. vbDefaultButton3 512 Third button is default. vbApplicationModal 0 Application modal message box (default). vbSystemModal 4096 System modal message box. MsgBox Return Values Constant Value Description vbOK 1 OK button pressed. vbCancel 2 Cancel button pressed. vbAbort 3 Abort button pressed. vbRetry 4 Retry button pressed. vbIgnore 5 Ignore button pressed. vbYes 6 Yes button pressed. vbNo 7 No button pressed. use: Msgbox "Hi!", 64, "Hello!!!" Msgbox "What?", 32 Msgbox "System Message!, 48 Msgbox "DANGER!", 16 You can add to: Msgbox "Hi", 4 + 1 Or look in your help file under Msgbox Constants. Those are the icons and options you can do with a messagebox. There is no way you can use the default messagebox and use your own icon, to do that, you must create your own with a form. [Edited by Matthew Gates on 07-11-2000 at 02:50 PM] Reply With Quote - Jul 11th, 2000, 06:33 PM #3 Guest
It might be easier just to use the constants. Code: retval = MsgBox("Critical Icon with ABORT, RETRY, IGNORE", vbAbortRetryIgnore + vbCritical, "MyTile") Reply With Quote Quick Navigation API Top - Site Areas
- Settings
- Private Messages
- Subscriptions
- Who's Online
- Search Forums
- Forums Home
- Forums
- Visual Basic
- Visual Basic .NET
- CodeBank - VB.net
- Visual Basic 6 and Earlier
- CodeBank - Visual Basic 6 and earlier
- TwinBASIC
- CodeBank - TwinBASIC
- Universal Windows Platform and Modern Windows Experience
- Xamarin
- Mobile Development
- ASP, VB Script
- Office Development
- Database Development
- Reporting
- API
- Games and Graphics Programming
- Game Demos
- COM and ActiveX
- Network Programming
- Visual Basic FAQs
- Slow Chat with the Microsoft Visual Basic team
- .NET and More
- ASP.NET And ASP.NET Core
- Visual Basic .NET
- MVC .Net
- C#
- Microsoft Azure and Cloud Dev
- WPF, WCF, WF
- .NET Architecture and Design
- Silverlight
- General
- General Developer Forum
- IoT, IoE, and Maker Forum
- Testers and Testing
- Application Testing
- Application Deployment
- Linux Development
- General PC
- VBForums Coding Contests
- Contest Entries
- Code It Better
- Maths Forum
- Other Languages
- Other BASIC
- C and C++
- Java
- PHP
- XML, HTML, Javascript, Web and CSS
- jQuery
- Assembly
- Other Programming Languages
- VBForums CodeBank
- CodeBank - Visual Basic .NET
- CodeBank - Visual Basic 6 and earlier
- CodeBank - ASP / ASP.NET / Blazor / MVC / Web API
- CodeBank - C#
- CodeBank - C++
- CodeBank - Java / J#
- CodeBank - PHP
- Codebank - Game Programming
- Codebank - Mobile Development
- CodeBank - JavaScript
- Codebank - Cascading Style Sheets (CSS)
- CodeBank - Other
- VBForums UtilityBank
- UtilityBank - Utilities
- UtilityBank - IDE Add-Ins
- UtilityBank - Components
- UtilityBank - Tutorials
- UtilityBank - Other
- Projects
- Project Requests
- Project Communication Area
- Jobs
- Just VB Jobs
- Open Positions (Jobs)
- Looking for Work
- Community
- Forum Feedback
- General Discussion / Chit Chat
- World Events
- Forum Test Area
« Previous Thread | Next Thread » - VBForums
- Visual Basic
- API
- Change The Message Box Default Icon
Posting Permissions - You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
- BB code is On
- Smilies are On
- [IMG] code is On
- [VIDEO] code is On
- HTML code is Off
Forum Rules | Click Here to Expand Forum to Full Width |
Terms of Service | About Us | Privacy Notice | Contact Us | Advertise | Sitemap
All times are GMT -5. The time now is
.