Click here to Skip to main content
15,893,190 members
Home / Discussions / C#
   

C#

 
GeneralRe: IDocHostUIHandler, FilterDataObject Pin
s.keller2-Feb-04 10:45
s.keller2-Feb-04 10:45 
GeneralRe: IDocHostUIHandler, FilterDataObject Pin
Heath Stewart2-Feb-04 10:50
protectorHeath Stewart2-Feb-04 10:50 
GeneralRe: IDocHostUIHandler, FilterDataObject Pin
s.keller2-Feb-04 11:02
s.keller2-Feb-04 11:02 
GeneralTextbox: Convert to float and backwards Pin
sps-itsec462-Feb-04 8:09
sps-itsec462-Feb-04 8:09 
GeneralRe: Textbox: Convert to float and backwards Pin
Charlie Williams2-Feb-04 8:37
Charlie Williams2-Feb-04 8:37 
GeneralRe: Textbox: Convert to float and backwards Pin
OmegaSupreme2-Feb-04 8:43
OmegaSupreme2-Feb-04 8:43 
GeneralRe: Textbox: Convert to float and backwards Pin
Heath Stewart2-Feb-04 9:46
protectorHeath Stewart2-Feb-04 9:46 
GeneralRe: Textbox: Convert to float and backwards Pin
OmegaSupreme2-Feb-04 9:58
OmegaSupreme2-Feb-04 9:58 
GeneralRe: Textbox: Convert to float and backwards Pin
Heath Stewart2-Feb-04 10:04
protectorHeath Stewart2-Feb-04 10:04 
GeneralRe: Textbox: Convert to float and backwards Pin
sps-itsec462-Feb-04 10:20
sps-itsec462-Feb-04 10:20 
GeneralRe: Textbox: Convert to float and backwards Pin
Heath Stewart2-Feb-04 10:26
protectorHeath Stewart2-Feb-04 10:26 
GeneralFlickering Pin
bouli2-Feb-04 7:20
bouli2-Feb-04 7:20 
GeneralRe: Flickering Pin
Heath Stewart2-Feb-04 9:43
protectorHeath Stewart2-Feb-04 9:43 
GeneralGDI+ Pin
bouli2-Feb-04 5:00
bouli2-Feb-04 5:00 
GeneralRe: GDI+ Pin
Mazdak2-Feb-04 5:17
Mazdak2-Feb-04 5:17 
GeneralRe: GDI+ Pin
bouli2-Feb-04 5:18
bouli2-Feb-04 5:18 
GeneralRe: GDI+ Pin
Mazdak2-Feb-04 5:27
Mazdak2-Feb-04 5:27 
GeneralRe: GDI+ Pin
bouli2-Feb-04 5:30
bouli2-Feb-04 5:30 
Generalpassword checking Pin
ASGill2-Feb-04 2:33
ASGill2-Feb-04 2:33 
GeneralRe: password checking Pin
Rhys__6662-Feb-04 3:04
Rhys__6662-Feb-04 3:04 
I take it all of the buttons are wired up to the same event?

If so the 'sender' variable is the textbox 'sending' the 'on_click' event. You can then cast the sender variable to a control of type 'textbox'
[code]
TetxtBox txt = (TextBox)s;
[/code]

and evaluate the id etc with either a switch/case statement as below...
[code]
switch(txt.ID)
{
case "ID1":
//Function to check password 1
break;
case "ID2":
//Function to check password 2
break;
case "ID3":
//Function to check password 3
break;
case "ID4":
//Function to check password 4
break;
default:
//Default password failure?
break;
}
[/code]

...or with an If Else statement, that would be up to you. Of course you're password checking could be all nicely wrapped up in it's own class etc.

Hope this is in any way helpful...

Rhys Gravell
GeneralRe: password checking Pin
Heath Stewart2-Feb-04 3:15
protectorHeath Stewart2-Feb-04 3:15 
GeneralC# Standard Template Library Pin
TeamWild2-Feb-04 1:11
TeamWild2-Feb-04 1:11 
GeneralRe: C# Standard Template Library Pin
Colin Angus Mackay2-Feb-04 1:36
Colin Angus Mackay2-Feb-04 1:36 
GeneralRe: C# Standard Template Library Pin
TeamWild2-Feb-04 2:00
TeamWild2-Feb-04 2:00 
GeneralRe: C# Standard Template Library Pin
Colin Angus Mackay2-Feb-04 2:35
Colin Angus Mackay2-Feb-04 2:35 

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.