Welcome to Dream.In.Code
Become a VB Expert!

Join 137,234 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,675 people online right now. Registration is fast and FREE... Join Now!




MSGBOX in vb 6.0

 
Reply to this topicStart new topic

MSGBOX in vb 6.0

sudhirinamdar
18 Feb, 2007 - 10:53 PM
Post #1

New D.I.C Head
*

Joined: 18 Feb, 2007
Posts: 42


My Contributions
How to change the font style and back color to msgbox?
User is offlineProfile CardPM
+Quote Post

born2c0de
RE: MSGBOX In Vb 6.0
19 Feb, 2007 - 04:45 AM
Post #2

printf("I'm a %XR",195936478);
Group Icon

Joined: 26 Nov, 2004
Posts: 3,914



Thanked: 34 times
Dream Kudos: 2800
Expert In: 80x86 Assembly, C/C++, VB6, VB.NET, C#, J2SE, Win32 API, Reversing

My Contributions
The Message Box is not customizable in Windows.
Write your own Dialog Box that resembles the Message Box.
User is offlineProfile CardPM
+Quote Post

NickDMax
RE: MSGBOX In Vb 6.0
19 Feb, 2007 - 05:42 PM
Post #3

2B||!2B
Group Icon

Joined: 18 Feb, 2007
Posts: 2,859



Thanked: 50 times
Dream Kudos: 550
My Contributions
There are ways to do wonders with the windows message box... just not from within VB. API calls!

Note: if you do API level programming SAVE OFTEN and be prepaired for a sudden reboot.

Here is some examples on how to customize the windows msgbox.

Message Box Hooks

I tried to roll my own to show you, but so far I have just caused VB6 to crash a bunch... something about the line

CODE
hMsgBoxHook = SetWindowsHookEx(WH_CBT, AddressOf CBTProc, 0&, threadID)
'0& in VB =NULL in C?


I think this needs an hInstance passed to it, but the C code I was using as a model used NULL there.

The BEST way to do this is:
QUOTE
Write your own Dialog Box that resembles the Message Box.


This post has been edited by NickDMax: 19 Feb, 2007 - 05:44 PM
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/4/08 03:57PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month