menustrip

andi ari <[email protected]>
Newsgroups gmane.comp.gnome.winforms
Message-ID <[email protected]>
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  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
Screenshot-Submenu.png (image/png, 4 KB) - not displayed
submenu.png (image/png, 7.3 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.