Click here to Skip to main content
15,891,033 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: Checking for a Key Sequence Pin
Trollslayer10-Nov-07 5:28
mentorTrollslayer10-Nov-07 5:28 
GeneralRe: Checking for a Key Sequence Pin
Brady Kelly10-Nov-07 5:36
Brady Kelly10-Nov-07 5:36 
GeneralRe: Checking for a Key Sequence Pin
Trollslayer10-Nov-07 5:55
mentorTrollslayer10-Nov-07 5:55 
GeneralRe: Checking for a Key Sequence Pin
Brady Kelly10-Nov-07 6:04
Brady Kelly10-Nov-07 6:04 
GeneralRe: Checking for a Key Sequence Pin
Trollslayer10-Nov-07 6:28
mentorTrollslayer10-Nov-07 6:28 
GeneralRe: Checking for a Key Sequence Pin
Brady Kelly10-Nov-07 19:48
Brady Kelly10-Nov-07 19:48 
GeneralRe: Checking for a Key Sequence Pin
Luc Pattyn10-Nov-07 14:24
sitebuilderLuc Pattyn10-Nov-07 14:24 
GeneralRe: Checking for a Key Sequence Pin
Brady Kelly10-Nov-07 19:53
Brady Kelly10-Nov-07 19:53 
Luc, it's easier to say,
if (buf.EndsWith(SEQ)) ...


I was doing that before, but I worried about the size of buf just using a string. If the user doing data capture without scanning, bu could get pretty big, and unless there is some internalisation magic I don't understand, every key press will create a new string . I use a StringBuilder so that I can remove the first character before appending the last. It seems to have acceptable performance.


MY BLOG


Calling all South African developers! Your participation in this local dev community will be mutually beneficial, to you and us.

GeneralRe: Checking for a Key Sequence Pin
Luc Pattyn11-Nov-07 3:34
sitebuilderLuc Pattyn11-Nov-07 3:34 
GeneralRe: Checking for a Key Sequence Pin
Brady Kelly11-Nov-07 3:39
Brady Kelly11-Nov-07 3:39 
QuestionMater / Detail Datagridview Pin
Mr. Candyman7-Nov-07 8:41
Mr. Candyman7-Nov-07 8:41 
AnswerRe: Mater / Detail Datagridview Pin
led mike7-Nov-07 8:46
led mike7-Nov-07 8:46 
GeneralRe: Mater / Detail Datagridview Pin
Mr. Candyman7-Nov-07 9:40
Mr. Candyman7-Nov-07 9:40 
GeneralRe: Mater / Detail Datagridview Pin
led mike7-Nov-07 10:41
led mike7-Nov-07 10:41 
GeneralRe: Mater / Detail Datagridview Pin
Mr. Candyman7-Nov-07 11:28
Mr. Candyman7-Nov-07 11:28 
Questionexpanding label control Pin
abdelhameed817-Nov-07 0:37
abdelhameed817-Nov-07 0:37 
AnswerRe: expanding label control Pin
Christian Graus7-Nov-07 9:43
protectorChristian Graus7-Nov-07 9:43 
QuestionDataGridView and Generics Pin
Ponzano Paolo5-Nov-07 23:44
Ponzano Paolo5-Nov-07 23:44 
AnswerRe: DataGridView and Generics Pin
Christian Graus5-Nov-07 23:53
protectorChristian Graus5-Nov-07 23:53 
GeneralRe: DataGridView and Generics Pin
Ponzano Paolo6-Nov-07 0:29
Ponzano Paolo6-Nov-07 0:29 
GeneralRe: DataGridView and Generics Pin
Pete O'Hanlon6-Nov-07 1:11
mvePete O'Hanlon6-Nov-07 1:11 
GeneralRe: DataGridView and Generics Pin
Ponzano Paolo6-Nov-07 1:13
Ponzano Paolo6-Nov-07 1:13 
GeneralRe: DataGridView and Generics Pin
Ponzano Paolo6-Nov-07 1:34
Ponzano Paolo6-Nov-07 1:34 
QuestionC# Soap and HTTP Pin
AssemblySoft5-Nov-07 6:16
AssemblySoft5-Nov-07 6:16 
Answercross-post Pin
Luc Pattyn5-Nov-07 6:40
sitebuilderLuc Pattyn5-Nov-07 6:40 

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.