Click here to Skip to main content
15,897,226 members
Home / Discussions / C#
   

C#

 
AnswerRe: StringBuilder Speed Question PinPopular
Guffa21-May-08 4:00
Guffa21-May-08 4:00 
QuestionRe: StringBuilder Speed Question Pin
buchstaben21-May-08 4:01
buchstaben21-May-08 4:01 
AnswerRe: StringBuilder Speed Question PinPopular
Colin Angus Mackay21-May-08 4:07
Colin Angus Mackay21-May-08 4:07 
AnswerRe: StringBuilder Speed Question Pin
Reelix21-May-08 4:25
Reelix21-May-08 4:25 
GeneralRe: StringBuilder Speed Question Pin
Mike Dimmick21-May-08 6:28
Mike Dimmick21-May-08 6:28 
Questionread sql messages Pin
Peterpod21-May-08 3:09
Peterpod21-May-08 3:09 
AnswerRe: read sql messages Pin
Peter Josefsson Sweden21-May-08 4:34
Peter Josefsson Sweden21-May-08 4:34 
QuestionHow to Cancel KeyDown event ? Pin
hdv21221-May-08 2:38
hdv21221-May-08 2:38 
hi i am writing a new UerControl (inherites from MaskTextBox), and i want to override some events like OnKeyDown, like this :
protected override void OnKeyDown(KeyEventArgs e)
        {            
            if (e.KeyCode == Keys.Up)
            {
                if (this.SelectionStart < 4)
                {                    
                    string text = this.Text;
                    this.strYear = text.Substring(0, 4);
                    int num = int.Parse(this.strYear) + 1;
                    this.strYear = num.ToString();
                    this.strDate = string.Format("{0}/{1}/{2}", this.strYear, this.strMonth, this.strDay);
                    this.Text = this.strDate;
                    e.Handled = false;
                }                
            }
            base.OnKeyDown(e);
        }

as u can see, when user press Up button, the year increament 1 unit, it works correctly, but i want to cancel event to prevent change focus character, while the focus character changed when user press Up button, i'm also use e.Handled = false; to prevent this, but it's not affects, how to solved my problem ?
thanks
AnswerRe: How to Cancel KeyDown event ? Pin
Giorgi Dalakishvili21-May-08 3:26
mentorGiorgi Dalakishvili21-May-08 3:26 
GeneralRe: How to Cancel KeyDown event ? Pin
hdv21221-May-08 3:37
hdv21221-May-08 3:37 
QuestionHow to get custom property name of docx file using IFilter? Pin
Prazwol21-May-08 1:43
Prazwol21-May-08 1:43 
QuestionEfficient image processing Pin
Jon Hulatt21-May-08 1:18
Jon Hulatt21-May-08 1:18 
AnswerRe: Efficient image processing Pin
Pete O'Hanlon21-May-08 2:26
mvePete O'Hanlon21-May-08 2:26 
QuestionHow to use custom control dll in other application Pin
Krish Agn21-May-08 1:06
Krish Agn21-May-08 1:06 
AnswerRe: How to use custom control dll in other application Pin
Christian Graus21-May-08 1:13
protectorChristian Graus21-May-08 1:13 
GeneralRe: How to use custom control dll in other application Pin
Krish Agn21-May-08 1:55
Krish Agn21-May-08 1:55 
GeneralRe: How to use custom control dll in other application Pin
Reelix21-May-08 3:16
Reelix21-May-08 3:16 
QuestionNetwork programming Pin
AlexPizzano21-May-08 0:36
AlexPizzano21-May-08 0:36 
AnswerRe: Network programming Pin
Laddie21-May-08 0:57
Laddie21-May-08 0:57 
GeneralRe: Network programming Pin
AlexPizzano21-May-08 1:49
AlexPizzano21-May-08 1:49 
GeneralRe: Network programming Pin
Laddie21-May-08 2:29
Laddie21-May-08 2:29 
AnswerRe: Network programming Pin
Le centriste21-May-08 1:52
Le centriste21-May-08 1:52 
GeneralRe: Network programming Pin
Laddie21-May-08 2:31
Laddie21-May-08 2:31 
GeneralRe: Network programming Pin
Le centriste21-May-08 2:44
Le centriste21-May-08 2:44 
AnswerRe: Network programming Pin
jithen_dt21-May-08 1:57
jithen_dt21-May-08 1:57 

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.