473,698 Members | 2,932 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

customized MessageBox in c#

Hi:

I am trying to create customized confirmation/error/etc dialogs in my
application. Up to now we've been using MessageBox.Show and passing it
the various necessary flags (buttons, icons, etc). By "customized ", I
mean I want complete control over the color of the messagebox, the
position/color/size of the buttons, etc.

Do I need to create a custom form from scratch, or is there a way to
subclass MessageBox? (I'm guessing I need to create a custom form). If
I need to create a custom form, is there any way I can make use of the
standard Windows dialog icons (the MessageBoxIcons ) or do I have to
create my own icons?

thanks,
Jean Bredeche
bredeche at gmail dot com

Nov 17 '05 #1
1 4147
Hi Jean,

I think creating a custom form should be simpler - well, at least I prefer
my own form when it comes to displaying customized message boxes.
As for re-using system icons, the SystemIcons class contains them all as
static properties.

--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]
"Jean Bredeche" <br******@gmail .com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
Hi:

I am trying to create customized confirmation/error/etc dialogs in my
application. Up to now we've been using MessageBox.Show and passing it
the various necessary flags (buttons, icons, etc). By "customized ", I
mean I want complete control over the color of the messagebox, the
position/color/size of the buttons, etc.

Do I need to create a custom form from scratch, or is there a way to
subclass MessageBox? (I'm guessing I need to create a custom form). If
I need to create a custom form, is there any way I can make use of the
standard Windows dialog icons (the MessageBoxIcons ) or do I have to
create my own icons?

thanks,
Jean Bredeche
bredeche at gmail dot com


Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
4962
by: James | last post by:
Does anyone know if it is possible, in C#, to use a customized window frame? For example, programs like Winamp and AdAware do not use the standard box window frame, but a customized design. I'm guessing that this is a bitmap that is somehow applied with an API call? Thanks!
2
1797
by: Visual Systems AB \(Martin Arvidsson\) | last post by:
Hi! Is there a way to customize a dialogbox. I want buttons with the text: Yes, No, Yes to all, No to all.. Also a dialogbox with a CheckBox. Regards Martin
0
990
by: Chris | last post by:
To centralize much of the database connectivity and variable declarations, I decided it would make sense to create my own class that inherits from the page class and derive each of my form classes from my customized page class, it works most of the time without problems. I've noticed a few odd things happening, though, and hope someone can shed some light on it. For starters, I put all my user control variables in my base class rather than...
0
1107
by: TIBM | last post by:
Hi. I'm trying to come up with a customized RadioButtonList and I don't know where to start. My requirements are: I'll be given a dataset that contains one table with product data (eg price, product_name, product_description, product_id) and I have to build a control that displays the products dataset on a page, allowing the user to make only one product selection at a time. That's not too bad, and I know I can do it with a RadioButtonList,...
3
1162
by: Christian Soltenborn | last post by:
Hi, I would like to have some customized TextBoxes, e.g. like this: Public Class IntegerTextBox Inherits System.Windows.Forms.TextBox Protected Overrides Sub OnTextChanged(ByVal e As EventArgs) Try Integer.Parse(Me.Text)
0
1191
by: segal.aviad | last post by:
Hi, I'm trying to create a customized setup project for my application. I want to write a setup project which will install several merge modules (- this I know how to do). Before running the setup, I want the admin to have the ability to create a customized setup, containing which ever merge modules he choses to include from the merge module pool. I would like this application to compile into a setup msi file.
5
7274
by: RedHair | last post by:
I have a ASP.NET 2.0 web page which inherits a customized base page class and have a master page, their relation is as below Customized base page class --> web page --> master page How to access the property and control of master page from the customized base page class? Btw, I can access the server control of master page from base page class via
7
8956
by: SteveT | last post by:
I would like to create a customized DataGridViewColumn called DataGridViewCheckedListBoxColumn. I'd like the ability to multi-select items in the list. Does anyone know of an example of how this is done? -- ----------- Thanks, Steve
6
2219
by: Victor | last post by:
Hi. all I have a customize web control. I have three simple properties and customized render class. then I add this control into my datalist like <asp:DataList ID="datalist" runat="server" RepeatColumns="3"> <ItemTemplate> <uc:mycontrol id="test" runat="server" /> </ItemTemplate> </asp:DataList> In the code-behind I have something like List<mycontrol lst = new List<mycontrol >;
0
8683
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9170
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9031
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
8904
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
7741
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
5867
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4372
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...
1
3052
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
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.