0
Boa Tarde Personal,
The thing is, I’m working with Windows form and creating a simple application that has a "load" button that opened a window to select an image in the picturebox, the code looked like this:
private void carregarToolStripMenuItem_Click(object sender, EventArgs e)
{
//verifica se a imagem foi carregada
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
//seleciona a imgaem e vincula a mesma ao pictureBox chamado "exibirImagem"
exibirImagen.ImageLocation = openFileDialog1.FileName;
//carrega a imagem selecionada no Picture box "exibirImagem"
exibirImagen.Load();
//salva o caminho da imagem selecionada em uma string
caminhoImagem = openFileDialog1.FileName;
}
}
up here to load the image all right. The doubt is as follows, how can I "move" to the next image, for example, assuming that inside the folder I selected the image1.jpg there is also the imagem2.jpg, I want to click a button called next it loads the imagem2.jpg in the picturebox. If anyone can help, of any idea, post a link that helps already thank.
Hello Pedro, thank you very much for your answer, solved my problem. I just had to make a few adjustments as needed, but that’s exactly what I was looking for, thank you again.
– Q.Wesley
For nothing, any doubt I am at your disposal.
– Pedro Paulo