Hi Daniweb,

I have posted the question before also but for more clarity I posting my question again. Request a quick positive response.
I have googled a lot but not getting the information whcih I required.

I have a Picture box with the size of 1300, 350.
From one particular folder I want browse Images (.JPG).
I want browse these images with Keyboard shortcuts. Previous-F9, Next-F10, FirstImage-F11, LastImage-F12
If the image is bounding outside of the fixed lenght of the picture box I want scroll through the image.
Any Image I am loading width should be = 100% of the Picture Box layout

By the way I am using VS2013.

Guys, waiting for the quick responses.

Thanks.

Hi,

Have you attempted any of this yourself? Where is your code and what errors did you get?

  1. Use System.IO to browse the folder
  2. Use a menubar with the buttons linked to the shortcuts to "navigate"

Yesterday, I made the code but I have deleted that. Now I am trying to create the new one. But not working.
I am just starting now.

I have alredy imported the System.IO

look at the below code.

rivate Sub Form1_KeyDown(sender As Object, e As KeyEventArgs) Handles Me.KeyDown
        If e.KeyCode = Keys.Control Or e.KeyCode = Keys.O Then
            If (FolderBrowserDialog1.ShowDialog() = Windows.Forms.DialogResult.OK) = True Then
                Dim f As String = FolderBrowserDialog1.SelectedPath
                Form2.ListBox1.Items.Add(GetFiles("*.JPG"))
                Form2.Show()
            End If
        End If
        If e.KeyCode = Keys.Control = True Or e.KeyCode = Keys.LShiftKey = True Or e.KeyCode = Keys.I = True Then
            Me.PictureBox1.SizeMode = PictureBoxSizeMode.StretchImage
            Me.PictureBox1.Width = 1299
        End If
    End Sub
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.