J
jg
I setup a new windwos application project but I found out the sub main was
not called, I tried various form of Main (functions, subs) still no luck.
What did I miss?
Public Class SolverForm
Dim icnt_pieces = 0, iCurrent_Row = 0, iExpected_pieces = 16, i As
Integer
Dim ipb_piece() As PictureBox
Dim str_label() As String
Dim chr_Atrribute(iExpected_pieces)() As Char
Dim chr_AtrributeFlip(iExpected_pieces)() As Char
Dim b_used() As Boolean
Dim ipb_origin_location As System.Drawing.Point
Dim ipb_origin_offset As Integer = 106
Const CSTR_LABEL As String = "ABCDEFGHIJKLMNOPQRSTUVZ0123456789"
Public Function Main(ByVal cmdArgs() As String) As Integer
MsgBox("MAIN - before new Game", MsgBoxStyle.Information, "@debug") ' never
appear
NewGame()
ipb_piece(0) = PictureBox1
ipb_piece(1) = PictureBox2
ipb_piece(2) = PictureBox3
ipb_piece(3) = PictureBox4
......
ipb_piece(15) = PictureBox16
MsgBox("MAIN - before calling rect", MsgBoxStyle.Information,
"@debug")
testRectangle()
End Function
not called, I tried various form of Main (functions, subs) still no luck.
What did I miss?
Public Class SolverForm
Dim icnt_pieces = 0, iCurrent_Row = 0, iExpected_pieces = 16, i As
Integer
Dim ipb_piece() As PictureBox
Dim str_label() As String
Dim chr_Atrribute(iExpected_pieces)() As Char
Dim chr_AtrributeFlip(iExpected_pieces)() As Char
Dim b_used() As Boolean
Dim ipb_origin_location As System.Drawing.Point
Dim ipb_origin_offset As Integer = 106
Const CSTR_LABEL As String = "ABCDEFGHIJKLMNOPQRSTUVZ0123456789"
Public Function Main(ByVal cmdArgs() As String) As Integer
MsgBox("MAIN - before new Game", MsgBoxStyle.Information, "@debug") ' never
appear
NewGame()
ipb_piece(0) = PictureBox1
ipb_piece(1) = PictureBox2
ipb_piece(2) = PictureBox3
ipb_piece(3) = PictureBox4
......
ipb_piece(15) = PictureBox16
MsgBox("MAIN - before calling rect", MsgBoxStyle.Information,
"@debug")
testRectangle()
End Function