谁能帮我把这段VB转成C#啊?很简单的,谢谢了。。Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Static bool As Boolean = True
If bool Then
Me.Size = New Size(300, 243)
Button1.Text = "设置<<"
Else
Me.Size = New Size(300, 170)
Button1.Text = "设置>>"
End If
bool = Not bool
End Sub
Static bool As Boolean = True
If bool Then
Me.Size = New Size(300, 243)
Button1.Text = "设置<<"
Else
Me.Size = New Size(300, 170)
Button1.Text = "设置>>"
End If
bool = Not bool
End Sub
解决方案 »
- 求面向对象等一些方法的指导
- 把GridView 换成EXTJS 怎么换啊?
- 将MySQL表填到DataGridView中,怎样只显示部分列(即按照我的需求显示一些字段)
- components.Dispose();实现什么作用呢?
- C#老提示“应该输入 }”
- 求助关于字符串的问题
- 高手帮忙解答一下,如何调用类中申明的函数?
- Oracle->SQL Server 2000如何追加数据?
- VS2002升级Framework的问题。
- c#绘制应力分布云图的方法
- 怎样实现点击一个button,然后在代理服务器地址栏中写入相关的代理地址?
- 请问如何像.net Framework1.1一样设置.net Framework2.0的安全性?我想在本地运行另一台机上的.net程序!
{
static Bool bool = true;
if(bool == true)
{
this.Size=new Size(330,243);
Button1.Text = "设置 < <";
}
else
{
this.Size = new Size(300, 170)
Button1.Text = "设置> > "
}
bool = !bool;
}
{
static bool @bool = true;
if (@bool) {
this.Size = new Size(300, 243);
Button1.Text = "设置 < <";
}
else {
this.Size = new Size(300, 170);
Button1.Text = "设置> > ";
}
@bool = !@bool;
}