Hi Rai,
Good day. According to your solution, i have to checkup each and every ShortCut key in my code with "if" structure Or with "Switch" statement.This is a big task, because there are about 100 Sortcuts available (Predefined). This is the only solution ?
My task is, i am having a DB table with column "HotKey" of "String" type in MS-SQL Server. And "HotKey" column values are like "CtrlF" etc...I am getting values dynamically from database & assinging it to MenuItems as
MenuItem1.Shortcut = "<DB Column Value>".
It is giving error stating that the string type can't be converted to Shortcut type.
Glad if you could help.
Cheers,
Kishore
greetings and salutations,
I am not sure if you need help converting the string to a shortcut or assigning the shortcut to the menuitem, but I can help you with the latter.
if(stringTableEntry == "CtrlF")
{
MenuItem.Shortcut = Shortcut.CtrlF;
}
rai_net