With Mono 2.4/2.6/trunk it's working fine. Please update. Carlos.
2009/12/14 andi ari <twentyfirsta...@gmail.com> > Hi All, > My name is Andi. Im a newbie > it tried to run some lines of c# code using monodevelp on Ubuntu 8.10. Here > are the codes > > using System; > using System.Drawing; > using System.Windows.Forms; > > class MForm : Form { > > public MForm() { > Text = "Submenu"; > > MenuStrip ms = new MenuStrip(); > ms.Parent = this; > > ToolStripMenuItem file = new ToolStripMenuItem("&File"); > > ToolStripMenuItem exit = new ToolStripMenuItem("&Exit", null, > new EventHandler(OnExit)); > > ToolStripMenuItem import = new ToolStripMenuItem(); > import.Text = "Import"; > > file.DropDownItems.Add(import); > > ToolStripMenuItem temp = new ToolStripMenuItem(); > temp.Text = "Import newsfeed list..."; > import.DropDownItems.Add(temp); > > temp = new ToolStripMenuItem(); > > temp.Text = "Import bookmarks..."; > import.DropDownItems.Add(temp); > > temp = new ToolStripMenuItem(); > temp.Text = "Import mail..."; > import.DropDownItems.Add(temp); > > file.DropDownItems.Add(exit); > > ms.Items.Add(file); > MainMenuStrip = ms; > Size = new Size(380, 200); > > CenterToScreen(); > } > > void OnExit(object sender, EventArgs e) { > > Close(); > } > } > > class MApplication { > public static void Main() { > Application.Run(new MForm()); > } > } > > > The result should appear like this: > [image: > ?ui=2&view=att&th=1258c0e8656b53f6&attid=0.1&disp=attd&realattid=ii_1258c0e8656b53f6&zw] > but in my machine the result didn't appear as it should be. here is the > result of the code in my machine : > [image: > ?ui=2&view=att&th=1258c10c352b0e0c&attid=0.1&disp=attd&realattid=ii_1258c10c352b0e0c&zw] > it seems that there is trouble with the font. how do I solve this problem? > > > > > > > > _______________________________________________ > Mono-winforms-list maillist - Mono-winforms-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-winforms-list > >
<<Screenshot-Submenu.png>>
<<submenu.png>>
_______________________________________________ Mono-winforms-list maillist - Mono-winforms-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-winforms-list