Updating controls on a different form |
Post Reply |
Author | |
Maui
Groupie Joined: 10 June 2004 Status: Offline Points: 95 |
Post Options
Thanks(0)
Posted: 23 June 2004 at 5:23am |
I am having a problem updating controls on a different form. In my application I have a central form which contains items. The idea is that when you click on one of the items in the main form the docked windows will all update showing their respective data about the item you click on. Here is an example of what I mean. This Sub has no result and I would expect it to update label1 on the preview form with the word test. Private Sub Command1_Click() I tried making the sub on the child window and then doing the call like this but it causes the program to crash. Private Sub Command1_Click() Any help appreciated.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
formPreview is nothing I guess. You must use the form you attached to docking pane.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Maui
Groupie Joined: 10 June 2004 Status: Offline Points: 95 |
Post Options
Thanks(0)
|
User Error I had forgotten I was working with an instance of the form and not the form itself. Time for me to rename my variables I think so I dont do this again.
Thank you for your help.
Public frmPanePreview As formPreview
I had this : formPreview.Text1.Text = Now Now I have this: frmPanePreview.Text1.Text = Now
|
|
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 |