Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I change the backcolor of default msgbox windows?

Status
Not open for further replies.

tg2003

IS-IT--Management
Feb 6, 2003
270
IL

Thanks!
 
It is not possible to change the background color of MsgBox because it comes from Window settings. You can try to use a modal form or a user control as MsgBox.

However if only MsgBox is reqd, you can go on and play around with the SetSysColor API and GetSysColor API to change the colour of window text. But after the msgbox is removed u have again to set the default color back.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top