| View previous topic :: View next topic |
| Author |
Message |
Chidori Grandmaster Cheater
Reputation: 1
Joined: 25 Apr 2008 Posts: 691 Location: Canada
|
Posted: Mon Feb 23, 2009 8:14 pm Post subject: [C#]Help with my code |
|
|
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Test
{
public partial class f_main : Form
{
public f_main()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void b_hello_Click(object sender, EventArgs e)
{
MessageBox.Show{"Hello World! you clicked on my button!","Info",MessageBoxButtons.OK, MessageBoxIcon.Information};
}
errors:Error 1 ; expected C:\Documents and Settings\Gino\Local Settings\Application Data\Temporary Projects\Test\Form1.cs 26 28 Test
Error 2 Invalid expression term ',' C:\Documents and Settings\Gino\Local Settings\Application Data\Temporary Projects\Test\Form1.cs 26 69 Test
Error 3 ; expected C:\Documents and Settings\Gino\Local Settings\Application Data\Temporary Projects\Test\Form1.cs 26 69 Test
Error 4 ; expected C:\Documents and Settings\Gino\Local Settings\Application Data\Temporary Projects\Test\Form1.cs 26 70 Test
Error 5 Invalid expression term ',' C:\Documents and Settings\Gino\Local Settings\Application Data\Temporary Projects\Test\Form1.cs 26 76 Test
Error 6 ; expected C:\Documents and Settings\Gino\Local Settings\Application Data\Temporary Projects\Test\Form1.cs 26 76 Test
Error 7 ; expected C:\Documents and Settings\Gino\Local Settings\Application Data\Temporary Projects\Test\Form1.cs 26 77 Test
Error 8 Invalid expression term ',' C:\Documents and Settings\Gino\Local Settings\Application Data\Temporary Projects\Test\Form1.cs 26 97 Test
Error 9 ; expected C:\Documents and Settings\Gino\Local Settings\Application Data\Temporary Projects\Test\Form1.cs 26 97 Test
Error 10 ; expected C:\Documents and Settings\Gino\Local Settings\Application Data\Temporary Projects\Test\Form1.cs 26 99 Test
Error 11 ; expected C:\Documents and Settings\Gino\Local Settings\Application Data\Temporary Projects\Test\Form1.cs 26 125 Test
bold is where it shows the red underlines |
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Mon Feb 23, 2009 8:36 pm Post subject: |
|
|
| MessageBox.Show("Hello World! you clicked on my button!","Info",MessageBoxButtons.OK, MessageBoxIcon.Information); |
|
| Back to top |
|
 |
Chidori Grandmaster Cheater
Reputation: 1
Joined: 25 Apr 2008 Posts: 691 Location: Canada
|
Posted: Mon Feb 23, 2009 8:45 pm Post subject: |
|
|
| dnsi0 wrote: | | MessageBox.Show("Hello World! you clicked on my button!","Info",MessageBoxButtons.OK, MessageBoxIcon.Information); | THANK YOU MAN! what did you do explain |
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Mon Feb 23, 2009 8:50 pm Post subject: |
|
|
| { is not ( |
|
| Back to top |
|
 |
Chidori Grandmaster Cheater
Reputation: 1
Joined: 25 Apr 2008 Posts: 691 Location: Canada
|
Posted: Mon Feb 23, 2009 8:56 pm Post subject: |
|
|
| slovach wrote: | | { is not ( | he told me to put a bracket |
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Mon Feb 23, 2009 9:14 pm Post subject: |
|
|
| Chidori wrote: | | slovach wrote: | | { is not ( | he told me to put a bracket |
"he" was wrong _________________
|
|
| Back to top |
|
 |
|