![]() |
Tabbed MDI and controls created in run-time |
Post Reply
|
| Author | |
chvs
Newbie
Joined: 30 January 2007 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Topic: Tabbed MDI and controls created in run-timePosted: 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
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 May 2007 at 12:41pm |
|
Hello,
Show code you use to create controls.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
chvs
Newbie
Joined: 30 January 2007 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 May 2007 at 12:47pm |
|
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
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 May 2007 at 1:13pm |
|
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 |