Search Result

Collapse
5 results in 0.0014 seconds.
Keywords
Members
Tags
messagebox
  •  

  • Dr Cake
    started a topic Custom Enum for MessageBox

    Custom Enum for MessageBox

    Hello, recently I've been trying to "play" with MessageBoxes and wondered how may I add custom buttons. A basic MessageBox should look like this:
    Code:
    MessageBox.Show("Message", "Title", MessageBoxButtons.Something);
    However, I'd like to know how to create one with Once, Weekly, Monthly, Daily and Cancel, instead of MessageBoxButto ns.Something. I've tried creating an enum and it displayed on the MessageBox,...
    See more | Go to post

  • SquidgeyBall
    started a topic Help with multidimensional array please

    Help with multidimensional array please

    I have created a multidimensiona l array as follows:

    string[,] myarray = {{"TestArray1Pa rt1", "TestArray1Part 2"},{"TestArray 2Part1", "TestArray2Part 2"}};

    Basically what I want to do is show a message box which will display the first two parts of the array (TestArray1Part 1 & TestArray1Part2 ), then loop to show the next parts.

    I am currently using a foreach statement...
    See more | Go to post

  • hsachdevah
    started a topic Custom Exception in C# windows application

    Custom Exception in C# windows application

    Hello,
    I have a c# windows application and I am using a try catch block to handle some exception.
    I want to show show error in messagebox. but the problem is that program execution does not stop there.
    If I use 'throw new exception', I get that ugly windows default msg box.

    any solutions?

    Code:
    try
    {
    ...code
    }
    catch (Exception)
    {
        MessageBox.Show("Error:
    ...
    See more | Go to post
    Last edited by tlhintoq; Jun 23 '09, 06:32 PM. Reason: [CODE] ... your code here ... [/CODE] tags added

  • nirmalsingh
    started a topic How to display message box using c#
    in .NET

    How to display message box using c#

    what are the things i shoul import?.. and how could i display a message box in c#? sample code will help me a lot.....
    See more | Go to post

  • Adam
    Guest started a topic Inherit from messagebox in c#
    in .NET

    Inherit from messagebox in c#

    I am trying to inherit from MessageBox and i get error in
    compilation time.

    The code is:
    public class MyMessageBox : MessageBox
    {
    public static DialogResult Show(int errorCode)
    {
    return DialogResult.OK ;
    }
    }

    The error is:
    System.Windows. Forms.MessageBo x.MessageBox() is
    inaccessible due to its protection level

    I guess it because the constructor of MessageBox...
    See more | Go to post
Working...