- Home /
How to change the boaderstyle of the application?
Hi, I would like to have an application run in a window without the windows border or close button. I have tried using this code after importing the System.Windows.Forms.dll into my plugins folder. In my code I am getting this error message
"Assets/Scripts/Startkeyboard.cs(9,17): error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer"
This is my code.
using UnityEngine;
using System.Collections;
using System.Windows.Forms;
public class StartKeybord : MonoBehaviour {
void Start () {
this.FormBorderStyle = FormBorderStyle.None;
}
}
The problem is with this line "this.FormBorderStyle = FormBorderStyle.None;
Any advice will be hugely appreciated.
Thank You
Your answer
Follow this Question
Related Questions
Export objects to a .3DS file at runtime 1 Answer
Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers
Internal Compiler Error, caused by System.Windows.Forms.dll 1 Answer
Accessing UnityEngine properties from standalone dll - running in a Unity game 1 Answer
Can Editor scripts be in external DLL's or assemblies? 1 Answer