carol

carol

  • NA
  • 5
  • 0

message box text color & background in C#.Net winforms

May 5 2009 4:15 AM

Hi friends.,

I just started learning C#.Net
Right now i have some doubts in messagebox .

I need ot change the text color and back ground color in the messagebox.

I think its not as easy,since its not default property.

How to do this.??How we can do changes in Dialogresult.

My code is just simple...

 private void button1_Click(object sender, EventArgs e)
          
        {
           
            if (DialogResult.OK ==MessageBox.Show("Did you try using the Help system?", "Question", MessageBoxButtons.OKCancel, MessageBoxIcon.Question))
            {
                Form2 frm = new Form2();
                frm.Show();
                this.Hide();
                               
            }
                else
                {
                this.Show();
                Form2 frm = new Form2();
                frm.Hide();
               
                }
              

               
            }
       


How to proceed??


Pl reply me

 

Thanks in Advance
Carol

 


Answers (3)