I'm getting, Error 1 Inconsistent accessibility: parameter type 'lguis_0_1_0.frmmain' is less accessible than method 'lguis_0_1_0.awt.form.showform(string, System.Windows.Forms.Form, lguis_0_1_0.frmmain)' F:\ni 2005\lguis_0_1_0\lguis_0_1_0\awt\form.cs 20 27 . This code works fine on 2k2 but got this error message here on beta 2k5.VB Code:
public class form { public form() { } public static void showform(string name, Form child, frmmain parent) { foreach(Form t in parent.MdiChildren) if (t.Name == name) { t.Activate(); t.WindowState = parent.ChildWindowState; return; } child.MdiParent = parent; child.WindowState = parent.ChildWindowState; child.Show(); } }
I want to know what cause this. Any help? Thanks.
