By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,838 Members | 1,675 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,838 IT Pros & Developers. It's quick & easy.

User Inherited Controls Question

P: n/a
Hello all I have a question I'm hoping someone can shed some light on. I have
2 user Inherited Controls on a form. When I click 1 inherited control I would
like to change the text of the other Inherited Control. Is there anyway to do
this? For example, I have an ADD button which is inherited and a EXIT button
which is inherited. The reason I made them inherited is because I want to use
the function of these buttons in other forms and don't want to find myself
rewriting the same code. I would like for the text of the EXIT button to
change when I click the ADD button and vice versa for the EXIT. Can someone
please help? Your advice and suggestions are welcomed.

Thanks!
--
TC
Sep 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Ron
I assume you are inheriting from another form. On the base class, handle the
Click event for the command buttons and change the Text property accordingly.

"Terrance" wrote:
Hello all I have a question I'm hoping someone can shed some light on. I have
2 user Inherited Controls on a form. When I click 1 inherited control I would
like to change the text of the other Inherited Control. Is there anyway to do
this? For example, I have an ADD button which is inherited and a EXIT button
which is inherited. The reason I made them inherited is because I want to use
the function of these buttons in other forms and don't want to find myself
rewriting the same code. I would like for the text of the EXIT button to
change when I click the ADD button and vice versa for the EXIT. Can someone
please help? Your advice and suggestions are welcomed.

Thanks!
--
TC

Sep 17 '05 #2

P: n/a
HEY RON:
No I'm not inheriting from another form.
--
TC
"Ron" wrote:
I assume you are inheriting from another form. On the base class, handle the
Click event for the command buttons and change the Text property accordingly.

"Terrance" wrote:
Hello all I have a question I'm hoping someone can shed some light on. I have
2 user Inherited Controls on a form. When I click 1 inherited control I would
like to change the text of the other Inherited Control. Is there anyway to do
this? For example, I have an ADD button which is inherited and a EXIT button
which is inherited. The reason I made them inherited is because I want to use
the function of these buttons in other forms and don't want to find myself
rewriting the same code. I would like for the text of the EXIT button to
change when I click the ADD button and vice versa for the EXIT. Can someone
please help? Your advice and suggestions are welcomed.

Thanks!
--
TC

Sep 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.