Click here to Skip to main content
15,899,937 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralConverting MS Access Data Type Pin
MicSky25-May-04 4:20
MicSky25-May-04 4:20 
GeneralRe: Converting MS Access Data Type Pin
mikasa25-May-04 4:22
mikasa25-May-04 4:22 
QuestionDeploying a VB.Net application with third party dlls? Pin
palei25-May-04 1:31
palei25-May-04 1:31 
AnswerRe: Deploying a VB.Net application with third party dlls? Pin
Sarvesvara (BVKS) Dasa26-May-04 7:37
Sarvesvara (BVKS) Dasa26-May-04 7:37 
GeneralUsercontrols on Panes Pin
emari25-May-04 1:00
emari25-May-04 1:00 
GeneralRe: Usercontrols on Panes Pin
Dave Kreskowiak25-May-04 2:09
mveDave Kreskowiak25-May-04 2:09 
GeneralRe: Usercontrols on Panes Pin
Member 85737725-May-04 8:56
Member 85737725-May-04 8:56 
GeneralRe: Usercontrols on Panes Pin
Dave Kreskowiak25-May-04 11:14
mveDave Kreskowiak25-May-04 11:14 
marisolera wrote:
mycontrolarray.AddNewUsercontrol()

mycontrolarray(i).getdata = arrText(i)
mycontrolarray(i).Parent = Panel5
mycontrolarray(i).Top = Panel5.Height - 35 * (i + 1)

Next


This is illegal. There are no such things as control arrays in VB.NET like there were in VB6.
Besides, you doing two very different things here:
First, you define mycontrolarray as a single instance of type arraycontrol:
Dim mycontrolarray As arraycontrol
mycontrolarray = New arraycontrol(Me)

I have no idea what your doing with the Me reference because it's handled by the constructor code inside your arraycontrol code.
Then, later you refer to mycontrolarray as an indexed array:
mycontrolarray(i).getdata = arrText(i)
mycontrolarray(i).Parent = Panel5
mycontrolarray(i).Top = Panel5.Height - 35 * (i + 1)

This is illegal since your now trying to treat the mycontrolarray as an array and it wasn't defined as such.

Secondly, you have an event handler for a label that doesn't exist on the form. mlabel01 appears to be a member of arraycontrol. The event must be handled inside the control and not on the form.


RageInTheMachine9532
"...a pungent, gastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Usercontrols on Panes Pin
emari25-May-04 22:02
emari25-May-04 22:02 
GeneralRe: Usercontrols on Panes Pin
Member 85737725-May-04 9:24
Member 85737725-May-04 9:24 
Generalkernel32.dll Call Problems Pin
Pugman81224-May-04 23:03
Pugman81224-May-04 23:03 
GeneralRe: kernel32.dll Call Problems Pin
Dave Kreskowiak25-May-04 0:33
mveDave Kreskowiak25-May-04 0:33 
GeneralRe: kernel32.dll Call Problems Pin
Pugman81225-May-04 9:17
Pugman81225-May-04 9:17 
GeneralRe: kernel32.dll Call Problems Pin
Dave Kreskowiak25-May-04 11:57
mveDave Kreskowiak25-May-04 11:57 
GeneralRe: kernel32.dll Call Problems Pin
Pugman81225-May-04 12:34
Pugman81225-May-04 12:34 
GeneralOpening large tiff files Pin
NaserAbiat24-May-04 19:22
NaserAbiat24-May-04 19:22 
GeneralRe: Opening large tiff files Pin
Dave Kreskowiak25-May-04 0:30
mveDave Kreskowiak25-May-04 0:30 
GeneralRe: Font color,Type, Columns... Pin
Dave Kreskowiak24-May-04 16:49
mveDave Kreskowiak24-May-04 16:49 
GeneralRe: Font color,Type, Columns... Pin
Dave Kreskowiak25-May-04 0:28
mveDave Kreskowiak25-May-04 0:28 
GeneralRe: Font color,Type, Columns... Pin
rubdub25-May-04 20:18
rubdub25-May-04 20:18 
GeneralSetting Enviroment Variables Pin
waffleman24-May-04 8:58
waffleman24-May-04 8:58 
GeneralRe: Setting Enviroment Variables Pin
Dave Kreskowiak24-May-04 9:22
mveDave Kreskowiak24-May-04 9:22 
GeneralMultithreading Help Pin
800XL24-May-04 5:59
800XL24-May-04 5:59 
GeneralRe: Multithreading Help Pin
Dave Kreskowiak24-May-04 7:11
mveDave Kreskowiak24-May-04 7:11 
GeneralRe: Multithreading Help Pin
800XL24-May-04 23:32
800XL24-May-04 23:32 

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.