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:

chan99
  • Challenger
Status: Offline
Joined: Sep 19, 201113Year Member
Posts: 135
Reputation Power: 5
Status: Offline
Joined: Sep 19, 201113Year Member
Posts: 135
Reputation Power: 5
im getting this error in visual studio [ Register or Signin to view external links. ]
and this one [ Register or Signin to view external links. ] can someone please help me :/
#2. Posted:
-Deano
  • Rated Awesome
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.
#3. Posted:
chan99
  • Challenger
Status: Offline
Joined: Sep 19, 201113Year Member
Posts: 135
Reputation Power: 5
Status: Offline
Joined: Sep 19, 201113Year Member
Posts: 135
Reputation Power: 5
i know but there is an error...
#4. Posted:
5FDP_Jekyll
  • TTG Addict
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.
#5. Posted:
chan99
  • Challenger
Status: Offline
Joined: Sep 19, 201113Year Member
Posts: 135
Reputation Power: 5
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.
#6. Posted:
Hacz
  • Summer 2018
Status: Offline
Joined: Mar 04, 201014Year Member
Posts: 2,891
Reputation Power: 150
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.
#7. Posted:
speed
  • Summer 2020
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.
#8. Posted:
chan99
  • Challenger
Status: Offline
Joined: Sep 19, 201113Year Member
Posts: 135
Reputation Power: 5
Status: Offline
Joined: Sep 19, 201113Year Member
Posts: 135
Reputation Power: 5
Thanks for all the help guys!!! [ Register or Signin to view external links. ]
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.