UniTheVerse
New Coder
private void fastColoredTextBox_Load(object sender, EventArgs e)
{
} this bracet is the one giving the error btw
{
} this bracet is the one giving the error btw
Hi there, might help a bit more if you post your entire code. Based off of what you have here, I see no errorprivate void fastColoredTextBox_Load(object sender, EventArgs e)
{
} this bracet is the one giving the error btw
using System;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
using WeAreDevs_API;
namespace UniHub
{
[DebuggerDisplay("{" + nameof(GetDebuggerDisplay()) + "(),nq}")]
public partial class Form1 : Form
{
ExploitAPI module = new ExploitAPI()
public Form1()
{
InitializeComponent();
}
Point lastPoint;
private void label1_Click(object sender, EventArgs e)
{
}
private void label2_Click(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
module.SendLuaScript(fastColoredTextBox.Text);
}
private void button5_Click(object sender, EventArgs e)
{
module.LaunchExploit();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void button2_Click(object sender, EventArgs e)
{
fastColoredTextBox.Clear();
}
private void button3_Click(object sender, EventArgs e)
{
OpenFileDialog openFileDialog1 = new OpenFileDialog();
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
openFileDialog1.Title = "Open";
fastColoredTextBox.Text = File.ReadAllText(openFileDialog1.FileName);
}
}
private void button4_Click(object sender, EventArgs e)
{
SaveFileDialog saveFileDialog1 = new SaveFileDialog();
if (saveFileDialog1.ShowDialog() == DialogResult.OK)
{
using (Stream s = File.Open(saveFileDialog1.FileName, FileMode.CreateNew))
using (StreamWriter sw = new StreamWriter(s))
{
sw.Write(fastColoredTextBox.Text);
}
}
}
private void label2_MouseDown(object sender, MouseEventArgs e)
{
lastPoint = new Point(e.X, e.Y);
}
private void panel1_MouseMove(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
this.Left += e.X - lastPoint.X;
this.Top += e.Y - lastPoint.Y;
}
}
private void fastColoredTextBox_Load(object sender, EventArgs e)
{
}
Are you missing a closing bracket?Code:using System; using System.Diagnostics; using System.Drawing; using System.IO; using System.Windows.Forms; using WeAreDevs_API; namespace UniHub { [DebuggerDisplay("{" + nameof(GetDebuggerDisplay()) + "(),nq}")] public partial class Form1 : Form { ExploitAPI module = new ExploitAPI() public Form1() { InitializeComponent(); } Point lastPoint; private void label1_Click(object sender, EventArgs e) { } private void label2_Click(object sender, EventArgs e) { } private void button1_Click(object sender, EventArgs e) { module.SendLuaScript(fastColoredTextBox.Text); } private void button5_Click(object sender, EventArgs e) { module.LaunchExploit(); } private void Form1_Load(object sender, EventArgs e) { } private void button2_Click(object sender, EventArgs e) { fastColoredTextBox.Clear(); } private void button3_Click(object sender, EventArgs e) { OpenFileDialog openFileDialog1 = new OpenFileDialog(); if (openFileDialog1.ShowDialog() == DialogResult.OK) { openFileDialog1.Title = "Open"; fastColoredTextBox.Text = File.ReadAllText(openFileDialog1.FileName); } } private void button4_Click(object sender, EventArgs e) { SaveFileDialog saveFileDialog1 = new SaveFileDialog(); if (saveFileDialog1.ShowDialog() == DialogResult.OK) { using (Stream s = File.Open(saveFileDialog1.FileName, FileMode.CreateNew)) using (StreamWriter sw = new StreamWriter(s)) { sw.Write(fastColoredTextBox.Text); } } } private void label2_MouseDown(object sender, MouseEventArgs e) { lastPoint = new Point(e.X, e.Y); } private void panel1_MouseMove(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { this.Left += e.X - lastPoint.X; this.Top += e.Y - lastPoint.Y; } } private void fastColoredTextBox_Load(object sender, EventArgs e) { }
More likely two. And there's a semicolon missing at the end of line 14. Otherwise all looks nice and tidy, though I'd move line 19 up to the beginning of the class, just for reasons of style and cosmetics.Are you missing a closing bracket?
We use essential cookies to make this site work, and optional cookies to enhance your experience.