Developing controls - visual studio problem ?

  • Thread starter Thread starter Paul R Carre
  • Start date Start date
P

Paul R Carre

This one is driving me nuts.

I have a Windows application and a windows control library contained
in the same project. In the controll library I have a control derrived
from System.Windows.Forms.Button :-

public class neatBtn : System.Windows.Forms.Button

I am using neatBtn on the form in the windows application.

However changes that I make to my neatBtn do not seem to become
available in the control that is used on the form until I close the
whole of visual studio and re-run it.

This seems to apply to both properties and methods.

There _has_ to be a better way - or am I missing the plot ?
 
Did you re-build the control library containing neatBtn + maybe close and
re-open the form containing it?
 
Yup - tried that several times - it is just as though it is not
unloading the dll that contains the control.

Am I doing somthing wierd here or what ?
 
Try closing the solution and re-opening it.

Paul R Carre said:
Yup - tried that several times - it is just as though it is not
unloading the dll that contains the control.

Am I doing somthing wierd here or what ?
 
Paul, I was working on a control yesterday and like you, none of my
changes were appearing until I closed all code/designer windows and
deleted the button from the host form, then rebuilt and redrew the
button. Give that a shot?
 
Paul, I was working on a control yesterday and like you, none of my
changes were appearing until I closed all code/designer windows and
deleted the button from the host form, then rebuilt and redrew the
button. Give that a shot?

Not for me - the only way I can get the changes to be seen ( currently
) are by closing and re starting visual studio.
 
Back
Top