First set the KeyPreview property of the FORM window to true and then
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyData == Keys.Up)
{
//////Page turning code....
}
}
protected override bool ProcessDialogKey(Keys keyData) //Generally, the form cannot accept the up, down, left, and right keys, so you have to override the ProcessDialogKey method
{
if (keyData == Keys.Up || keyData == Keys.Down || keyData == Keys.Left || keyData == Keys.Right)
{
return false;
}
else
{
return base.ProcessDialogKey(keyData);
}
}
This means that your system needs to be reinstalled. This is the method I have used. See if it suits you.
1. First, make the USB disk into the Chinese cabbage USB boot disk, restart the computer and wait for the startup screen to appear. Press the startup shortcut key, select the USB disk to boot and enter the Chinese cabbage main menu. Select "[04] Chinese cabbage Win2003PE Classic" Version (Old Machine)" option and press the Enter key to confirm.
2. After entering the win8PE system, the installation tool will pop up on its own. Click "Browse" to select the win7 system image file and save it to the USB disk.
3. Wait for the Dabaicai pe installation tool to automatically load the win7 system image package installation file. Just select the installation disk location and click the "OK" button.
4. Click the "OK" button directly in the pop-up prompt window.
5. Then the installation tool starts to work, please wait patiently for a few minutes.
6. After completion, a prompt to restart the computer will pop up, click the "Yes (Y)" button.
7. At this time, you can remove the USB disk and restart the system to start the installation. No operation is required. Just wait for the installation to complete. It will restart again before finally entering the system desktop.
The above is the detailed content of How to set up quick image browsing to switch images in the same direction. For more information, please follow other related articles on the PHP Chinese website!