How can I debug at design time?

前端 未结 2 2090
挽巷
挽巷 2021-02-07 10:11

I created a custom ListView with a UserControl. When the mouse enters the ColumnHeader it should change color at design time.

It works, but I need to debug code. How ca

2条回答
  •  难免孤独
    2021-02-07 11:17

    See Walkthrough: Debugging Custom Windows Forms Controls at Design Time (MSDN).

    Or in a shorter way to do it just once:

    • Start Visual Studio twice with the same solution.
    • The first with an opened designer of your control, the second to attach by using menu ToolsAttach to Process → the other devenv.exe (Visual Studio)

提交回复
热议问题