Click here to Skip to main content
15,902,777 members
Home / Discussions / C#
   

C#

 
Questionproblem in "Splash screen demo" tutorial Pin
mandeeep9-Oct-07 3:16
mandeeep9-Oct-07 3:16 
AnswerRe: problem in "Splash screen demo" tutorial Pin
Pete O'Hanlon9-Oct-07 3:24
mvePete O'Hanlon9-Oct-07 3:24 
AnswerRe: problem in "Splash screen demo" tutorial Pin
Dave Kreskowiak9-Oct-07 5:21
mveDave Kreskowiak9-Oct-07 5:21 
GeneralRe: problem in "Splash screen demo" tutorial Pin
mandeeep10-Oct-07 3:58
mandeeep10-Oct-07 3:58 
GeneralRe: problem in "Splash screen demo" tutorial Pin
Dave Kreskowiak10-Oct-07 14:01
mveDave Kreskowiak10-Oct-07 14:01 
QuestionPossible to have a List of Generic items of different types? Pin
Paul Brower9-Oct-07 2:43
Paul Brower9-Oct-07 2:43 
AnswerRe: Possible to have a List of Generic items of different types? Pin
Urs Enzler9-Oct-07 4:48
Urs Enzler9-Oct-07 4:48 
QuestionKeys [modified] Pin
mihksoft9-Oct-07 2:26
mihksoft9-Oct-07 2:26 
Hy,

I have the following code put in the protected override OnKeyDown to a RichTextBox:

switch (e.KeyCode)
{
case Keys.Tab:
case Keys.Enter:
{
autocomplete(_defaultColor);
e.Handled = true;
break;
}
}
and the autocomplete method:

private void autocomplete(Color defaultColor)
{
for (int i = 0; i < 1; i++)
{
SendKeys.SendWait("{BACKSPACE}");
}

SendKeys.SendWait("public");
}

1.Run the application and press "p" then press ENTER.
2.Run the application and press "p" then press TAB.

In both cases the effect is different but is the same code for both cases.
Can somebody give me an explication?


-- modified at 8:58 Tuesday 9th October, 2007
AnswerRe: Keys Pin
Luc Pattyn9-Oct-07 3:49
sitebuilderLuc Pattyn9-Oct-07 3:49 
GeneralRe: Keys Pin
Martin#9-Oct-07 4:14
Martin#9-Oct-07 4:14 
GeneralRe: Keys Pin
Luc Pattyn9-Oct-07 4:47
sitebuilderLuc Pattyn9-Oct-07 4:47 
GeneralRe: Keys Pin
Martin#9-Oct-07 4:52
Martin#9-Oct-07 4:52 
GeneralRe: Keys Pin
Luc Pattyn9-Oct-07 5:52
sitebuilderLuc Pattyn9-Oct-07 5:52 
GeneralRe: Keys Pin
Martin#9-Oct-07 20:42
Martin#9-Oct-07 20:42 
QuestionHow to use Dunzip32.dll in my project? Pin
JSSUML9-Oct-07 2:01
JSSUML9-Oct-07 2:01 
AnswerRe: How to use Dunzip32.dll in my project? Pin
Andrei Ungureanu9-Oct-07 2:10
Andrei Ungureanu9-Oct-07 2:10 
GeneralRe: How to use Dunzip32.dll in my project? Pin
JSSUML9-Oct-07 2:41
JSSUML9-Oct-07 2:41 
AnswerRe: How to use Dunzip32.dll in my project? Pin
Colin Angus Mackay9-Oct-07 2:23
Colin Angus Mackay9-Oct-07 2:23 
GeneralRe: How to use Dunzip32.dll in my project? Pin
JSSUML9-Oct-07 2:43
JSSUML9-Oct-07 2:43 
QuestionError in Mail sending Pin
Exelioindia9-Oct-07 2:00
Exelioindia9-Oct-07 2:00 
AnswerRe: Error in Mail sending Pin
JSSUML9-Oct-07 2:04
JSSUML9-Oct-07 2:04 
QuestionExcel to DataTable Pin
vijay_chaudhary9-Oct-07 1:59
vijay_chaudhary9-Oct-07 1:59 
AnswerRe: Excel to DataTable Pin
Paul Conrad12-Oct-07 13:36
professionalPaul Conrad12-Oct-07 13:36 
QuestionA situation where you have to use goto Pin
Bummer89-Oct-07 1:57
Bummer89-Oct-07 1:57 
AnswerRe: A situation where you have to use goto Pin
Andrei Ungureanu9-Oct-07 2:07
Andrei Ungureanu9-Oct-07 2:07 

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.