does not display GUI
Well, thanks jmcilhinney for your previous help. I've worked out the codes and they are fine now. But a new problem occurred, after i started to run the application, the GUI shown was totally blank. Do do know what are the reasons behind this? I've put the bitmap pictures in my projects folder under the bin directory, in the images folder.
Imports System.IO
Imports System.Windows.Forms
Public Class FrmPictureBox
Inherits Form
Private imageNumber As Integer = -1
'instructions display label
Friend WithEvents lblPrompt As System.Windows.Forms.Label
'image display area
Friend WithEvents picImage As System.Windows.Forms.PictureBox
'Visual Studio .NET generated code
'replace image in picImage
Private Sub picImage_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles picImage.Click
'imageNumeber from 0 to 2
imageNumber = (imageNumber + 1) Mod 3
'create Image object from file, display in PictureBox
picImage.Image = Image.FromFile _
(Directory.GetCurrentDirectory & "\images\image" & _
imageNumber & ".bmp")
End Sub 'picImage_Click
End Class 'FrmPictureBox
Well, thanks jmcilhinney for your previous help. I've worked out the codes and they are fine now. But a new problem occurred, after i started to run the application, the GUI shown was totally blank. Do do know what are the reasons behind this? I've put the bitmap pictures in my projects folder under the bin directory, in the images folder.
Imports System.IO
Imports System.Windows.Forms
Public Class FrmPictureBox
Inherits Form
Private imageNumber As Integer = -1
'instructions display label
Friend WithEvents lblPrompt As System.Windows.Forms.Label
'image display area
Friend WithEvents picImage As System.Windows.Forms.PictureBox
'Visual Studio .NET generated code
'replace image in picImage
Private Sub picImage_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles picImage.Click
'imageNumeber from 0 to 2
imageNumber = (imageNumber + 1) Mod 3
'create Image object from file, display in PictureBox
picImage.Image = Image.FromFile _
(Directory.GetCurrentDirectory & "\images\image" & _
imageNumber & ".bmp")
End Sub 'picImage_Click
End Class 'FrmPictureBox
Last edited: