Events tab randomly appears and disappears in VS 2008

前端 未结 6 1256
渐次进展
渐次进展 2021-01-12 12:22

I know it\'s a minor annoyance.. but it\'s still an annoyance and it baffles me.. About 3 months ago I was using VS 2008 and when I went to the \"Properties\" tab there was

6条回答
  •  再見小時候
    2021-01-12 13:04

    The Events tab is driven by the designer. If the designer is active, or the source view is active but the designer is synced, you should see the Events tab. Once you change the source view content, the designer will be out of sync and won't show the Events tab anymore. You can get the Events tab to show up again by switching to the designer and back.

    You can tell whether the designer is synced by looking at the type information in the Property Grid. If it is synced, you'll see the full .NET class name (e.g. for a Button, you'll see something like Button1 System.Web.UI.WebControls.Button), and if it's not synced, you'll just see an XML element (e.g. Button1

提交回复
热议问题