Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5839009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T11:31:45+00:00 2026-05-22T11:31:45+00:00

I switched from using VirtualStudio Express 2010 and I am trying to work with

  • 0

I switched from using VirtualStudio Express 2010 and I am trying to work with MonoDevelop and GTKSharp. Now. I am trying to switch to new editor software but it seems much different than VisualStudio.

What I am trying to do is basically to use widgets in this editor. For example when I am creating a button in VisualStudio and then double click the item then I am automatically getting the piece of code representing the item in the form. And here is the problem, how do I create events for buttons and comboboxes in MonoDevelop? I was looking through Internet examples for two days now and I can not figure out how to do it. The examples are not clear enough.

What I am trying to create? First I am trying to figure out how to use ComboBox and button which will allow me to choose one of 3 options in ComboBox and then under button event I want to fire 1 of 3 separate windows depending on which item has been picked.

Please provide me some easy examples how to work with MonoDevelop or else I will need to switch back to Windows OS 🙁

Please help!

// edit //

Lets say I got time on my hands and I am really interested in it. So if GTK# allow me so far:

public MainWindow () : base(Gtk.WindowType.Toplevel)
{
    Build ();
    button1.Clicked += button1_Click;
    combobox1.SelectionGet += comboBox1_Selection; << is this correct?
}


private void button1_Click(object s, EventArgs e)
{
}

private void comboBox1_Selection (object s, EventArgs e)
{
    switch (combobox1.SelectedIndex)
    {
        case 0:
            window1.Show();
            break;
        case 1:
            window2.Show();
            break;
        case 2:
            window3.Show();
            break;
    }
}

But I feel like I am more lost than I was earlier.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T11:31:46+00:00Added an answer on May 22, 2026 at 11:31 am

    Create a new C# GTK project.

    Open up the “MainWindow.cs” and at the bottom right of the window click the “Designer” button to go into designer mode.

    Next open up the hidden toolBox window at the right of the MonoDev window. Drag out a “Fixed” Container on the main windows canvas. This is required to put Buttons and stuff on your window.

    Now drag a button on the Fixed container. To move the button around click on the little white box above the button when selected.

    Now go to your SourceCode again. In the constructor write::

    button1.Clicked += button1_Click;
    

    Then make the new Click method.

    private void button1_Click(object s, EventArgs e)
    {
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've switched from using constants for Strings to using enums. Many times I need
I recently switched from using Linq to Sql to the Entity Framework. One of
I switched my DAL from using LINQ over to Entity Framework. Because my application
My company unwittingly switched from cvs to subversion and now we're all wishing we
I recently switched from using screen to tmux (obtained through macports), as I like
In a program to simulate logic gates I switched from using arrays node N[1000];
I recently switched out log4net logging from using config files to being set up
I've been using the System.Net namespace ever since we switched from .NET Framework 1.1
I switched from Intelligencia's UrlRewriter to the new web forms routing in ASP.NET 4.0.
I switched from NAnt to using Python to write build automation scripts. I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.