[Mono-winforms-list] MonthCalenar Problem with Mono 2.10.6 and WinForms
baltasarq
baltasarq at gmail.com
Fri Dec 16 10:56:34 EST 2011
Hi, there!
> I created a WinForms app in Linux, thinking it would work flawlessly
> in Windows... However, it does only work right (as created) with Mono for Windows,
> not with .NET in windows. The calendar looks bad, it appears duplicated, and if you click > in the next or last arrows, then it always advances abuot four months.
It seems there are no ideas about this strange behaviour, so I will post some code:
==
// Prepare calendar
this.calCalendar = new MonthCalendar();
this.calCalendar.Dock = DockStyle.Left;
// Prepare the list of events
this.grdEventsList = new DataGridView();
this.grdEventsList.Dock = DockStyle.Fill;
// Put it together
this.pnlInfo = new Panel();
this.pnlInfo.SuspendLayout();
this.pnlInfo.Dock = DockStyle.Fill;
this.pnlInfo.Controls.Add( this.grdEventsList );
this.pnlInfo.Controls.Add( this.calCalendar );
// Add all to the UI
this.Menu = this.mMain;
this.Controls.Add( pnlInfo );
this.Controls.Add( this.stbStatus );
==
This way works on mono (both linux and windows, but it shows odd in Windows .NET)... Is anything wrong with this approach?
Thanks,
--
Baltasar (baltasarq at gmail.com http://baltasarq.info/)
More information about the Mono-winforms-list
mailing list