[MonoDevelop] Can't get basic code to work
Sanford Armstrong
sanfordarmstrong at gmail.com
Fri Jul 27 00:10:12 EDT 2007
On 7/26/07, George Lober <georgelober at glowsoftware.ca> wrote:
> Marcos Marín wrote:
> >
> > One signal/event which I'm trying to find is the equivalent of the
> > delphi form onCreate event (when a window is created). Would this
> > be the
> > "Realized" signal ? I would need this to put one-time run start-up
> > code
> > into.
> >
> >
> > Why not use the class' constructor?
> >
>
> Would you mean inside of the "public partial class MainWindow:
> Gtk.Window" block in MainWindow.cs ?
Yes. Within that block (ie, within the class), you want to add a
constructor. If this term is new to you you'll want to find a book or
tutorial on C#, but basically it's a method called when your class
(your window in this case) is first created, and it usually looks like
this:
public MainWindow ()
{
// Do initialization stuff here
}
Hope this helps,
Sandy
More information about the Monodevelop-list
mailing list