如何在设计时进行调试? [英] How can I debug at design time?

查看:59
本文介绍了如何在设计时进行调试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用UserControl创建了一个自定义ListView.当鼠标进入ColumnHeader时,它应该在设计时更改颜色.

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 can I debug code at design time?

推荐答案

请参见

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

或者以一种较短的方式仅执行一次:

Or in a shorter way to do it just once:

  • 使用相同的解决方案两次启动Visual Studio.
  • 第一个打开了控件的设计器,第二个使用菜单 Tools →进行了附加.附加到处理程序→另一个devenv.exe(Visual Studio)
  • 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)

这篇关于如何在设计时进行调试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