Jump to content

Access the object in the frame of the other forms of application


izotope

Recommended Posts

Well and how can I access the object in the frame of the other forms of application?
Let's say I have a frame called frOneFrame (TfrOneFrame) unit in which it is located uOneFrame
 
Button1 object
 
I tried (frOneFrame as TfrOneFrame) .Button1.Enabled = true;
 
But I did not work  :(
 
Thanks!

 

Link to comment
Share on other sites

You can declare a form in public part, after that, get it from typecast:

(MyForm.frOneFrame as TfrOneFrame) .Button1.Enabled = true;

Little do not understand. That is, I need a form from which I need access to the frame, declare the same frame?
Such form is called MyForm
Which section do it and how? Thank U!
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...