It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

HOW TO LOAD CONTROLS IN RUNTIME

Moderator: dafunkymunky

HOW TO LOAD CONTROLS IN RUNTIME

Postby bawa_jain on Mon Mar 17, 2008 11:04 am

Please tell me how to create chechboxes(more than one) at runtime and add in a grid at runtime.

i do this by :=

First i create a checkbox named check1 at design time and set its index property to zero.
then i write this code:=
Load Check1(i) '( "i" is a counter variable)
Check1(i).Visible = True
Check1(i).Top = Grid1.Top + Grid1.CellTop
Check1(i).Left = Grid1.Left + Grid1.CellLeft
Check1(i).Width = Grid1.CellWidth
Check1(i).Height = Grid1.CellHeight
Check1(i).Value = Checked
Check1(i).Visible = True

But this did not work.
bawa_jain
 
Posts: 2
Joined: Thu Feb 21, 2008 7:49 am

Make z Order 0

Postby sendtoanurag on Thu Mar 20, 2008 4:06 am

chk(i).ZOrder (0)
sendtoanurag
 
Posts: 29
Joined: Tue Mar 18, 2008 2:51 pm


Who is online

Users browsing this forum: No registered users and 4 guests