0

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.

2
Contributors
2
Replies
16
Views
4 Years
Discussion Span
Last Post by Bilaluddin
0

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"
0

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
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.