C# WinForms on Linux (using Monoppix)

Well, We are just about to release monoppix V1.1.8. The main feature of V1.1.8 (which is based on mono V1.1.8 ) is the ability to run native C# System.Windows.Forms code without using "Wine" on Linux.

Here are some examples of winforms (and controls) compiled on VS2003 and running on our soon to be released Monoppix V1.1.8:
I've started with the basic TreeView and Tabs , Than I threw in some basic controls such as check boxes, multiple selection list box, a date picker and some group boxes.
I compiled the project and this is the result I got on WinXP

I took the exe file to Monoppix , ran 'mono winforms2.exe' and got the following

As you can see most of the controls work ok.

Than I tried to select a new date
This is the way it should look..



And this is what i got in Monoppix, Not sure if this is a Mono or Monoppix or my code bug, but the
Calendar pick date window didn't open and the date line became disabled


Next is a Data Grid , clicked on the data tab, hit the Load button. This is the WinXP results window



And on Monoppix it looks ok as well.



The last control I tried to demo is the picture box (and some radio buttons with events..)
in WinXP



and the monopix  version..

So overall the end result is quite good , Mono's V1.1.8 implemented most of the Winforms controls , they work ok and similar in look and feel . Because of that, porting .NET windows applications to Linux  should be really easy , Just work on VS2003, compile and run it on Linux using Mono. There is one control that's missing which I would like to see soon and that's the RichText  box, currently it throws out a not implemented type of exception . I think that this control is critical due to the fact that a lot of WinForms applications use it and thus its absence prevents a lot of good winforms applications being runnable on linux as well.

Final words, Monoppix V1.1.8 is about to be released in the next few days (Track this blog or go to www.monoppix.com for the release announcement) . Hopefully, it would help VS2003/WinXP Winforms developers  check how their solution would look like on Linux and open their minds about running their applications on non MS platfors,.

Like to hear some comments on this or if you know of a small C# winforms open source application that would be nice to see working on Linux that I can test.
Click here if you want to download the demo application presented above.

Roiy

 

Published Friday, August 19, 2005 11:35 PM by dotgrid

Filed under: ,

Comments

# re: C# WinForms on Linux (using Monoppix)@ Sunday, August 21, 2005 10:56 PM

Didn't even know that WinForms were possible on Linux, only ASP.NET. But this sure does look cool!

It probably won't happen fast, but when clients use Linux a lot, this is definitly a possibility when you develop a smart-client app where the data-tier is running on a Windows client, for example. You might even consider running everything completely on Linux, when they've got all Linux servers for example. Although SQL-Server and Linux might become a problem pretty quick ;)

Dennis van der Stelt

# re: C# WinForms on Linux (using Monoppix)@ Monday, August 22, 2005 5:41 AM

They should have used the Gnome desktop. The KDE is really awfull :)

I thought they had ceased to extend the WinForm framework because it was too tightly coupled with normal Windows behaviour.

And about the richtextbox.. I have never used it in my own applications.

SQL server is just overkill for most applications. Besides that... ever used db4o? Much easier to work especially in application environments that have small datasets.

Ramon Smits

# re: C# WinForms on Linux (using Monoppix)@ Tuesday, August 23, 2005 3:22 AM

Small datasets? In db4o? You probably do not mean System.Data.DataSet?! :D

I haven't used db4o (yet), might be worth to take a look though.

Dennis van der Stelt

# re: C# WinForms on Linux (using Monoppix)@ Tuesday, August 23, 2005 3:23 AM

By the way, would you use db4o in applications you build for clients? I mean, if you find something that disables you from going on, you're totally fucked for choosing that option.

Dennis van der Stelt

# Windows Forms on Linux@ Wednesday, August 24, 2005 12:23 AM

Bite my bytes

# Windows Forms on Linux@ Wednesday, August 24, 2005 12:58 AM

Bite my bytes

# re: C# WinForms on Linux (using Monoppix)@ Sunday, April 27, 2008 6:17 AM

zJ287U  <a href="gmmbldscpypu.com/.../a>, [url=http://wmkhyqoptmyu.com/]wmkhyqoptmyu[/url], [link=http://lnudgmqlshgd.com/]lnudgmqlshgd[/link], http://jummnzfhilnw.com/

vvuvqfqrd

# re: C# WinForms on Linux (using Monoppix)@ Tuesday, April 29, 2008 3:23 PM

He rised. , <a href="battlecentre.net/.../member.php"">battlecentre.net/.../member.php>nude">battlecentre.net/.../member.php beach babes</a>, [url="battlecentre.net/.../member.php"">battlecentre.net/.../member.php]nude beach babes[/url], battlecentre.net/.../member.php nude beach babes,

Sillana2

# re: C# WinForms on Linux (using Monoppix)@ Sunday, June 01, 2008 5:05 AM

E7fe6o  <a href="tcfgnjfpvszg.com/.../a>, [url=http://ggsnzvlmpkfy.com/]ggsnzvlmpkfy[/url], [link=http://wqsgrtuwvrwg.com/]wqsgrtuwvrwg[/link], http://itjxrorukaku.com/

ckwhwnimiq

Leave a Comment

(required) 
(required) 
(optional)
(required)