[Mono-devel-list] VS.NET, Mono, Opera, and Mac

John S. Brumbelow JBrumbelow at optidoc.com
Mon Jan 31 10:32:18 EST 2005

Please help,

	I've been through VS.NET, and its documentation says that when it builds .NET "Windows User Controls", they are derrived from System.Windows.Forms which I am to believe is what Mono support for the Mac currently. Oddly, the documentation says that the output from VS.NET is a "MSIL", but named as "DLL" or "EXE" depending on build options, but that it is a MSIL? So, if all that is true, then all I need is to get my app to run on Mac. I really want to make it run from an HTML script under say the Mac browser Opera, which is VERY much like IE. I wanted to get a simple sample to work as such:

================== My C# code from VS.NET ===========================
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;

namespace WebCON
	/// <summary>
	/// Summary description for HelloWorld.
	/// </summary>
	public class HelloWorld : System.Windows.Forms.UserControl
    public System.Windows.Forms.Label Label_HelloWorld;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		public System.ComponentModel.Container components = null;
    public String csURL;

		public HelloWorld()
			// This call is required by the Windows.Forms Form Designer.

			// TODO: Add any initialization after the InitComponent call


		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
			if( disposing )
				if( components != null )
			base.Dispose( disposing );

		#region Component Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify 
		/// the contents of this method with the code editor.
		/// </summary>
		public void InitializeComponent()
      this.Label_HelloWorld = new System.Windows.Forms.Label();
      // Label_HelloWorld
      this.Label_HelloWorld.Location = new System.Drawing.Point(8, 8);
      this.Label_HelloWorld.Name = "Label_HelloWorld";
      this.Label_HelloWorld.Size = new System.Drawing.Size(672, 232);
      this.Label_HelloWorld.TabIndex = 0;
      this.Label_HelloWorld.Text = "Hello World!!!";
      this.Label_HelloWorld.Click += new System.EventHandler(this.Label_HelloWorld_Click);
      // HelloWorld
      this.Name = "HelloWorld";
      this.Size = new System.Drawing.Size(768, 296);


    public void Label_HelloWorld_Click(object sender, System.EventArgs e)

    public void Run()
      System.Windows.Forms.MessageBox.Show("Hello World", "Hello World");

    public string URL
        return csURL;
        csURL = value.ToString();
        System.Windows.Forms.MessageBox.Show("Setting URL!!!");

====================== My HTML page I want to run from Opera on Mac which works on IE in Windows.
  Hello World!!!<br>
    <param name="URL" value="http://OptiDEV-02">
<script language=javascript>
var objHelloWorld = document.getElementById("objHelloWorld");
alert("CHK #001, objHelloWorld = '" + objHelloWorld.URL + "'...");

I tried the HTML from Opera and it says the object does not exist. Any ideas?

Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.825 / Virus Database: 563 - Release Date: 12/30/2004

More information about the Mono-devel-list mailing list