Developing controls - visual studio problem ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Paul R Carre

    #1

    Developing controls - visual studio problem ?



    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 ?



  • Dave

    #2
    Re: Developing controls - visual studio problem ?

    Did you re-build the control library containing neatBtn + maybe close and
    re-open the form containing it?


    "Paul R Carre" <paul.carre@pol arinstruments.c om> wrote in message
    news:3f695a7d.4 597046@news.cwg sy.net...[color=blue]
    >
    >
    > 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 ?
    >
    >
    >[/color]


    Comment

    • Paul R Carre

      #3
      Re: Developing controls - visual studio problem ?


      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 ?



      On Thu, 18 Sep 2003 11:49:19 +0100, "Dave" <millitec.com@d ave> wrote:
      [color=blue]
      >Did you re-build the control library containing neatBtn + maybe close and
      >re-open the form containing it?
      >
      >
      >"Paul R Carre" <paul.carre@pol arinstruments.c om> wrote in message
      >news:3f695a7d. 4597046@news.cw gsy.net...[color=green]
      >>
      >>
      >> 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 ?
      >>
      >>
      >>[/color]
      >
      >[/color]

      Comment

      • Ryan Wade

        #4
        Re: Developing controls - visual studio problem ?

        Try closing the solution and re-opening it.

        "Paul R Carre" <paul.carre@pol arinstruments.c om> wrote in message
        news:3f699a10.2 0872296@news.cw gsy.net...[color=blue]
        >
        > 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 ?
        >
        >
        >
        > On Thu, 18 Sep 2003 11:49:19 +0100, "Dave" <millitec.com@d ave> wrote:
        >[color=green]
        > >Did you re-build the control library containing neatBtn + maybe close and
        > >re-open the form containing it?
        > >
        > >
        > >"Paul R Carre" <paul.carre@pol arinstruments.c om> wrote in message
        > >news:3f695a7d. 4597046@news.cw gsy.net...[color=darkred]
        > >>
        > >>
        > >> 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 ?
        > >>
        > >>
        > >>[/color]
        > >
        > >[/color]
        >[/color]


        Comment

        • Chris Hornberger

          #5
          Re: Developing controls - visual studio problem ?

          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.carre@pola rinstruments.co m (Paul R Carre) wrote in message news:<3f695a7d. 4597046@news.cw gsy.net>...[color=blue]
          > 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 ?[/color]

          Comment

          • Paul R Carre

            #6
            Re: Developing controls - visual studio problem ?

            On 18 Sep 2003 12:03:26 -0700, chris@chornbe.c om (Chris Hornberger)
            wrote:
            [color=blue]
            >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?
            >[/color]

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


            Comment

            • Paul R Carre

              #7
              Re: Developing controls - visual studio problem ?

              On Thu, 18 Sep 2003 06:29:24 -0700, "Ryan Wade" <test@test.co m> wrote:
              [color=blue]
              >Try closing the solution and re-opening it.
              >[/color]

              Nope.

              Comment

              Working...