![]() |
Tabbed MDI and controls created in run-time |
Post Reply ![]() |
Author | |
chvs ![]() Newbie ![]() Joined: 30 January 2007 Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() Posted: 02 May 2007 at 10:43am |
I open a form (form A), then create controls in run-time (like textbox),
If i click on tab to go on another form (form B), when i return to form A, the controls created in run-time is invisible. How i can resolve this? |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello,
Show code you use to create controls.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
chvs ![]() Newbie ![]() Joined: 30 January 2007 Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() |
In form load.
qtEtapas = rs.RecordCount
For i = 1 To qtEtapas - 1 Load txtMed(i)
txtMed(i).Left = txtMed(i - 1).Left + txtMed(i - 1).Width + 200 txtMed(i).Visible = True Next i
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
It works for me.
In our MDI sample I inserted
Option Explicit
Public fMain As frmMain
Private Sub Form_Load() Dim i As Long For i = 1 To 5 Load txtMed(i) txtMed(i).Left = txtMed(i - 1).Left + txtMed(i - 1).Width + 200 txtMed(i).Visible = True Next i
End Sub
and don't see any problems.
Please attach sample project that show error.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |