Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Tabbed MDI and controls created in run-time
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Tabbed MDI and controls created in run-time

 Post Reply Post Reply
Author
Message
chvs View Drop Down
Newbie
Newbie


Joined: 30 January 2007
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote chvs Quote  Post ReplyReply Direct Link To This Post Topic: Tabbed MDI and controls created in run-time
    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?



Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 02 May 2007 at 12:41pm
Hello,
 
Show code you use to create controls.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
chvs View Drop Down
Newbie
Newbie


Joined: 30 January 2007
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote chvs Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.