Create a GUI Application using MonoDevelop on OS X

10,473

Solution 1

If you are on Linux or Windows, the project type is called "Gtk# 2.0 Project". If you are on Mac, there is no visual designer for Gtk#, you will have to code it by hand.

Solution 2

you can create GUI by mono in mac follow these steps:

  • File->New->Solution.
  • Select C# and then select Gtk# enter a name for your project then click Forward.
  • in the solution window at the left side of the window click the arrow next to your project name, then right-click on the MainWindow.cs click open.
  • after it opened at the bottom of the window there is (Source code and Designer) click on the Designer, enjoy it you can see a form now.

so if want to add buttons, textboxes, lables,... etc there is a toolbox window at the right of the window.

Solution 3

If you're already familiar with WinForms and C# development using Visual Studio--and if you don't mind developing a GUI without a visual editor--then you can develop a WinForms application in MonoDevelop.

This tutorial should get you started: http://zetcode.com/tutorials/monowinformstutorial/firststeps/

After creating a new C# solution (File|New > Solution...), add references to System.Drawing and System.Windows.Forms (Project|Edit References...). In the constructor for your Form subclass you can define buttons and other controls. That should get you on your way.

There may still be bugs and odd quirks in MonoDevelop. For example, autocomplete for adding an event handler (such as MyButton.Click += HandleMyButtonClick) works if I insert a space after "+=", but not if I tab. Otherwise the environment should feel familiar.

Share:
10,473
Jon
Author by

Jon

Updated on June 04, 2022

Comments

  • Jon
    Jon almost 2 years

    I just installed the latest Mono framework and MonoDevelop.

    When I create a new solution under C# there is no GUI based application.

    How do I create an app that has a GUI and buttons etc

  • Hulvej
    Hulvej over 11 years
    of cause only if you intend to develop OSX/iOS apps on .NET platform :)