Why do my toolbox items disappear in Visual Studio 2008?

后端 未结 9 1855
灰色年华
灰色年华 2021-01-12 08:44

I\'m working on a solution that contains multiple projects targeting Windows Mobile 5 and standard Windows applications.

Lately when opening up a form in designer th

9条回答
  •  失恋的感觉
    2021-01-12 08:47

    I've noticed this exact same thing for regular WinForms as well. I can't speak to mobile applications but in regular winforms this has a tendency to happen.

    I believe it's actually a bug in Visual Studio.

    There are some things you can do (again, for WinForms. I'm not sure about mobile) with adding attributes to your control. Such as:

    [ToolboxBitmap(typeof(MyControl), "MyControlBitmap")]
    

    There are some other useful related things on this site:

    http://en.csharp-online.net/Design-Time_Integration-Attributes

提交回复
热议问题