Saturday, 17 August 2013

Borderless form, VB.NET to C#?

Borderless form, VB.NET to C#?

I found a code which creates a borderless form but with the frame, still
on it, looks like this (Ignore the top buttons):
http://puu.sh/441BP.jpg
The code is:
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
However, that code is in VB.NET. How would I be able to do it in C#? I
tried using an online converter and failed.
Help please? Thanks!

No comments:

Post a Comment