我需要一个问题的帮助.预期错误_1_} [英] I need help with a problem. Error_1_} expected
问题描述
你好
我的脚本有问题,我正在使用VS 2013并正在使用C#.
我遇到的问题是错误 1 }与以下脚本一起使用:
使用系统;
使用System.Collections.Generic;
使用System.ComponentModel;
使用System.Data;
使用System.Drawing;
使用System.Linq;
使用System.Text;
使用System.Threading.Tasks;
使用System.Windows.Forms;
命名空间WindowsFormsApplication1
{
公共局部类Form1:Form
{
公共Form1()
{
InitializeComponent();
}
私有void Form1_Load(对象发送者,EventArgs e)
{
}
private void button1_Click(对象发送者,EventArgs e)
{
webBrowser1.Navigate(textBox1.Text);
}
私有void textBox1_TextChanged(对象发送者,EventArgs e)
{
}
private void button4_Click(对象发送者,EventArgs e)
{
webBrowser1.Stop();
}
private void button3_Click(对象发送者,EventArgs e)
{
webBrowser1.GoForward();
}
private void button2_Click(对象发送者,EventArgs e)
{
webBrowser1.GoBack();
}
私有无效label2_Click(对象发送者,EventArgs e)
{
}
private void label4_Click(对象发送者,EventArgs e)
{
}
private void button6_Click(对象发送者,EventArgs e)
{
webBrowser1.GoHome();
}
private void button7_Click(对象发送者,EventArgs e)
{
webBrowser1.Refresh();
}
私有无效label6_Click(对象发送者,EventArgs e)
{
}
私有无效label7_Click(对象发送者,EventArgs e)
{
}
私有无效label8_Click(对象发送者,EventArgs e)
{
}
私有无效label9_Click(对象发送者,EventArgs e)
{
}
私有无效aboutCruizerBrowserToolStripMenuItem_Click(对象发送者,EventArgs e)
{
新AboutBox2().Show();
}
私有void exitToolStripMenuItem_Click(对象发送者,EventArgs e)
{
this.Close();
}
private void button5_Click(对象发送者,EventArgs e)
{
private void button5_Click(对象发送者,EventArgs e)
{
如果(button5.Text ==暂停")
{
button5.Text ="Resume";
label7.Text ="OFF";
}
其他
{
button5.Text =暂停";
label7.Text ="ON!";
}
}
}
我想要的是一个带有图像的按钮,当您单击该按钮时,文本(标签)将从OFF变为ON.
谢谢!
这是Visual C ++论坛.
>
Hello,
I'm getting a problem with my script, I'm using VS 2013 and working with C#.
The problem I get is Error 1 } expected, with this script:
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;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
webBrowser1.Navigate(textBox1.Text);
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
private void button4_Click(object sender, EventArgs e)
{
webBrowser1.Stop();
}
private void button3_Click(object sender, EventArgs e)
{
webBrowser1.GoForward();
}
private void button2_Click(object sender, EventArgs e)
{
webBrowser1.GoBack();
}
private void label2_Click(object sender, EventArgs e)
{
}
private void label4_Click(object sender, EventArgs e)
{
}
private void button6_Click(object sender, EventArgs e)
{
webBrowser1.GoHome();
}
private void button7_Click(object sender, EventArgs e)
{
webBrowser1.Refresh();
}
private void label6_Click(object sender, EventArgs e)
{
}
private void label7_Click(object sender, EventArgs e)
{
}
private void label8_Click(object sender, EventArgs e)
{
}
private void label9_Click(object sender, EventArgs e)
{
}
private void aboutCruizerBrowserToolStripMenuItem_Click(object sender, EventArgs e)
{
new AboutBox2().Show();
}
private void exitToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Close();
}
private void button5_Click(object sender, EventArgs e)
{
private void button5_Click(object sender, EventArgs e)
{
if (button5.Text == "Pause")
{
button5.Text = "Resume";
label7.Text = "OFF";
}
else
{
button5.Text = "Pause";
label7.Text = "ON!";
}
}
}
What I want is a button, with a image on it, that when you click it a text (label) will change from OFF to ON.
THANKS!
This is a Visual C++ forum.
这篇关于我需要一个问题的帮助.预期错误_1_}的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!