I recently did the tutorial on the go-mono website for c# and gtk#,
the browser, but I can get the webpage to open up. I am behind a proxy
so I think thats part of the problem. Is there anyway I can tell the
program to use a proxy?
I looked through the Gecko docs and didnt see anything.
I've attached to code in case I've made a mistake in it as well
Thanks in advance
// project created on 08/18/2004 at 22:28
using System;
using Gtk;
using Glade;
using Gecko;
public class GladeApp
{
[Widget] Frame frame1;
[Widget] Entry entry1;
WebControl web;
public static void Main (string[] args)
{
new GladeApp (args);
}
public GladeApp (string[] args)
{
Application.Init();
Glade.XML gxml = new Glade.XML (null, "gui.glade", "window1", null);
gxml.Autoconnect (this);
web = new WebControl();
web.Show();
frame1.Add(web);
entry1.Activated += load_url;
Application.Run();
}
/* Connect the Signals defined in Glade */
public void OnWindowDeleteEvent (object o, DeleteEventArgs args)
{
Application.Quit ();
args.RetVal = true;
}
void load_url (object source, EventArgs args )
{
Console.WriteLine("Load URL");
web.LoadUrl(entry1.Text);
}
void go_back (object source, EventArgs args )
{
web.GoBack();
Console.WriteLine("Back");
}
void go_forward (object source, EventArgs args )
{
web.GoForward();
Console.WriteLine("Forward");
}
}