Click here to Skip to main content
15,887,413 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I'm porting a Windows Form C# application in Linux using mono.
I'm solving a lot of problem but now i don't know what i have to do.

I can't use User Control on linux.

I used many user control as container with some control
(each User Control is a button bar with some big button)
that i display when i need.

When i execute the application on linux not work.

all my User Control (container) become transparent..
if i move the mouse i see that there is a button because the mouse cursor change and answer to click but it's trasnparent...


any solution?


SOLUTION
The problem was not in User Controls but in their function paint override.
I created an override that did set some parameters of control (size of text, syle of text) and then drew the base paint
C#
public override paint(..)
...instruction...
base.paint()..


and this created problems.
Now i removed all instruction and it work.
to me this is enough . any changes to the control do otherwise.
Posted
Updated 1-Dec-15 21:38pm
v3
Comments
Sergey Alexandrovich Kryukov 24-Nov-15 14:28pm    
There could be millions of reasons. Sorry, but my access to your hard drive is somewhat limited these days.
—SA
maurodefilippis 25-Nov-15 3:29am    
Very nice. my first question is whether there are limitations on the "User Control" in mono as with other classes that simply are not supported .

I know I was very generic but do not understand where is the problem and I wanted to start by excluding incompatibility ... if you tell me that the "User control" are properly supported now I will try to add more information .Thank
Sergey Alexandrovich Kryukov 25-Nov-15 9:34am    
I never heard of such limitations. Have you done the simplest thing: prototype if? Create a working application with a user control on Windows, make is as simple as possible, reliable like a rock. Then you can run it on Mono, without recompilation. You can start with Mono on Windows, it usually makes no difference...
—SA
ZurdoDev 1-Dec-15 15:20pm    
If this is solved, please post a solution so that it no longer shows in the Unanswered list.
maurodefilippis 2-Dec-15 3:40am    
now !. I did not know I could do

1 solution

SOLUTION
The problem was not in User Controls but in their function paint override.
I created an override that did set some parameters of control (size of text, syle of text) and then drew the base paint


public override paint(..)
...instruction...
base.paint()..


and this created problems.
Now i removed all instruction and it work.
to me this is enough . any changes to the control do otherwise.
 
Share this answer
 
Comments
phil.o 2-Dec-15 3:46am    
Thanks for sharing your solution.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900