Thursday, April 29, 2021

Antix virtual machine start automatically when Windows 10 starts

 

  1. Press the Windows key and R to open the Run dialog box
  2. Enter shell:startup
  3. In the Startup folder, right-click and select New > Shortcut
  4. 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.
  5. 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

Коментар: