Problem with own TextBox in VS2005

Hey NG

So, I don't know, if this is an bug of VS2005 or if I offers this problem

I made a new control member. It belongs to System.Windows.Forms.TextBox.
I extended the "normal" textbox with some features.

Now, sometimes my VS2005 crashes. (OK-It's Beta) - But when I reopen my project, all Forms can't be displayed correct - Because of an error with my control member. - After rebuilding the project (without errors) the forms are displayed correct, but my controls are gone.

Now, I could add my control member again on the form - that works - but I can't give it the same name than before. - There I have to delete following code:

Friend WithEvents txtCode As VOptNeu.NeueFunktionen.IS_TextBox

This is just an example of the txtCode.

What can I do - It happens about twice a day. - And I do have mor than 150 of my TextBoxes over the whole project!

Thx



Answer this question

Problem with own TextBox in VS2005

  • bobba

    Dear harld
      it is just a suggetion : may be wrong or else

      Some times this errors gone when you install a fresh windows and fresh vb
     

  • A.b.cn

    Hey!

    Thank you! - I will try this.


  • Mozart319

    This sounds like a bug ... but here's a possible work-around to save yourself some rework:

    - After crashing, just open up the Controls project.  If your custom controls aren't in a separate class library, move them there (this is a good idea anyway, this way you'll be able to reuse them).
    - Build the controls project so that the DLL is available for your other project
    - Open the full solution, your forms should now be OK

    Hope this helps,
    Josh Lindenmuth

  • trk

    Hey!

    Thanks for your idea! - But it seems to work fine, only when I do my User defined Control out of the same Project in which I would need it.

    Thanks

  • Problem with own TextBox in VS2005