2013-08-17 38 views
0

我發現了在其上創建一個無邊界形式,而是與框架,還是一個代碼,看起來像這樣(忽略頂部按鈕):無邊界形式,VB.NET到C#?

enter image description here

的代碼是:

Protected Overrides ReadOnly Property CreateParams As System.Windows.Forms.CreateParams 
    Get 
     Dim CP = MyBase.CreateParams 
     CP.Style = CP.Style And Not &HC00000 
     Return CP 
    End Get 
End Property 

但是,該代碼在VB.NET中。我將如何能夠在C#中完成它?我嘗試使用在線轉換器並失敗。

請幫忙嗎?謝謝!你的代碼的

回答

2

C#的版本將是這個樣子

protected override CreateParams CreateParams 
{ 
    get 
    { 
     CreateParams cp = base.CreateParams; 
     cp.Style &= ~0xc00000; 
     return cp; 
    } 
}