Hello, i am writting a little program and i want to select a picture with one extensions but several possibilities. my first option is .png but i want to add ".gif"vpicture if "png" picture is not found.
i am starting in coding. i tried this:but i have a error!Code:PictureBox9.Image = Image.FromFile(Application.StartupPath & "\DANfiles\challengersgif\" & Me.ComboBox1.Text & (".png" or ".gif"))
please! give me a hand ! i am looking for a solution. thank you in advance for your answer!




Reply With Quote
