Displaying a value stored in a variable
- From: ByTe <ByTe.249y9w@xxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 6 Mar 2006 15:35:07 -0600
Hi
I am just starting to learn how to use microsoft visual j#,
and I wonder if anyone could help me with this problem, I am
trying to display a number stored in a varible into a message
Box.show but I keep getting the Error below:
Error 1 Cannot find method 'Show(int)' in
'System.Windows.Forms.MessageBox' C:\Documents and Settings\Keith\Local
Settings\Application Data\Temporary
Projects\WindowsApplication1\Form1.jsl 84 3 WindowsApplication1
The code I am writing is:
private void button1_Click(Object sender, System.EventArgs e)
{
int x = 6;
x = 6;
MessageBox.Show(x);
}
}
Could someone please help me with this?
Thanks
Keith
--
ByTe
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------
.
- Follow-Ups:
- Re: Displaying a value stored in a variable
- From: Lars-Inge Tønnessen \(VJ# MVP\)
- Re: Displaying a value stored in a variable
- From: Homer J Simpson
- Re: Displaying a value stored in a variable
- Prev by Date: J#, Java or C#?
- Next by Date: Re: testing for connection
- Previous by thread: J#, Java or C#?
- Next by thread: Re: Displaying a value stored in a variable
- Index(es):