filed bugzilla under Fedora 8
426519                           low     low     i68     [EMAIL PROTECTED]      
  NEW             missing link ln -s libgdiplus.so.0.0.0 libgdiplus.so

I get many errors but I do get the calculator dialog!

Form1.cs attached


Thanks guys!
----------------------------------------
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Date: Fri, 21 Dec 2007 12:48:46 -0600
> CC: [email protected]
> Subject: Re: [Mono-winforms-list] this worked great under Fedora      
> 7...error       message under Fedora 8
>
>
> file too large so I cut it down
>
> attached : (this produces working calculator..prodigious feat...adds 2 
> numbers)
>
>   919  gmcs Form1.cs -r:System.Windows.Forms -r:System.Drawing -r:System.Data
>   920  mono Form1.exe
>   921  mono Form1.exe>xxx
>
> I never have any luck with buzilla under fedora so somebody else must report 
> this!
>
> yum is supposed to be the workhorse!
>
> ----------------------------------------
>> Subject: Re: [Mono-winforms-list] this worked great under Fedora 7...error   
>>  message under Fedora 8
>> From: [EMAIL PROTECTED]
>> To: [EMAIL PROTECTED]
>> CC: [email protected]
>> Date: Fri, 21 Dec 2007 13:13:18 -0500
>>
>> afaik you need libgdiplus.so in order for mono to load it properly.
>>
>> Now why isn't installed by your package... I cannot answer :(
>>
>> try creating you own libgdiplus.so symlink to libgdiplus.so.0.0.0 and
>> see if this fix your issue.
>>
>> Sebastien
>>
>> On Fri, 2007-12-21 at 12:10 -0600, landon kelsey wrote:
>>> thanks!!!!    maybe I need a link for libgdiplus.so
>>>
>>> It is unfortunate that this code compiles and then crashes!
>>>
>>> Non System.Windows.Forms programs even .NET 2.0 compile fine!
>>>
>>> LMKIII (root) /var/www/html [1008]>cd /usr/lib
>>> You have new mail in /var/spool/mail/root
>>> LMKIII (root) /usr/lib [1009]>lsa|grep -i gdi
>>> lrwxrwxrwx   1 root root       22 2007-11-26 20:15 libgdict-1.0.so.5 -> 
>>> libgdict-1.0.so.5.0.15*
>>> -rwxr-xr-x   1 root root   150084 2007-11-16 17:05 libgdict-1.0.so.5.0.15*
>>> lrwxrwxrwx   1 root root       19 2007-11-09 10:39 libgdiplus.so.0 -> 
>>> libgdiplus.so.0.0.0*
>>> -rwxr-xr-x   1 root root   867860 2007-10-11 18:45 libgdiplus.so.0.0.0*
>>> LMKIII (root) /usr/lib [1010]>
>>> _________________________________________________________________
>>> i’m is proud to present Cause Effect, a series about real people making a 
>>> difference.
>>> http://im.live.com/Messenger/IM/MTV/?source=text_Cause_Effect
>>> _______________________________________________
>>> Mono-winforms-list maillist  -  [email protected]
>>> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>>
>
> _________________________________________________________________
> Don't get caught with egg on your face. Play Chicktionary!
> http://club.live.com/chicktionary.aspx?icid=chick_wlhmtextlink1_dec

_________________________________________________________________
Get the power of Windows + Web with the new Windows Live.
http://www.windowslive.com?ocid=TXT_TAGHM_Wave2_powerofwindows_122007
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace calculator
{
	/// <summary>
	/// Summary description for Form1.
	/// </summary>
	public class Form1 : System.Windows.Forms.Form
	{
		private System.Windows.Forms.TextBox textBox1;
		private System.Windows.Forms.TextBox textBox2;
		private System.Windows.Forms.TextBox textBox3;
		private System.Windows.Forms.Button button1;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public Form1()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

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

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.textBox1 = new System.Windows.Forms.TextBox();
			this.textBox2 = new System.Windows.Forms.TextBox();
			this.textBox3 = new System.Windows.Forms.TextBox();
			this.button1 = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// 
			// textBox1
			// 
			this.textBox1.Location = new System.Drawing.Point(88, 24);
			this.textBox1.Name = "textBox1";
			this.textBox1.TabIndex = 0;
			this.textBox1.Text = "";
			// 
			// textBox2
			// 
			this.textBox2.Location = new System.Drawing.Point(88, 80);
			this.textBox2.Name = "textBox2";
			this.textBox2.TabIndex = 1;
			this.textBox2.Text = "";
			// 
			// textBox3
			// 
			this.textBox3.Location = new System.Drawing.Point(88, 136);
			this.textBox3.Name = "textBox3";
			this.textBox3.TabIndex = 2;
			this.textBox3.Text = "";
			// 
			// button1
			// 
			this.button1.Location = new System.Drawing.Point(112, 200);
			this.button1.Name = "button1";
			this.button1.TabIndex = 3;
			this.button1.Text = "Add";
			this.button1.Click += new System.EventHandler(this.button1_Click);
			// 
			// Form1
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(292, 273);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.button1,
																		  this.textBox3,
																		  this.textBox2,
																		  this.textBox1});
			this.Name = "Form1";
			this.Text = "Form1";
			this.ResumeLayout(false);

		}
		#endregion

		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main() 
		{
			Application.Run(new Form1());
		}

		private void button1_Click(object sender, System.EventArgs e)
		{
			double a1 = Convert.ToDouble(textBox1.Text);
			double a2 = Convert.ToDouble(textBox2.Text);
			double asum = a1 + a2;
			textBox3.Text = asum.ToString();
		}
	}
}
_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Reply via email to