- Press the Windows key and R to open the Run dialog box
- Enter shell:startup
- In the Startup folder, right-click and select New > Shortcut
- In the item location text field, enter
"C:\Program Files\Oracle\VirtualBox\VirtualBoxVM.exe" --startvm "Antix"
Make sure to use the quotation marks. If your VM name is different, be sure to change that. Click Next. - In the name for the shortcut, enter Antix. Click Finish.
++
++
private void button1_Click_1(object sender, EventArgs e)
{
conn.Open();
SQLiteCommand comm = new SQLiteCommand("Select * From Patients", conn);
using (SQLiteDataReader read = comm.ExecuteReader())
{
while (read.Read())
{
dataGridView1.Rows.Add(new object[] {
read.GetValue(0), // U can use column index
read.GetValue(read.GetOrdinal("PatientName")), // Or column name like this
read.GetValue(read.GetOrdinal("PatientAge")),
read.GetValue(read.GetOrdinal("PhoneNumber"))
});
}
}
}
No comments:
Post a Comment
Коментар: