VB Code:
  1. public class form
  2.     {
  3.         public form()
  4.         {
  5.  
  6.         }
  7.  
  8.         public static void showform(string name,
  9.             Form child,
  10.             frmmain parent)
  11.         {
  12.             foreach(Form t in parent.MdiChildren)
  13.                 if (t.Name == name)
  14.                 {
  15.                     t.Activate();
  16.                     t.WindowState = parent.ChildWindowState;
  17.                     return;
  18.                 }
  19.             child.MdiParent = parent;
  20.             child.WindowState = parent.ChildWindowState;
  21.             child.Show();
  22.         }
  23.     }
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.

I want to know what cause this. Any help? Thanks.