Click here to Skip to main content
15,881,204 members
Home / Discussions / C#
   

C#

 
AnswerRe: Memory leakage in c# multithreading application windows service application Pin
DaveyM691-Sep-09 3:46
professionalDaveyM691-Sep-09 3:46 
AnswerRe: Memory leakage in c# multithreading application windows service application Pin
Dave Kreskowiak1-Sep-09 5:12
mveDave Kreskowiak1-Sep-09 5:12 
Questionwebbrowser stealing focus Pin
yeah10001-Sep-09 3:14
yeah10001-Sep-09 3:14 
AnswerRe: webbrowser stealing focus Pin
OriginalGriff1-Sep-09 3:38
mveOriginalGriff1-Sep-09 3:38 
GeneralRe: webbrowser stealing focus Pin
yeah10001-Sep-09 3:42
yeah10001-Sep-09 3:42 
GeneralRe: webbrowser stealing focus Pin
OriginalGriff1-Sep-09 4:24
mveOriginalGriff1-Sep-09 4:24 
GeneralRe: webbrowser stealing focus [modified] Pin
yeah10001-Sep-09 19:35
yeah10001-Sep-09 19:35 
QuestionPrevent the ^ character from beeing entered in textbox. Pin
xkrja1-Sep-09 3:10
xkrja1-Sep-09 3:10 
How can I prevent the ^ character from being typed in a textbox? The problem seems to be that the character is not added before another keydown/keyup event.

For some other keys I used the following code to prevent them from being typed:

void textBox_KeyUp(object sender, KeyEventArgs e)
        {
            if ((Keyboard.Modifiers & ModifierKeys.Alt) == ModifierKeys.Alt)
            {
                if (e.PlatformKeyCode <= 12)
                    e.Handled = true;

                switch (e.PlatformKeyCode)
                {
                    case 226:
                        e.Handled = true;
                        break;
                }
            }
            else if ((Keyboard.Modifiers & ModifierKeys.Shift) == ModifierKeys.Shift)
            {
                switch (e.PlatformKeyCode)
                {
                    case 52:
                        e.Handled = true;
                        break;
                    case 186:
                        e.Handled = true;
                        break;
                }
            }
        }


However, this does not work for the ^ character.

Thanks for help!
AnswerRe: Prevent the ^ character from beeing entered in textbox. Pin
stancrm1-Sep-09 3:27
stancrm1-Sep-09 3:27 
AnswerRe: Prevent the ^ character from beeing entered in textbox. Pin
OriginalGriff1-Sep-09 3:31
mveOriginalGriff1-Sep-09 3:31 
GeneralRe: Prevent the ^ character from beeing entered in textbox. Pin
xkrja1-Sep-09 3:37
xkrja1-Sep-09 3:37 
GeneralRe: Prevent the ^ character from beeing entered in textbox. Pin
Henry Minute1-Sep-09 4:23
Henry Minute1-Sep-09 4:23 
Questionclient side validation for server control Pin
dotnetcsharpdev1-Sep-09 2:47
dotnetcsharpdev1-Sep-09 2:47 
AnswerRe: client side validation for server control Pin
stancrm1-Sep-09 2:49
stancrm1-Sep-09 2:49 
QuestionWrong path. Pin
yuneyev1-Sep-09 2:33
yuneyev1-Sep-09 2:33 
AnswerRe: Wrong path. Pin
stancrm1-Sep-09 2:50
stancrm1-Sep-09 2:50 
AnswerRe: Wrong path. Pin
Luc Pattyn1-Sep-09 4:48
sitebuilderLuc Pattyn1-Sep-09 4:48 
AnswerRe: Wrong path. Pin
Tony Richards1-Sep-09 9:09
Tony Richards1-Sep-09 9:09 
QuestionHow to add Sort Icon to Gridview Header? Pin
Ganapatisb1-Sep-09 2:09
Ganapatisb1-Sep-09 2:09 
QuestionAuto hide view component Pin
anishkannan1-Sep-09 2:08
anishkannan1-Sep-09 2:08 
AnswerRe: Auto hide view component Pin
stancrm1-Sep-09 2:28
stancrm1-Sep-09 2:28 
GeneralRe: Auto hide view component Pin
anishkannan1-Sep-09 4:25
anishkannan1-Sep-09 4:25 
QuestionWindows Form Freeze Pin
Shyamraja1-Sep-09 1:11
Shyamraja1-Sep-09 1:11 
QuestionLogin failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. Pin
Rajesh Koriya1-Sep-09 0:38
Rajesh Koriya1-Sep-09 0:38 
AnswerRe: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. Pin
Aman Bhullar1-Sep-09 0:42
Aman Bhullar1-Sep-09 0:42 

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.