Click here to Skip to main content
15,911,132 members
Home / Discussions / C#
   

C#

 
AnswerRe: NumericUpDown + Button + PaintEvent Q2. Pin
Curtis Schlak.26-Nov-05 9:36
Curtis Schlak.26-Nov-05 9:36 
QuestionConvert string to int Pin
Myglaren26-Nov-05 7:47
Myglaren26-Nov-05 7:47 
AnswerRe: Convert string to int Pin
Guffa26-Nov-05 8:44
Guffa26-Nov-05 8:44 
GeneralRe: Convert string to int Pin
Myglaren26-Nov-05 12:03
Myglaren26-Nov-05 12:03 
GeneralRe: Convert string to int Pin
Guffa27-Nov-05 0:43
Guffa27-Nov-05 0:43 
AnswerRe: Convert string to int Pin
Curtis Schlak.26-Nov-05 10:21
Curtis Schlak.26-Nov-05 10:21 
QuestionIdentify caller of a function Pin
User 665826-Nov-05 7:45
User 665826-Nov-05 7:45 
AnswerRe: Identify caller of a function Pin
Curtis Schlak.26-Nov-05 9:33
Curtis Schlak.26-Nov-05 9:33 
You're right about the GetHashCode function. It should be unique for each instance of a class, not across the application.

If you have control over the classes that use the MapKey function, you could define an interface with a method and implement that across the classes that can use MapKey.

For example, define
public interface IIdentifiable
{
  int GetWhoThisIs();
}
Now, change your method's function to
public void MapKey( Key key, KeyEvent state, ButtonAction action, IIdentifiable who )
Finally, add IIdentifiable to your class' definitions, implementing a universal identifier system.

"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
GeneralRe: Identify caller of a function Pin
User 665826-Nov-05 13:27
User 665826-Nov-05 13:27 
AnswerRe: Identify caller of a function Pin
leppie26-Nov-05 22:50
leppie26-Nov-05 22:50 
GeneralRe: Identify caller of a function Pin
User 665827-Nov-05 6:01
User 665827-Nov-05 6:01 
QuestionUnable to see underlined shorcuts in main menu Pin
TheBlindWatchmaker26-Nov-05 7:38
TheBlindWatchmaker26-Nov-05 7:38 
AnswerRe: Unable to see underlined shorcuts in main menu Pin
Dave Kreskowiak26-Nov-05 8:19
mveDave Kreskowiak26-Nov-05 8:19 
GeneralRe: Unable to see underlined shorcuts in main menu Pin
TheBlindWatchmaker26-Nov-05 8:32
TheBlindWatchmaker26-Nov-05 8:32 
Questionproperties vs public fields Pin
hypermegachi26-Nov-05 7:04
hypermegachi26-Nov-05 7:04 
AnswerRe: properties vs public fields Pin
Colin Angus Mackay26-Nov-05 7:23
Colin Angus Mackay26-Nov-05 7:23 
GeneralRe: properties vs public fields Pin
hypermegachi26-Nov-05 12:13
hypermegachi26-Nov-05 12:13 
GeneralRe: properties vs public fields Pin
Colin Angus Mackay26-Nov-05 13:53
Colin Angus Mackay26-Nov-05 13:53 
GeneralRe: properties vs public fields Pin
hypermegachi27-Nov-05 6:43
hypermegachi27-Nov-05 6:43 
GeneralRe: properties vs public fields Pin
Colin Angus Mackay27-Nov-05 13:24
Colin Angus Mackay27-Nov-05 13:24 
GeneralRe: properties vs public fields Pin
hypermegachi27-Nov-05 16:53
hypermegachi27-Nov-05 16:53 
GeneralRe: properties vs public fields Pin
Colin Angus Mackay27-Nov-05 20:26
Colin Angus Mackay27-Nov-05 20:26 
GeneralRe: properties vs public fields Pin
hypermegachi28-Nov-05 3:58
hypermegachi28-Nov-05 3:58 
QuestionUrgent:Marshalling BSTR* Pin
rana7426-Nov-05 6:23
rana7426-Nov-05 6:23 
QuestionISR in C# Pin
mostafa.hk26-Nov-05 5:21
mostafa.hk26-Nov-05 5:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.