Reader Level:
ARTICLE

Gtk# Buttons widgets with MonoDevelop

Posted by Deepak Dwij Articles | MonoDevelop November 23, 2011
Gtk# is in the monodevelop IDE where we can design window form, here we are going to have 3 different widgets of button in the window form.
  • 0
  • 0
  • 6722

Introduction

Gtk# is in the monodevelop IDE where we can design window form, here we are going to have 3 different widgets of button in the windows form.

3 Button widgets are as follows :

  • Color button
  • Font button
  • File chooser button

Step 1 : Open MonoDevelop IDE.

  d1.gif

  d2.gif

Step 2 : Select c# -> then Gtk# -> project name -> click on the forward button.

d3.gif
 

Blank window looks as given below.

fd4.gif

Step 3 :  Now drag and drop a vbox from the ToolBox into the MainWindow.

  d5.gif

Step 4 : Put a label, Color button, Font button, File chooser button on the Vbox respectively.

d6.gif

Step 5 : Run the Application 

d7.gif

Step 6 : Output

After clicking on a Color Button, pick a color window displays, choose your desired color.

d8.gif

Result

d9.gif


After clicking on a Font button , pick a font window display ,choose your desired font.


d10.gif


Result

d11.gif


Finally after clicking on File Chooser button, select a file window displays, choose your desired file.

d12.gif


Result


d13.gif
 

COMMENT USING

Trending up