Re: Porting Visual Studio Created WinForms Applications C#

Marcel Burger <[email protected]> Wed, 29 Jul 2015 10:22:36 +0200
Newsgroups gmane.comp.gnome.winforms
Message-ID <CAK8X-JOxzYmCc2nhkxLQUimkVmMSwCM108GCSLobxFzZ+qWaDA@mail.gmail.com>
--===============1587799870==
Content-Type: multipart/alternative; boundary=047d7b2e1465140335051bff4a30

--047d7b2e1465140335051bff4a30
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi,

Is there a way I can contribute to this project?

I do like working with Winforms, and now that you told me it's a community
based project, I admire the effort alot !

Until now, every functionality seems to work flawlessly. It's mainly a
matter of knowing which librareis you can/can't use and which controls and
their properties to use and how to manipulate the controls so they work on
multiple OSses.

Kind regards,

Marcel Burger

On Wed, Jul 29, 2015 at 9:50 AM, <[email protected]> wrote:

> Hi,
>
> "I'm hoping that future mono updates wil solve these graphical issues
> automagically, so the software works and looks as stunning as it does on =
a
> windows system :-)"
>
> For your information, the WinForms project is only maintained by the
> community, so such a project would have to come from us. Xamarin won't do
> it.
>
> "If not, I guess, HTML5 instead of WinForm will be a nice GUI replacement
> :-)"
>
> There's also XWT (but still no designer): https://github.com/mono/xwt
>
> ----- Mail original -----
> De: "Marcel Burger" <[email protected]>
> =C3=80: "Stifu" <[email protected]>
> Cc: [email protected]
> Envoy=C3=A9: Mercredi 29 Juillet 2015 09:37:27
> Objet: Re: [Mono-winforms-list] Porting Visual Studio Created WinForms
> Applications C#
>
>
> Hello Peter,
>
>
> Currently I'm also building a multi platform desktop application.
> I develop with VS, import it in a virtual Linux Mint via Git and build it
> with Monodevelop.
>
>
> I use Monodevelop and Google to fix the list of build failures Monodevelo=
p
> comes up with.
> Besides that I try to use as little Dependencies as I can and only use
> Libraries which are crossplatform.
>
>
> So, 1 codebase -> several deployments.
>
>
> Personally I don't mind the Designer files VS creates, since these files
> only initiate and set the properties of the controls you create when you
> use the visual designer is VS.
>
> The .resx files (also) contain the images you use in your application
> (b.t.w. I've noticed that it's better to avoid using Icon files but inste=
ad
> use png files and convert them to ico via code).
>
>
> Monodevelop doesn't have a WinForm designer so you will be creating (some
> sort of) Designer files yourself anyway to initiatie and set the controls
> you need.
>
>
> I have noticed that some Control properties set in VS don't act like they
> should in Monodevelop, many of which have been submitted as bugs.
> In many cases initiating those Controls and setting the properties
> yourself (via code instead of using the Visual Designer) solve the proble=
ms
> (but not all of them, some properties simply don't work so I choose to
> ommit them instead of creating hacks around them ...).
>
>
> So you can also stick to develop a winform app without a Visual Designer =
;)
>
>
> Keep in mind that you will have some issues regarding:
> - visual refreshing on Unix systems (controls simply won't refresh
> themselve like they do on Windows, so sometimes you don't see the control=
s
> at all, which looks pretty awful. I see it in more applications on Unix
> systems ...)
> - The controls used via Monodevelop are based on winXP which make them
> look a buit outdated
> - Some controls used via Monodevelop have different base (not mutable)
> properties then WIndows, which leads to different spacing requirements ..=
.
> (e.g. ComboBox).
>
>
> Since I only have the requirement that the software should work on Unix
> and that the graphical issues are not that important, I stick with my
> current development strategy.
>
>
>
> I think it's very cool that I only have to write the code once and deploy
> it on different OSses, but the graphical experience is a bit dissapointin=
g.
>
>
> I'm hoping that future mono updates wil solve these graphical issues
> automagically, so the software works and looks as stunning as it does on =
a
> windows system :-)
>
>
> I don't mind helping out in that area ;)
>
>
> If not, I guess, HTML5 instead of WinForm will be a nice GUI replacement
> :-)
>
>
> cheers,
>
>
> Marcel Burger
>
>
> On Tue, Jul 28, 2015 at 5:23 PM, Stifu < [email protected] > wrote:
>
>
> Hi,
>
> MonoDevelop and Xamarin Studio don't have a WinForms designer, so you'd
> better stick with Visual Studio. I admit I'm not really up to date on thi=
s,
> but there must be VS plugins to run your app with Mono from the IDE. I've
> found the MonoDebugger project ( http://www.monodebugger.net/ ), but it
> seems
> it's still not available. Maybe Xamarin for Visual Studio does what you
> want
> ( http://xamarin.com/visual-studio ), but I'm not sure, since it's
> actually
> specialized in mobile development.
>
> Note you could also just build your app with VS then manually test it on
> Mono on all the targeted platforms. It's not ideal, but it's what I do
> (except I use SharpDevelop).
>
>
> jonesypeter wrote
> > Hello,
> >
> > I wonder if I could ask a very simplistic question. I have searched for
> > an answer before posting.
> >
> > I have created a very simple WinForms applications and created the .exe
> > and checked that this runs with Mono as well and it all went fine.
> >
> > If I want to build this application directly with Mono how do I do this=
,
> > because Visual Studio creates a large list of files including
> > Form1.Designer.cs, Form1.resz. and Program.cs
> >
> > Thanks
> >
> > Peter Jones
>
>
>
>
>
> --
> View this message in context:
> http://mono.1490590.n4.nabble.com/Porting-Visual-Studio-Created-WinForms-=
Applications-C-tp4666376p4666385.html
> Sent from the Mono - WinForms mailing list archive at Nabble.com.
> _______________________________________________
> Mono-winforms-list maillist - [email protected]
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>

--047d7b2e1465140335051bff4a30
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi,<div><br></div><div>Is there a way I can contribute to =
this project?</div><div><br></div><div>I do like working with Winforms, and=
 now that you told me it&#39;s a community based project, I admire the effo=
rt alot !</div><div><br></div><div>Until now, every functionality seems to =
work flawlessly. It&#39;s mainly a matter of knowing which librareis you ca=
n/can&#39;t use and which controls and their properties to use and how to m=
anipulate the controls so they work on multiple OSses.</div><div><br></div>=
<div>Kind regards,</div><div><br></div><div>Marcel Burger</div></div><div c=
lass=3D"gmail_extra"><br><div class=3D"gmail_quote">On Wed, Jul 29, 2015 at=
 9:50 AM,  <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=3D=
"_blank">[email protected]</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_=
quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1=
ex">Hi,<br>
<span class=3D""><br>
&quot;I&#39;m hoping that future mono updates wil solve these graphical iss=
ues automagically, so the software works and looks as stunning as it does o=
n a windows system :-)&quot;<br>
<br>
</span>For your information, the WinForms project is only maintained by the=
 community, so such a project would have to come from us. Xamarin won&#39;t=
 do it.<br>
<span class=3D""><br>
&quot;If not, I guess, HTML5 instead of WinForm will be a nice GUI replacem=
ent :-)&quot;<br>
<br>
</span>There&#39;s also XWT (but still no designer): <a href=3D"https://git=
hub.com/mono/xwt" rel=3D"noreferrer" target=3D"_blank">https://github.com/m=
ono/xwt</a><br>
<br>
----- Mail original -----<br>
De: &quot;Marcel Burger&quot; &lt;<a href=3D"mailto:[email protected]=
">[email protected]</a>&gt;<br>
=C3=80: &quot;Stifu&quot; &lt;<a href=3D"mailto:[email protected]">[email protected]=
r</a>&gt;<br>
Cc: <a href=3D"mailto:[email protected]">mono-winforms-li=
[email protected]</a><br>
Envoy=C3=A9: Mercredi 29 Juillet 2015 09:37:27<br>
Objet: Re: [Mono-winforms-list] Porting Visual Studio Created WinForms Appl=
ications C#<br>
<div><div class=3D"h5"><br>
<br>
Hello Peter,<br>
<br>
<br>
Currently I&#39;m also building a multi platform desktop application.<br>
I develop with VS, import it in a virtual Linux Mint via Git and build it w=
ith Monodevelop.<br>
<br>
<br>
I use Monodevelop and Google to fix the list of build failures Monodevelop =
comes up with.<br>
Besides that I try to use as little Dependencies as I can and only use Libr=
aries which are crossplatform.<br>
<br>
<br>
So, 1 codebase -&gt; several deployments.<br>
<br>
<br>
Personally I don&#39;t mind the Designer files VS creates, since these file=
s only initiate and set the properties of the controls you create when you =
use the visual designer is VS.<br>
<br>
The .resx files (also) contain the images you use in your application (b.t.=
w. I&#39;ve noticed that it&#39;s better to avoid using Icon files but inst=
ead use png files and convert them to ico via code).<br>
<br>
<br>
Monodevelop doesn&#39;t have a WinForm designer so you will be creating (so=
me sort of) Designer files yourself anyway to initiatie and set the control=
s you need.<br>
<br>
<br>
I have noticed that some Control properties set in VS don&#39;t act like th=
ey should in Monodevelop, many of which have been submitted as bugs.<br>
In many cases initiating those Controls and setting the properties yourself=
 (via code instead of using the Visual Designer) solve the problems (but no=
t all of them, some properties simply don&#39;t work so I choose to ommit t=
hem instead of creating hacks around them ...).<br>
<br>
<br>
So you can also stick to develop a winform app without a Visual Designer ;)=
<br>
<br>
<br>
Keep in mind that you will have some issues regarding:<br>
- visual refreshing on Unix systems (controls simply won&#39;t refresh them=
selve like they do on Windows, so sometimes you don&#39;t see the controls =
at all, which looks pretty awful. I see it in more applications on Unix sys=
tems ...)<br>
- The controls used via Monodevelop are based on winXP which make them look=
 a buit outdated<br>
