[Mono-list] Windows.Forms/Local mono installation on Ubuntu/Xserver freezes

Wiktor Grębla greblus at gmail.com
Tue Aug 22 11:00:59 EDT 2006


I'm playing with Windows.Forms on Mono ( locally installed in 
$HOME) and I've two problems (max. three).

First, general question about Form Layout. I found Anchor and Dock 
properties unwilling to do it's job (ok, to be honest, i got bored after 
  half an hour of compulsive trying) as described in the SDK's docs, so 
I did it using Location and ClientSize, but I hate it :) Later I tried
TableLayoutPanel but not everything seemed to work (columns spanning).

And here's my question, could you show me some more advanced layout 
examples (working on mono)?

Here's my really simple first MWF app:


source is here:


I'd be happy if somebody could show me the right way to do a nice layout 
(with Gtk it's so easy and logical, but here I'm a bit lost).

Next problem is something really strange. When I expand treeview's nodes 
my Xserver freezes. I guess it's a problem with binary Nvidia's driver, 
but it may also be related to the fact that I've installed mono in 
$HOME/local directory using graphical installer. The problem with it is 
that some libraries in Ubuntu have different names, and in order to get 
for example OpenFileDialog to work I had to link a few things:

ln -s /usr/lib/libgdk-x11-2.0.so.0.800.20 
ln -s /usr/lib/librsvg-2.so.2.14.4 
ln -s /usr/lib/libglib-2.0.so.0.1000.3 
ln -s /usr/lib/libgobject-2.0.so.0.1000.3 
ln -s /usr/lib/libgobject-2.0.so.0.1000.3 

Usually I set a few variables like this:

export MOZILLA_FIVE_HOME="/usr/lib/firefox"
export PATH="/home/greblus/local/mono-$PATH"
export MANPATH="/home/greblus/local/mono-$MANPATH"
export MONO_THEME=clearlooks

and I can enjoy newer (latest) mono builds, but is it possible that this 
is the reason why my Xserver crashes?

Ok, no more questions.


Talkers are no good doers.

More information about the Mono-list mailing list