•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 456,524 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,809 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 1635 | Replies: 5
![]() |
•
•
Join Date: Sep 2007
Posts: 1,058
Reputation:
Rep Power: 4
Solved Threads: 61
NBox.MB_TitleBarColor = System.Drawing.Color.Orange
NameOfBox.MB_BoxColor = System.Drawing.Color.LightSeaGreen
NameOfBox.MB_BoxShadowColor = System.Drawing.Color.LightSalmon
NameOfBox.MB_TitleFontColor = System.Drawing.Color.Maroon
NameOfBox.MB_TitleFontName = "Arial"
NameOfBox.MB_TitleFontBold = True
NameOfBox.MB_ImageBorderSize = 5
NameOfBox.MB_ImageBorderColor = System.Drawing.Color.Red
NameOfBox.MB_ImageBorderStyle = BorderStyle.Double
NameOfBox.MB_ButtonBackColor = System.Drawing.Color.Green
NameOfBox.MB_ButtonBorderColor = System.Drawing.Color.Red
NameOfBox.MB_ButtonBorderWidth = 4
NameOfBox.MB_ButtonBorderStyle = BorderStyle.Double
NameOfBox.MB_ButtonForeColor = System.Drawing.Color.Yellow
NameOfBox.MB_ButtonFontBold = True
NameOfBox.MB_BorderWidth = 5
NameOfBox.MB_BorderStyle = BorderStyle.Double
NameOfBox.MB_BorderColor = System.Drawing.Color.Honeydew
Panel1.Controls.Add(NBox)basically, use the lines above and change color by setting them equal to "System.Drawing.Color.(actual color)". Oh, this is VB.NET and inside a private function in a vb script.
Enjoy
•
•
Join Date: Feb 2005
Location: Braintree, UK
Posts: 1,166
Reputation:
Rep Power: 7
Solved Threads: 59
If you're using javascript alert or confirm you are stuffed you can't control the style it is part of the users system and therefore controled by their current theme, browser skin etc.
You will have to create your own 'pop-up' by dynamicaly creating an absolute positioned div add some controls to it and make it visible when required by setting its left, top and visibility style properties.
You will have to create your own 'pop-up' by dynamicaly creating an absolute positioned div add some controls to it and make it visible when required by setting its left, top and visibility style properties.
•
•
Join Date: Sep 2007
Posts: 1,058
Reputation:
Rep Power: 4
Solved Threads: 61
But if you are using VB, then this goes in your "pagename.aspx.vb" file. You have to create a function for it to be called when clicked via javascript. It will pop up your box and be dynamically edited for appearance.
Do a search on google for "asp.net vb message box" and you will find what you need.
Do a search on google for "asp.net vb message box" and you will find what you need.
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- how to print out an array in a message box (Java)
- Message Box Switch Statement (Java)
- I need the Mac OS X message box function (C)
- message box (ASP.NET)
- Time Release Message Box (C)
- download message box's events (ASP)
- repeating the whole program after pressing Yes button in the confirmation message box (Java)
Other Threads in the ASP.NET Forum
- Previous Thread: When should you close a database connection?
- Next Thread: Age Function Help



Linear Mode