Click here to Skip to main content
16,012,759 members
Home / Discussions / C#
   

C#

 
GeneralKeyboard key pressed Pin
BLaZiNiX11-Jun-02 13:27
BLaZiNiX11-Jun-02 13:27 
GeneralRe: Keyboard key pressed Pin
Nick Parker11-Jun-02 17:59
protectorNick Parker11-Jun-02 17:59 
GeneralRe: Keyboard key pressed Pin
BLaZiNiX12-Jun-02 15:20
BLaZiNiX12-Jun-02 15:20 
GeneralRe: Keyboard key pressed Pin
James T. Johnson12-Jun-02 15:58
James T. Johnson12-Jun-02 15:58 
GeneralRe: Keyboard key pressed Pin
BLaZiNiX12-Jun-02 18:02
BLaZiNiX12-Jun-02 18:02 
GeneralRe: Keyboard key pressed Pin
Nick Parker13-Jun-02 2:33
protectorNick Parker13-Jun-02 2:33 
Generalclient connection class Pin
11-Jun-02 11:51
suss11-Jun-02 11:51 
GeneralRe: client connection class Pin
James T. Johnson11-Jun-02 12:24
James T. Johnson11-Jun-02 12:24 
You don't.... The variable name is just a name for the programmer to reference.

I would create a Hashtable and use the name as the key; storing the relevant connectedClient instance in the table.

Hashtable clients = new Hashtable();
  
CreateNewClient(string name)
{
  connectedClient c = new connectedClient();
  // do stuff to setup client
 
  clients[name] = c;
}
 
connectedClient GetClient(string name)
{
  return (clients[name] as connectedClient);
}
HTH,

James
GeneralRegular DLLs Pin
Hugo Hallman11-Jun-02 11:38
Hugo Hallman11-Jun-02 11:38 
GeneralRe: Regular DLLs Pin
James T. Johnson11-Jun-02 12:21
James T. Johnson11-Jun-02 12:21 
GeneralKey presses in WinForms Pin
Brian Olej11-Jun-02 9:53
Brian Olej11-Jun-02 9:53 
GeneralRe: Key presses in WinForms Pin
Mazdak11-Jun-02 11:03
Mazdak11-Jun-02 11:03 
GeneralRe: Key presses in WinForms Pin
Brian Olej11-Jun-02 11:46
Brian Olej11-Jun-02 11:46 
GeneralRe: Key presses in WinForms Pin
Rüpel18-Jun-02 0:39
Rüpel18-Jun-02 0:39 
QuestionNow to acess toolbar or statusbar in the crystalreportviewer ? Pin
11-Jun-02 9:22
suss11-Jun-02 9:22 
GeneralSTM_SETIMAGE Pin
vikramlinux11-Jun-02 4:40
vikramlinux11-Jun-02 4:40 
GeneralRe: STM_SETIMAGE Pin
James T. Johnson11-Jun-02 9:17
James T. Johnson11-Jun-02 9:17 
GeneralRe: STM_SETIMAGE Pin
vikramlinux11-Jun-02 19:17
vikramlinux11-Jun-02 19:17 
GeneralRe: STM_SETIMAGE Pin
James T. Johnson11-Jun-02 19:17
James T. Johnson11-Jun-02 19:17 
GeneralRe: STM_SETIMAGE Pin
vikramlinux11-Jun-02 20:08
vikramlinux11-Jun-02 20:08 
GeneralWM_COMMAND Pin
vikramlinux11-Jun-02 4:22
vikramlinux11-Jun-02 4:22 
GeneralRe: WM_COMMAND Pin
Rickard Andersson2011-Jun-02 8:46
Rickard Andersson2011-Jun-02 8:46 
GeneralIMessageFilter.PreFilterMessage Pin
Wizard_0110-Jun-02 23:32
Wizard_0110-Jun-02 23:32 
GeneralRe: IMessageFilter.PreFilterMessage Pin
Rama Krishna Vavilala11-Jun-02 3:20
Rama Krishna Vavilala11-Jun-02 3:20 
GeneralRe: IMessageFilter.PreFilterMessage Pin
Wizard_0111-Jun-02 3:38
Wizard_0111-Jun-02 3:38 

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.