- Some controls used via Monodevelop have different base (not mutable) prop=
erties then WIndows, which leads to different spacing requirements ... (e.g=
. ComboBox).<br>
<br>
<br>
Since I only have the requirement that the software should work on Unix and=
 that the graphical issues are not that important, I stick with my current =
development strategy.<br>
<br>
<br>
<br>
I think it&#39;s very cool that I only have to write the code once and depl=
oy it on different OSses, but the graphical experience is a bit dissapointi=
ng.<br>
<br>
<br>
I&#39;m hoping that future mono updates wil solve these graphical issues au=
tomagically, so the software works and looks as stunning as it does on a wi=
ndows system :-)<br>
<br>
<br>
I don&#39;t mind helping out in that area ;)<br>
<br>
<br>
If not, I guess, HTML5 instead of WinForm will be a nice GUI replacement :-=
)<br>
<br>
<br>
cheers,<br>
<br>
<br>
Marcel Burger<br>
<br>
<br>
On Tue, Jul 28, 2015 at 5:23 PM, Stifu &lt; <a href=3D"mailto:[email protected]=
">[email protected]</a> &gt; wrote:<br>
<br>
<br>
Hi,<br>
<br>
MonoDevelop and Xamarin Studio don&#39;t have a WinForms designer, so you&#=
39;d<br>
better stick with Visual Studio. I admit I&#39;m not really up to date on t=
his,<br>
but there must be VS plugins to run your app with Mono from the IDE. I&#39;=
ve<br>
</div></div>found the MonoDebugger project ( <a href=3D"http://www.monodebu=
gger.net/" rel=3D"noreferrer" target=3D"_blank">http://www.monodebugger.net=
/</a> ), but it seems<br>
<span class=3D"">it&#39;s still not available. Maybe Xamarin for Visual Stu=
dio does what you want<br>
</span>( <a href=3D"http://xamarin.com/visual-studio" rel=3D"noreferrer" ta=
rget=3D"_blank">http://xamarin.com/visual-studio</a> ), but I&#39;m not sur=
e, since it&#39;s actually<br>
<div class=3D"HOEnZb"><div class=3D"h5">specialized in mobile development.<=
br>
<br>
Note you could also just build your app with VS then manually test it on<br=
>
Mono on all the targeted platforms. It&#39;s not ideal, but it&#39;s what I=
 do<br>
(except I use SharpDevelop).<br>
<br>
<br>
jonesypeter wrote<br>
&gt; Hello,<br>
&gt;<br>
&gt; I wonder if I could ask a very simplistic question. I have searched fo=
r<br>
&gt; an answer before posting.<br>
&gt;<br>
&gt; I have created a very simple WinForms applications and created the .ex=
e<br>
&gt; and checked that this runs with Mono as well and it all went fine.<br>
&gt;<br>
&gt; If I want to build this application directly with Mono how do I do thi=
s,<br>
&gt; because Visual Studio creates a large list of files including<br>
&gt; Form1.Designer.cs, Form1.resz. and Program.cs<br>
&gt;<br>
&gt; Thanks<br>
&gt;<br>
&gt; Peter Jones<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href=3D"http://mono.1490590.n4.nabble.com/=
Porting-Visual-Studio-Created-WinForms-Applications-C-tp4666376p4666385.htm=
l" rel=3D"noreferrer" target=3D"_blank">http://mono.1490590.n4.nabble.com/P=
orting-Visual-Studio-Created-WinForms-Applications-C-tp4666376p4666385.html=
</a><br>
Sent from the Mono - WinForms mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Mono-winforms-list maillist - <a href=3D"mailto:[email protected]=
mian.com">[email protected]</a><br>
<a href=3D"http://lists.ximian.com/mailman/listinfo/mono-winforms-list" rel=
=3D"noreferrer" target=3D"_blank">http://lists.ximian.com/mailman/listinfo/=
mono-winforms-list</a><br>
</div></div></blockquote></div><br></div>

--047d7b2e1465140335051bff4a30--

--===============1587799870==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

--===============1587799870==--