471,318 Members | 2,018 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,318 software developers and data experts.

Getting a Common Control to refresh

I am having some trouble getting my common compenent to be able to refresh
and I am hoping someone will be able to tell me what I am missing. To simply
things I have created a solution with a class inherting a textbox and I have
added a property called buttontype. When I set the button type it changes
some properties of the textbox like the textproperty. When I set it to
ButtonType.Add the text on the button switches to say "Add".

I then have another solution with a refrence to the above dll and when I add
my control on and set my button type it switches the text. If I change my
original solution to change the text to "Add 2" when the button type is set
to Add, my second solution will not pick it up till I go and change the
button type property to something else and then back again. If I look at the
Windows generated code for my second solution, I see a line for setting the
button type and a line that is setting the text property as well. I am
thinking is causing me my problem. If I comment out the line that changes
the text and run the application it will pick up whatever changes I make in
my oringal solution. How do I get .NET to stop putting the line that
switches the text in the windows generated code when I am designing my form
or once I make a change to my original dll how do I get my second solution to
pick that up.

Jul 21 '05 #1
0 1066

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by RL Stevenson | last post: by
2 posts views Thread by Peter Oliphant | last post: by
6 posts views Thread by MattB | last post: by
reply views Thread by Curtis | last post: by
2 posts views Thread by Andrew Cooper | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.