I have 3 or more forms in my windows application where each of the form has button panel- contains one or more buttons and button names are listed like
and so on
Basically a,b,c,x,y,z,m are urls(or form names- or functin names)
when user inside form1 and if they press key -1 then it should transfer them to url (or form) 'a'.
I would like to write a common function which would work for all the forms -buttons. button count will vary
I am new to c# and have no idea how to implement this.