Click here to Skip to main content
15,904,351 members
Home / Discussions / C#
   

C#

 
QuestionHow tp define 2 dimensional array in C# Pin
mercenary011-Jul-07 17:02
mercenary011-Jul-07 17:02 
AnswerRe: How tp define 2 dimensional array in C# Pin
Vikram A Punathambekar1-Jul-07 17:39
Vikram A Punathambekar1-Jul-07 17:39 
AnswerRe: How tp define 2 dimensional array in C# Pin
Sathesh Sakthivel1-Jul-07 18:35
Sathesh Sakthivel1-Jul-07 18:35 
QuestionCompatibility question? Pin
max292971-Jul-07 16:27
max292971-Jul-07 16:27 
AnswerRe: Compatibility question? Pin
Vikram A Punathambekar1-Jul-07 17:40
Vikram A Punathambekar1-Jul-07 17:40 
AnswerRe: Compatibility question? Pin
Luc Pattyn2-Jul-07 0:16
sitebuilderLuc Pattyn2-Jul-07 0:16 
Questionaccess modem with C# Pin
gb_9111-Jul-07 16:08
gb_9111-Jul-07 16:08 
QuestionVirtual keyboard losing window focus. Help! Pin
remarkpk111-Jul-07 13:41
remarkpk111-Jul-07 13:41 
Hi Everyone,

I'm writing an application that implements an on-screen keyboard (because the Windows on-screen keyboard is extremely small and hard to use) and I'm having problems setting focus to the desired window in which the user wishes to type.

I'm using a few User32 API calls to get the active window handle number and then set the active window once I know what the handle is. This seems to be working OK. However, the window which has focus (the one receiving the typing) flickers as the user clicks on a key.

This is because as the user touches a key to type, it gives the keyboard focus and then immediately sends focus back to the window in which the user is typing, hence the flickering. So...

Question #1:

How can I eliminate the change of focus and always give focus to the desired window so that there is no flickering back and forth between my keyboard application and the window receiving the typing?

Question #2:

This is not just a standalone keyboard, but is a small part of a larger piece of software. Consequently, there are occasions when the user must use this on-screen keyboard to type into a window within it's parent application or into different forms within the app. One form contains a browser control to a company website. When they keyboard is used to type into any text field on a webpage displayed in the browser control, only every other word is sent to that text box. Two key strokes are required to output one letter. What could be a possible cause of this and how might I go about fixing it?

ANY suggestions or help is much appreciated. Code examples in VB.NET, VB 2005, and C# are fine. C++ OK too but only if it's immediately applicable and can be converted easily to VB.NET.

Thanks in advance to anyone who contributes!!!!

Patrick


QuestionRe: Virtual keyboard losing window focus. Help! Pin
savitabelgaonkar7-Dec-10 4:52
savitabelgaonkar7-Dec-10 4:52 
QuestionHow to write document in 2 pages Pin
Atdhe1-Jul-07 13:25
Atdhe1-Jul-07 13:25 
QuestionCollections Pin
haz131-Jul-07 11:14
haz131-Jul-07 11:14 
AnswerRe: Collections Pin
Luc Pattyn1-Jul-07 11:39
sitebuilderLuc Pattyn1-Jul-07 11:39 
GeneralRe: Collections Pin
haz132-Jul-07 1:32
haz132-Jul-07 1:32 
AnswerRe: Collections Pin
RepliCrux1-Jul-07 13:20
RepliCrux1-Jul-07 13:20 
QuestionFaster dialog form display Pin
Jud White1-Jul-07 9:25
Jud White1-Jul-07 9:25 
QuestionHow to run a Win16 program? [modified] Pin
Mackster2111-Jul-07 8:48
Mackster2111-Jul-07 8:48 
AnswerRe: How to run a Win16 program? Pin
Luc Pattyn1-Jul-07 9:03
sitebuilderLuc Pattyn1-Jul-07 9:03 
GeneralRe: How to run a Win16 program? Pin
Mackster2111-Jul-07 9:10
Mackster2111-Jul-07 9:10 
GeneralRe: How to run a Win16 program? Pin
Luc Pattyn1-Jul-07 10:05
sitebuilderLuc Pattyn1-Jul-07 10:05 
QuestionDetermining when application is running in debug mode Pin
theFrenchHornet1-Jul-07 7:59
theFrenchHornet1-Jul-07 7:59 
AnswerRe: Determining when application is running in debug mode Pin
Luc Pattyn1-Jul-07 8:54
sitebuilderLuc Pattyn1-Jul-07 8:54 
GeneralRe: Determining when application is running in debug mode Pin
theFrenchHornet1-Jul-07 10:21
theFrenchHornet1-Jul-07 10:21 
GeneralRe: Determining when application is running in debug mode Pin
Luc Pattyn1-Jul-07 10:56
sitebuilderLuc Pattyn1-Jul-07 10:56 
GeneralRe: Determining when application is running in debug mode Pin
theFrenchHornet1-Jul-07 11:04
theFrenchHornet1-Jul-07 11:04 
GeneralMore on Task Manager Pin
Luc Pattyn1-Jul-07 11:30
sitebuilderLuc Pattyn1-Jul-07 11:30 

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.