Shortcut keys vs. mouseclick

  • Thread starter Thread starter Johnny E. Jensen
  • Start date Start date
J

Johnny E. Jensen

Hello

I've developen an MDI application using C# in VS2005
In my menu toolstrip i have the toplevel menuitems text starting with the;
&File, &Admin to be able to use the ALT + KEYSTROKE.
When I use the Alt+A to pull down the dropdown menu. Then click ENTER on an
menu-item. This fires the menu.click event.
In the menu.click event i call the routine to display a form.

public static void DisplayUsers()
{
frmUser = new formUsers();
frmUser.MDIParent = Program.Workspace <- (the MDIForm)
frmUser.Show();
DataSet ds = BusinessLayer.Users.GetAll(); <- Just fetches all users
within a dataset
frmUser.SetDatasource(ds, ds.tables[0].TableName);
}

When i Click on the Menu Admin/Users with the mouse all works OK. but when i
uses the keyboard (Alt+A) + ENTER on the users menu item, something goes
wrong within the SetDatasource on the users form???

Is there something I have to programme to be able to use keyboard strokes in
stead of the Mouse.

Kind regards
Johnny E. Jensen
 
Hello

I've developen an MDI application using C# in VS2005
In my menu toolstrip i have the toplevel menuitems text starting with the;
&File, &Admin to be able to use the ALT + KEYSTROKE.
When I use the Alt+A to pull down the dropdown menu. Then click ENTER on an
menu-item. This fires the menu.click event.
In the menu.click event i call the routine to display a form.

public static void DisplayUsers()
{
frmUser = new formUsers();
frmUser.MDIParent = Program.Workspace <- (the MDIForm)
frmUser.Show();
DataSet ds = BusinessLayer.Users.GetAll(); <- Just fetches all users
within a dataset
frmUser.SetDatasource(ds, ds.tables[0].TableName);

}

When i Click on the Menu Admin/Users with the mouse all works OK. but when i
uses the keyboard (Alt+A) + ENTER on the users menu item, something goes
wrong within the SetDatasource on the users form???

Is there something I have to programme to be able to use keyboard strokes in
stead of the Mouse.

Kind regards
Johnny E. Jensen

hi johny,

According to me there is no need to use keyboard storkes
instead of mouse. can u plz describe which error u got? and if
possible can u plz be more specific with your problem?

With regards
Manan
 
Back
Top