Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - Updating controls on a different form
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Updating controls on a different form

 Post Reply Post Reply
Author
Message
Maui View Drop Down
Groupie
Groupie


Joined: 10 June 2004
Status: Offline
Points: 95
Post Options Post Options   Thanks (0) Thanks(0)   Quote Maui Quote  Post ReplyReply Direct Link To This Post Topic: Updating controls on a different form
    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()
    formPreview.Label1 = "TEST"
    formPreview.Label1.Refresh
End Sub

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()
    formPreview.UpdateLabel
End Sub

Any help appreciated.

 

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: 23 June 2004 at 1:20pm
formPreview is nothing I guess. You must use the form you attached to docking pane.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Maui View Drop Down
Groupie
Groupie


Joined: 10 June 2004
Status: Offline
Points: 95
Post Options Post Options   Thanks (0) Thanks(0)   Quote Maui Quote  Post ReplyReply Direct Link To This Post Posted: 23 June 2004 at 4:02pm

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         

 

 

 

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.203 seconds.