Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

ActiveForm query

 

Hi,

 

I have 2 radiobuttons (apart from some other controls) on a form and need to access the value (checked or unchecked) of the same from another class.

 

I obtain a reference to the said form using ActiveForm and then using myForm.ActiveForm.Controls get access to all controls in the form.

 

However, I can't seem to access the checked value of the control (for the radiobuttons). During compile it return an error stating that Checked is not a property of Controls collection.

 

Any way to get around this ?

 

Thanks for your time.

Denzil

Posted

Passing the form reference solved it. Thanks

 

Hi Divil,

 

Thanks for your reply. Solved the same by passing the form as reference.

 

Cheerz,

Denz

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