What's the state of play with “Visual Inheritance”

后端 未结 6 1353
-上瘾入骨i
-上瘾入骨i 2021-01-05 02:27

We have an application that has to be flexible in how it displays it\'s main form to the user - depending on the user, the form should be slightly different, maybe an extra

6条回答
  •  半阙折子戏
    2021-01-05 03:06

    I've seen some problems in VS2005 with this. They were mostly due to problems with construction of the forms-objects in the designer. There were issues with code that tried to access the database from the form-constructors etc.

    You can debug issues like this by starting a second instance of visual studio and loading up the first instance in the debugger. If you set breakpoints in your code you can then debug what happens in the designers in the first instance.

    Another problem I can remember was generics in form classes

    public class MyForm : Form
    

    this won't work

提交回复
热议问题