-
How to use MessegeBox in WPF?
Hello,
I need one help which i think can be solve here only. I am using WPF application and want to display MessageBox in it. I did that but I found the the MessegeBox but it is not in that style which i want that is of WPF. Can anyone help me by solving my query about the same. Or is there any method to use MessageBox with WPF apprearence?
Thanks.
-
Re: How to use MessegeBox in WPF?
It will disappoint you that the MessageBox class still goes directly into user32. So there is not any other way, you have to create your own class. So finally i will suggest you to not to use this an find some other way to resolve your issue. And if find any method to do same then tell me also so that i can help my self with that.
Thanks a lot
-
Re: How to use MessegeBox in WPF?
This sample demonstrates how to display a message box and get the message box return value. A message box is displayed by calling Show, which has several overloads that allow you to customize how a message box looks and behaves, including the following:
- Message.
- Titlebar caption.
- Icon.
- Buttons.
- Owner window.
- Special options, such as right-to-left reading support.
-
Re: How to use MessegeBox in WPF?
Building the Sample
Install the Windows Software Development Kit (SDK) and open its build environment command window. On the Start menu, point to All Programs, Microsoft Windows SDK, and then click CMD Shell.Download the sample, usually from the software development kit (SDK) documentation, to your hard disk drive. To build the sample from the build environment command window, go to the source directory of the sample. At the command prompt, type MSBUILD. To build the sample in Microsoft Visual Studio, load the sample solution or project file and then press CTRL+SHIFT+B
For more visit this
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Page generated in 1,750,627,202.36556 seconds with 15 queries
Bookmarks