csharp System.Windows.Forms.Control.Handle类(方法)实例源码

下面列出了csharp System.Windows.Forms.Control.Handle 类(方法)源码代码实例,从而了解它的用法。

作者:.NET开发    项目:System.Windows.Form   
// This method draws a focus rectangle on Button2 using the 
// handle and client rectangle of Button2.
private void Button1_Click(System.Object sender, System.EventArgs e)
{
    ControlPaint.DrawFocusRectangle(Graphics.FromHwnd(Button2.Handle), 
        Button2.ClientRectangle);
}


问题


面经


文章

微信
公众号

扫码关注公众号