-
Hello, I need a little help with my little Problem...
Here is my Sourcecode (pseudo):
Public picHG() as PictureBox
.
.
.
Set picHG() = PictureBox (ERROR !!)
.
.
.
ReDim picHG(10)
.
.
.
and then the other Sourcecode with this call:
picHG(0).Picture = LoadPicture("aPicture.gif")
Can anybody help me, why cant I put the PictureBox behind a Index ?? And why cant I make a Set before the = PictureBox... Iám totally confused, hope You not !!
Please help, greetings MAJASOFT.
-
Well shouldn't you specify wich item you want to set the picbox to?
Code:
Set picHG(0) = PictureBox '(HOPEFULLY NO ERROR !!)
-
Yes, but...
Yes I know but he says...
Variable not defined (Variable nicht definiert !!) - He mean the PictureBox in "Set picHG(0) = PictureBox".
what now ??
Greetings, MAJASOFT.
-
Well erhmm..
Code:
Dim Pic As New PictureBox
Set Var(0) = Pic
Not sure though.
-
try:
Code:
public function picHG() as vb.picturebox
set picHG = picture1
end function
public sub picture1_click()
msgbox picHG.name
end sub
-
Yes
Yes, in the meantime i have solved the problem... i have forgot to set it to an existing PictureBox (frmGame.picBox !!) uh...oh... thanx anyway !! Greetings