Click here to Skip to main content
15,891,704 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Help with a WPF Combobox Pin
User 27100911-Oct-08 14:28
User 27100911-Oct-08 14:28 
AnswerSolution: Re: Help with a WPF Combobox Pin
User 27100911-Oct-08 16:53
User 27100911-Oct-08 16:53 
GeneralRe: Solution: Re: Help with a WPF Combobox Pin
Aaron Hickman11-Oct-08 17:22
Aaron Hickman11-Oct-08 17:22 
GeneralRe: Solution: Re: Help with a WPF Combobox Pin
User 27100911-Oct-08 17:29
User 27100911-Oct-08 17:29 
QuestionAjax Tool Error Pin
gautamamit81-Oct-08 22:14
gautamamit81-Oct-08 22:14 
GeneralWrong forum Pin
Pete O'Hanlon1-Oct-08 23:13
mvePete O'Hanlon1-Oct-08 23:13 
AnswerRe: Ajax Tool Error Pin
Paul Conrad3-Oct-08 11:17
professionalPaul Conrad3-Oct-08 11:17 
QuestionWindowsFormsHost and keyboard focus Pin
Paul A. Howes1-Oct-08 4:15
Paul A. Howes1-Oct-08 4:15 
I haven't tried to embed a WinForm control in a WPF application until now, so I may not be doing this right. When I create the WindowsFormsHost and add the WinForm control (the TextEditorControl from SharpDevelop) I cannot programmatically assign the keyboard focus to the WinForm control.

First I tried using the Focus() method on the control itself and on its text area. I never see the cursor blinking and keyboard input is ignored.

Then I used interop to pull in the user32.dll function, SetFocus(HWND) which when called with the control's text area Handle makes the cursor blink in the control, but keyboard input is still ignored.

I created a subclass of WindowsFormsHost so that I could set some breakpoints on the various On*Focus methods. The only thing that I can see is that OnLostKeyboardFocus is called when I manually click on the text editor control, but the KeyboardFocusChangedEventArgs.NewFocus argument is null, which means the new control is not recognized by WPF. That makes perfect sense since the control receiving the keyboard focus is a WinForms control.

So, any thoughts? Has anyone ever encounter this problem before? I have been searching on Google for hours and have not come up with anything.

Thanks!

Paul

GeneralRe: WindowsFormsHost and keyboard focus Pin
Paul A. Howes1-Oct-08 4:32
Paul A. Howes1-Oct-08 4:32 
AnswerRe: WindowsFormsHost and keyboard focus Pin
Patrick Klug8-Oct-08 17:35
Patrick Klug8-Oct-08 17:35 
QuestionControl similar to new message control Pin
_iobuf30-Sep-08 7:03
_iobuf30-Sep-08 7:03 
AnswerRe: Control similar to new message control Pin
Paul Conrad6-Oct-08 18:52
professionalPaul Conrad6-Oct-08 18:52 
QuestionWPF Data binding Pin
koleraba27-Sep-08 8:21
koleraba27-Sep-08 8:21 
AnswerRe: WPF Data binding Pin
User 27100928-Sep-08 6:12
User 27100928-Sep-08 6:12 
GeneralRe: WPF Data binding Pin
koleraba29-Sep-08 6:01
koleraba29-Sep-08 6:01 
QuestionSimple Textbox validation Pin
Aslesh26-Sep-08 5:27
Aslesh26-Sep-08 5:27 
AnswerRe: Simple Textbox validation Pin
Pete O'Hanlon26-Sep-08 8:18
mvePete O'Hanlon26-Sep-08 8:18 
GeneralRe: Simple Textbox validation Pin
Aslesh26-Sep-08 9:57
Aslesh26-Sep-08 9:57 
GeneralRe: Simple Textbox validation Pin
Pete O'Hanlon26-Sep-08 10:14
mvePete O'Hanlon26-Sep-08 10:14 
GeneralRe: Simple Textbox validation Pin
Aslesh26-Sep-08 10:25
Aslesh26-Sep-08 10:25 
GeneralRe: Simple Textbox validation Pin
Pete O'Hanlon26-Sep-08 10:40
mvePete O'Hanlon26-Sep-08 10:40 
GeneralRe: Simple Textbox validation Pin
Aslesh26-Sep-08 11:18
Aslesh26-Sep-08 11:18 
GeneralRe: Simple Textbox validation Pin
Pete O'Hanlon26-Sep-08 23:28
mvePete O'Hanlon26-Sep-08 23:28 
AnswerRe: Simple Textbox validation Pin
Wes Aday26-Sep-08 9:26
professionalWes Aday26-Sep-08 9:26 
QuestionHow to handle TabControl's Tab Index changing in WPF ? Pin
Mohammad Dayyan25-Sep-08 13:39
Mohammad Dayyan25-Sep-08 13:39 

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.