基本上,我想要做的是在单击按钮时启动*.exe文件.我想在VB.NET中完成这个.我有Microsoft Visual Basic 2008 Express Edition.
我的按钮叫做'btnYES'.
如何通过单击此按钮启动*.exe文件?
我有一个arraylist设置.我也设置了输入设置,以便用户可以输入一个字符串,然后输入一个整数,然后输入一个字符串(名字,年龄和姓氏).
我需要用姓氏对arraylist进行排序.我到目前为止输入的代码都是主要方法: -
public static void main(String[] args) {
Name Name[] = new Name[50];
int count = 0;
for (int i=0; i<50; i++)
NewName[i] = new Name();
//ADD NEW TO ARRAYLIST NAME
String FName = JOptionPane.showInputDialog("first name");
int age = Integer.parseInt(JOptionPane.showInputDialog("age"));
String LName = JOptionPane.showInputDialog("last name");
NewName[count] = new Name(FName, age, LName);
count = count++;
}
//ITEMS SORT BY LAST NAME
//CODE FOR SORT GOES HERE
Run Code Online (Sandbox Code Playgroud)