Click here to Skip to main content
16,005,339 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionWant Printer Properties - Physical Limits Pin
kramnotliw17-Apr-06 15:04
kramnotliw17-Apr-06 15:04 
QuestionAxWebBrowser and Events Handling Pin
adivetal17-Apr-06 10:12
adivetal17-Apr-06 10:12 
Questiontree control in VB6 Pin
Marc Soleda17-Apr-06 8:25
Marc Soleda17-Apr-06 8:25 
AnswerRe: tree control in VB6 Pin
Marc Soleda17-Apr-06 8:31
Marc Soleda17-Apr-06 8:31 
QuestionRaising an Event in DLL and Traping that event in EXE Pin
pahmn17-Apr-06 6:49
pahmn17-Apr-06 6:49 
AnswerRe: Raising an Event in DLL and Traping that event in EXE Pin
Dave Kreskowiak17-Apr-06 9:56
mveDave Kreskowiak17-Apr-06 9:56 
QuestionArray initialization : expression expected ? Pin
SolarBear17-Apr-06 6:45
SolarBear17-Apr-06 6:45 
AnswerRe: Array initialization : expression expected ? Pin
Joshua Quick17-Apr-06 7:13
Joshua Quick17-Apr-06 7:13 
First let me tell you that there is a mistake in your array declaration of grid(8, 8). This is really creating an array of 9x9 elements. Why? Because the (8, 8) specifies the upper index bound (ie: max index is 8) for a zero based array. That means your array is indexable between 0...8, for a total of 9 elements.
You should change it to grid(7, 7).

Now on to your current issue...

You could initialize your array like this...
grid(0,0) = pictureBox1
grid(0,1) = pictureBox2
grid(0,2) = pictureBox3
' Etc...

An even better approach would be to create the PictureBox controls on Form Load and then add them to your array and Form's Control collection. This would be much cleaner.
Dim column As Integer
Dim row As Integer
For row = 0 To 7 Step 1
   For column = 0 To 7 Step 1
      nextPictureBox = New PictureBox
      <code>' Initialize PictureBox here.</code>
      Me.Controls.Add(nextPictureBox)
      grid(row, column) = nextPictureBox
   Next
Next

GeneralRe: Array initialization : expression expected ? Pin
SolarBear17-Apr-06 8:11
SolarBear17-Apr-06 8:11 
QuestionTo designing windows form Pin
bluehai17-Apr-06 4:49
bluehai17-Apr-06 4:49 
AnswerRe: To designing windows form Pin
Dave Kreskowiak17-Apr-06 8:14
mveDave Kreskowiak17-Apr-06 8:14 
GeneralRe: To designing windows form Pin
bluehai17-Apr-06 16:01
bluehai17-Apr-06 16:01 
GeneralRe: To designing windows form Pin
Dave Kreskowiak17-Apr-06 17:05
mveDave Kreskowiak17-Apr-06 17:05 
Questioncallerid Pin
SVb.net17-Apr-06 4:27
SVb.net17-Apr-06 4:27 
GeneralRe: callerid Pin
Guffa17-Apr-06 4:51
Guffa17-Apr-06 4:51 
AnswerRe: callerid Pin
Dave Kreskowiak17-Apr-06 6:25
mveDave Kreskowiak17-Apr-06 6:25 
QuestionPreventing key press Pin
formansworld17-Apr-06 4:13
formansworld17-Apr-06 4:13 
AnswerRe: Preventing key press Pin
Eric Dahlvang17-Apr-06 4:49
Eric Dahlvang17-Apr-06 4:49 
Questionhow can i read data from notepad Pin
Mr kilany17-Apr-06 3:23
Mr kilany17-Apr-06 3:23 
AnswerRe: how can i read data from notepad Pin
sathish s17-Apr-06 3:58
sathish s17-Apr-06 3:58 
GeneralRe: how can i read data from notepad Pin
Guffa17-Apr-06 6:17
Guffa17-Apr-06 6:17 
Questionwhy .....incorrect data printed from vb.net Pin
Mr kilany17-Apr-06 3:17
Mr kilany17-Apr-06 3:17 
AnswerRe: why .....incorrect data printed from vb.net Pin
Dave Kreskowiak17-Apr-06 6:22
mveDave Kreskowiak17-Apr-06 6:22 
GeneralRe: why .....incorrect data printed from vb.net Pin
Mr kilany18-Apr-06 3:29
Mr kilany18-Apr-06 3:29 
Questionproblem in deploymentof vs.net 2005 Application Pin
Amit Agarrwal17-Apr-06 2:50
Amit Agarrwal17-Apr-06 2:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.