You are viewing our Forum Archives. To view or take place in current topics click here.
can anyone help me with this error?
Posted:
can anyone help me with this error?Posted:
Status: Offline
Joined: Sep 19, 201113Year Member
Posts: 135
Reputation Power: 5
#2. Posted:
Status: Offline
Joined: Aug 19, 201014Year Member
Posts: 5,243
Reputation Power: 532
Status: Offline
Joined: Aug 19, 201014Year Member
Posts: 5,243
Reputation Power: 532
You need to build your project before trying to run it.
- 1useful
- 0not useful
#3. Posted:
Status: Offline
Joined: Sep 19, 201113Year Member
Posts: 135
Reputation Power: 5
i know but there is an error...
- 0useful
- 0not useful
#4. Posted:
Status: Offline
Joined: May 27, 201113Year Member
Posts: 2,048
Reputation Power: 100
Status: Offline
Joined: May 27, 201113Year Member
Posts: 2,048
Reputation Power: 100
It's been awhile since I've done anything in Visual Studio. But could it possibly be you need to add a few closing braces? Might be more helpful if you posted your entire code so we could pinpoint the exact cause of the error.
- 0useful
- 0not useful
#5. Posted:
Status: Offline
Joined: Sep 19, 201113Year Member
Posts: 135
Reputation Power: 5
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using XDevkit;
using JRPC_Client;
namespace Motions_New_Tool
{
public partial class Form1 : Form
{
IXboxConsole jtag;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
label2.ForeColor = Color.Red;
}
private void button1_Click(object sender, EventArgs e)
{
if (jtag.Connect(out jtag))
{
jtag.XNotify("Connected To Motions Tool");
MessageBox.Show("Successfully Connected To Console", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
label2.ForeColor =Color.Green;
label2.Text = "Connected";
}
else{}
}
}
The error occurs after the last bracket.
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using XDevkit;
using JRPC_Client;
namespace Motions_New_Tool
{
public partial class Form1 : Form
{
IXboxConsole jtag;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
label2.ForeColor = Color.Red;
}
private void button1_Click(object sender, EventArgs e)
{
if (jtag.Connect(out jtag))
{
jtag.XNotify("Connected To Motions Tool");
MessageBox.Show("Successfully Connected To Console", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
label2.ForeColor =Color.Green;
label2.Text = "Connected";
}
else{}
}
}
The error occurs after the last bracket.
- 0useful
- 0not useful
#6. Posted:
Status: Offline
Joined: Mar 04, 201014Year Member
Posts: 2,891
Reputation Power: 150
chan99 wrote
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using XDevkit;
using JRPC_Client;
namespace Motions_New_Tool
{
public partial class Form1 : Form
{
IXboxConsole jtag;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
label2.ForeColor = Color.Red;
}
private void button1_Click(object sender, EventArgs e)
{
if (jtag.Connect(out jtag))
{
jtag.XNotify("Connected To Motions Tool");
MessageBox.Show("Successfully Connected To Console", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
label2.ForeColor =Color.Green;
label2.Text = "Connected";
} else{}
//add bracket here
}
}
The error occurs after the last bracket.
You're missing a closing bracket for the button click event. I commented where you are missing it.
- 0useful
- 0not useful
#7. Posted:
Status: Offline
Joined: Jun 11, 200915Year Member
Posts: 9,897
Reputation Power: 3160
Motto: "I'l no I grew up to fast speed I no u will be little famous" - Famous_Energy
Motto: "I'l no I grew up to fast speed I no u will be little famous" - Famous_Energy
Status: Offline
Joined: Jun 11, 200915Year Member
Posts: 9,897
Reputation Power: 3160
Motto: "I'l no I grew up to fast speed I no u will be little famous" - Famous_Energy
I mean, the error tells you exactly what's wrong...
You're missing closing brackets.
You're missing closing brackets.
- 1useful
- 0not useful
#8. Posted:
Status: Offline
Joined: Sep 19, 201113Year Member
Posts: 135
Reputation Power: 5
You are viewing our Forum Archives. To view or take place in current topics click here.