I switched from VirtualStudio Express 2010 and I am trying to work with MonoDevelop and GTKSharp. Now. I'm trying to switch to new editing software, but it seems a lot different than VisualStudio.
What I'm trying to do is basically use widgets in this editor. For example, when I create a button in VisualStudio, and then double-click an element, I automatically get a piece of code representing the element in the form. And here's the problem, how do I create events for buttons and comboboxes in MonoDevelop? Iβve been browsing online examples for two days now and I canβt figure out how to do this. The examples are not clear enough.
What am I trying to create? First, I try to figure out how to use a ComboBox and a button that will allow me to select one of the 3 parameters in the ComboBox, and then when the button event occurs, I want to start 1 of 3 separate windows depending on which item was selected.
Please provide me some simple examples of working with MonoDevelop, otherwise I will need to return to Windows :(
Please, help!
// edit //
Lets say that I have time on hand, and I'm really interested in it. Therefore, if GTK # still allows me:
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 more lost than before.
source
share