LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-13-2007, 03:44 PM   #1
landonmkelsey
Member
 
Registered: Jul 2001
Location: Texas
Distribution: Fedora 16
Posts: 323

Rep: Reputation: 37
mono came in with yum update under FC6


I compiled a .NET 2.0 program using mono

>gmcs Program.cs
1 using System;
2 using System.Collections.Generic;
3 namespace testDelegate
4 {
5 class delx
6 {
7 public delegate string MyDelegate(int i, string y);
8
9 //static public string myDel(int i, string y)
10 //{
11 // // int u = i;
12 // string j = y;
13 // return j;
14 //}
15 public MyDelegate myDelegate = delegate(int i, string y)
16 {
17 Console.WriteLine("here:" + y);
18 int u = i;
19 string j = y;
20 return j;
21 };
22 }
23 class del
24 {
25 public delegate string MyDelegate(int i, string y);
26
27 //static public string myDel(int i, string y)
28 //{
29 // // int u = i;
30 // string j = y;
31 // return j;
32 //}
33 private MyDelegate myDelegate = delegate(int i, string y)
34 {
35 Console.WriteLine("here:"+y);
36 int u = i;
37 string j = y;
38 return j;
39 };
40
41 public static void Main(string[] args)
42 {
43 del dl = new del();
44 MyDelegate myDelegate1 = dl.myDelegate;
45 myDelegate1(1, "666");
46
47 delx dlx = new delx();
48 delx.MyDelegate myDelegate1x= dlx.myDelegate;
49 myDelegate1x(1, "666");
50 List<int> listInt = new List<int>();
51 listInt.Add(2);
52 }
53 }
54 }

I am trying to find out how to compile and run a C# program that contains

using System.Windows.Forms
~
~
 
Old 01-13-2007, 10:09 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Look here:
http://www.mono-project.com/Windows_Forms
 
Old 01-16-2007, 05:28 PM   #3
landonmkelsey
Member
 
Registered: Jul 2001
Location: Texas
Distribution: Fedora 16
Posts: 323

Original Poster
Rep: Reputation: 37
success compiling and running Windows.Forms

Is this the same paul?
http://www.all-the-johnsons.co.uk/mo...ompiling.shtml

[root@localhost C#]# !gmcs
gmcs Form1.cs -r:System.Windows.Forms -r:System.Drawing -r:System.Data
[root@localhost C#]#

and then
>mono Form1.exe

gave up the dialog created in MS VS 2005

What fun!!!!

Form1.resx not even used!

Now to find what there might be as far as development!

I'm looking for a SDE/SDK that allows one to do what Designer does in Qt

or Visual Studio does in MS!

I understand some Rawhide version of mono is being added to FC5 and then FC6???

yum update just updated my mono stuff!
 
Old 06-08-2007, 05:45 PM   #4
landonmkelsey
Member
 
Registered: Jul 2001
Location: Texas
Distribution: Fedora 16
Posts: 323

Original Poster
Rep: Reputation: 37
mono people...do not go here

http://www.all-the-johnsons.co.uk/mo...ompiling.shtml

FC7 has everything you need

KDE2-> system->add/remove software

add in appropriate mono- files and monodevelop
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
configure: error: Can't find "javac" in your PATH, when install/compile a program... JungMin Programming 5 12-07-2005 05:04 PM
configure: error: Can't find "javac" in your PATH, when install/compile a program... JungMin Linux - Software 4 12-05-2005 11:20 PM
C -communicating with system("ftp"); using "program|ftp>>myfifo" probably hansschmucker Programming 1 03-23-2005 01:39 PM
system("top") in a C program giving problems when the C prg is run by cron rags2k Programming 1 09-02-2004 03:25 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration