Tab, Ctrl + c, Ctrl + V in webbrowser control

Add-in Express™ Support Service
That's what is more important than anything else

Tab, Ctrl + c, Ctrl + V in webbrowser control
Tab, Ctrl + c, Ctrl + V in webbrowser control in winform + toolbar 
Amitkumar Dave




Posts: 33
Joined: 2009-01-07
Hi

I have toolbar which uses a winform which gets opend up from toolbar button click.

This win form has a webbrowser control and this web browser control invokes a login page from server.

The page works properly if opened in main browser and i can copy paste values in text boxes and navigate between them using tab but in this winform none of them works.

if i move this win form to a normal winform application things starts working but when it is opened from Toolbar keyboard shortcuts and tab key is not working.

Please help.

Thanks and best regards
Amitkumar Dave
Posted 07 Jul, 2009 11:55:20 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Amitkumar.

Who is the parent of the winform in your project?
Posted 07 Jul, 2009 14:11:54 Top
Amitkumar Dave




Posts: 33
Joined: 2009-01-07
Hi

The parent is a IE toolbar created using add in express component. The form is part of a toolbar project.

Thanks and regards
Amitkumar Dave
Posted 08 Jul, 2009 03:44:02 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Amitkumar, I meant what do you pass in the owner parameter of the Form.ShowDialog method.
Posted 08 Jul, 2009 13:47:35 Top
Amitkumar Dave




Posts: 33
Joined: 2009-01-07
Hi,

I have this form opened up with Show() method and not with ShowDialog() method due to some other issues with vista + IE where if i open my login window before the browser home page is loaded (when the browser shows connecting... message) my home page was never getting loaded.

I confirm if i switch to ShowDialog i can use keyboard shortcut but that will break the main IE browser in Vista.

please help me.

Posted 09 Jul, 2009 04:17:43 Top
Amitkumar Dave




Posts: 33
Joined: 2009-01-07
Hi

Finally i got it working. Thanks for pointing out to the owner parameter overload in showdialog method.

Using this.NativeWindowHandle to build a IWin32Window object and passing it to showdialog resolved my browser locking problem and thus it allowed me to use showDialog instead of show() which has resolved the keyboard shortcut issue also.

Thanks for your hint.

Thanks and regards
Amitkumar Dave
Posted 09 Jul, 2009 11:04:20 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
Amitkumar,

Thank you for letting us know.



Andrei Smolin
Add-in Express Team Leader
Posted 09 Jul, 2009 11:17:47 Top