C#代码改错

来源:百度知道 编辑:UC知道 时间:2024/09/21 19:33:27
using system;
using system.windows;
using system.windows.input;
namespace petzold.handleanevent
{
class handleanevent
{ [STAThread]
public static void main()
{windows win=new windows();
win.title="I'm yours";
application app= new application();
win.mousedown += windowsonmousedown;
app.run(win);

}
static void windowsonmousedown(object sender,mousebuttoneventrargs args);
windows win=sender as windows;
string strMessage=
string.Format("windows clicked with {0} button at point {1}"),
args.changedbutton.args.getposition(win));
messagebox.show(strmessage,winTitle);

}

}
讲清楚还有追加分的

args.changedbutton.args.getposition(win));
应该是
args.changedbutton,args.getposition(win));

这全是你写的吧
我看不懂
不知道你是高手还是菜鸟

你把原来VB的代码贴上来,我帮你改C#吧,或者直接说要干什么都好。