Jack Knife581053

Im working on a simple notepad for my friend how do I show an aboutbox in C# that is allready designed in a button click event

Re: Windows Forms General About Box Show

Michael Letterle

Is this what you're looking for

Code Snippet

System.Windows.Forms.MessageBox.Show("This is your about text", "This is the title.", MessageBoxButtons.OK, MessageBoxIcon.Information);







Re: Windows Forms General About Box Show

Jack Knife

no i meant for an abotu box





Re: Windows Forms General About Box Show

Bob zhu - MSFT

Hi Jack

or you can use a new form like

Form about = new Form();
about.Show();
about.Text = "About";






Re: Windows Forms General About Box Show

Bob zhu - MSFT

Hi

you can add about box form new item-> add about box and show it as follow

private void button1_Click(object sender, EventArgs e)
{
AboutBox1 a = new AboutBox1();
a.Show();
}