Results 1 to 4 of 4

Thread: How to use MessegeBox in WPF?

  1. #1
    Join Date
    Nov 2009
    Posts
    83

    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.

  2. #2
    Join Date
    Apr 2008
    Posts
    2,139

    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

  3. #3
    Join Date
    May 2008
    Posts
    3,316

    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:

    1. Message.
    2. Titlebar caption.
    3. Icon.
    4. Buttons.
    5. Owner window.
    6. Special options, such as right-to-left reading support.

  4. #4
    Join Date
    Feb 2008
    Posts
    1,852

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,750,627,202.36556 seconds with 15 queries