On 12/5/06, Duong Nguyen <[EMAIL PROTECTED]> wrote:
Hello,
I am a beginer in Gtk#. As read some examples from mono-website, I wrote
my first simple application and try to compile with
*mcs myfile.cs -pkg:gtk-sharp -pkg:glade-sharrp*
the program is compiled without error, but when I run it, no GUI is
displayed, only the text from Console.WriteLine is displayed. I have setup
Gtk# runtime, Mono in my computer.
Pls help me to get to know the problem.
Thanks in advance!
using
System;
using
Gtk;
using
Glade;
public
class MainWindow
{
public MainWindow()
{
Glade.
XML gxml = new Glade.XML("gui.glade", "MainWindow", "");
gxml.Autoconnect(
this);
}
}
public
class MainApplication
{
public static void Main(string[] args)
{
Application.Init();
MainWindow mw = new MainWindow();
// You have to add this line (i think)
mw.Show ();
Console.WriteLine("You're here!");
Application.Run();
}
}
_______________________________________________
Gtk-sharp-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
--
~~~~~
| klessou |
~~~~~
_______________________________________________
Gtk-sharp-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list