hi,
i am creating an app wich uses lots of messageboxes.
messagrbox.show ("cheese", "is tasty");sets the message's title to cheese and
the text is "is tasty". how do i change the iocon for it e.g. warning (a red
exclamation mark)?
thanks in advance
--
Alvo von Cossel I of Germany 2 13963
Hi, Alvo!
Use another version of Show():
MessageBox.Show (
"cheese",
"is tasty",
MessageBoxButto ns.Ok, // YesNo, YesNoCancel, etc.
MessageBoxIcon. Warning); // Exclamation, Asterisk, etc.
Regards - Octavio
"Alvo von Cossel I" <Al************ @discussions.mi crosoft.com> escribió en
el mensaje news:8D******** *************** ***********@mic rosoft.com... hi,
i am creating an app wich uses lots of messageboxes.
messagrbox.show ("cheese", "is tasty");sets the message's title to cheese and the text is "is tasty". how do i change the iocon for it e.g. warning (a red exclamation mark)?
thanks in advance -- Alvo von Cossel I of Germany
Hi Alvo,
Below is an example:
MessageBox.Show (
this, // needs a reference to the "Owner" form
"this is my text", // text to be shown in the message box
"this is the caption", // Title of the message box
MessageBoxButto ns.OK, // Button to show
MessageBoxIcon. Warning); // Icon to show
MessageBox.Show () has several overloads, the one shown above gives you
the most flexibility, allowing you to pass in both the Buttons and the Icon.
Regards,
Bennie Haelen
Alvo von Cossel I wrote: hi,
i am creating an app wich uses lots of messageboxes.
messagrbox.show ("cheese", "is tasty");sets the message's title to cheese and the text is "is tasty". how do i change the iocon for it e.g. warning (a red exclamation mark)?
thanks in advance -- Alvo von Cossel I of Germany This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Crom |
last post by:
Ok. I want to settle this once and for all. After looking at the source
for various, rather sizeable (but not all were so big) web sites that
use icons that show up in the addressbar beside the address itself.
Just about all websites that use said icons use one of these two methods
(some use both even) to make them appear (in the code of a webpage.) :
<LINK REL="icon" HREF="/icon.ico" TYPE="image/ico">
<LINK REL="SHORTCUT ICON"...
|
by: Dennis C. Drumm |
last post by:
I have ordered the book .NET Framework Solutions, In Search of the Lost
Win32
API by John Paul Meuller which I think will help answer some of my questions
I have regarding making custom MessageBoxes, but that isn't going to be here
for a few days. So, I thought I would ask you guys how to put one of hte
standard MessageBox icons, such as MessageBoxIcon.Exclamation, into my
custom MessageBox.
Thanks,
|
by: Dennis C. Drumm |
last post by:
This is a restatement of an earlier post that evidently wasn't clear. I am
building a custom MessageBox dialog that has, among other things, a few new
button options (yes to all, no to all, etc.) and would like to make the
dialog look and act like the standard MessageBox. Therefore, I would like to
put in the message section the same type of icons found in the MessageBox
dialog, such as MessageBoxIcon.Exclamation. In another post here I had...
|
by: Jean Bredeche |
last post by:
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...
|
by: B-Dog |
last post by:
Does anyone know where I can find some professional looking icons that are
the standard windows collection for developers? The ones that came on the
VS cd are pretty lame. Thanks
| |
by: Brett |
last post by:
I'd like references on where to find some good (quality) icons to use for
form and application icons (for the EXE). Most of the free stuff isn't that
great looking and there isn't a good selection. A site offering previews of
icons or purchase of a single icon would be nice.
Thanks,
Brett
|
by: SharpCoderMP |
last post by:
i'm trying to embed multiple program icons in my executable. the only
way so far i managed to do that is to embed native win32 resource file
with multiple icons. it works, but... when i create a native win32
resource file with the VS 2005 and put there my icons, VS always
converts some of the 32bit icons into 24bit - so i loose alpha blending
what makes my icons look ugly.
I did an experiment and created a icon file with full range of...
|
by: Frank Rizzo |
last post by:
I am trying to programmatically close a messagebox. I don't see any
obvious managed choices. Back in the day, I remember using a
combination of FindWindow and EndDialog apis(
http://msdn2.microsoft.com/en-us/library/ms645472.aspx ), but how can I
ensure that the dialog that I am destroying actually belongs to my
application?
Thanks.
|
by: Sanoski |
last post by:
This might be a dumb question. I don't know. I'm new to all this. How
do you find icons for your programs? All GUI applications have cool
icons that represent various things. For instance, to save is often
represented as a disk, etc. You know, the small little picture
references that give meaning to the phrase 'Graphical User Interface'.
But I'm not a graphics artist! Drawing is simply one talent that
skipped me completely. Where can I...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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...
| |
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,...
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |