Windows Develop Bookmark and Share   
 index > Windows Forms General > Toggle from excel to windows form not wokring
 

Toggle from excel to windows form not wokring

Hi,

I have a windows forms application and excel open. When I switch from App to excel then excel is visible. Excel is restored form, so I see portion of my app in background.And now when I click somewhere in app the app does not come forward or on top of excel. The focus is in a textbox in my application but excel is also out of focus but on top of App.

This is happening with one windows client only and not others. I feel it is nothing to do with .NET and rather with how Windows works.


Please help.


Thanks,
Sarvo
Sarvothaman  Thursday, June 11, 2009 3:12 PM
Hi Sarvo,

It looks like the Excel window is set to top-most. However, I don't find we can set an Excel window top-most at all.

If you run another program, e.g. Notepad, does this problem exists when you switch between the Notepad window and the Excel window?

Sincerely,
Linda Liu
Please remember to mark the replies as answers if they help and unmark them if they provide no help. end us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.
Linda Liu  Wednesday, June 24, 2009 9:39 AM
We are changing the issue type to “General Discussion�because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question�by opening the Options list at the top of the post window, and changing the type. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.
Please remember to mark the replies as answers if they help and unmark them if they provide no help. end us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.
Linda Liu  Friday, June 26, 2009 3:23 AM
Hi Linda,

I am the same guy who asked the query in first place. I have a different sign in id now.
It is not an issue when switching between notepad and excel. It is between .NET generated Windows application and excel. When switching from Excel document to application by clicking on any textbox in the application, the mouse focus switches to the textbox, however the excel is also on top of the application. The same thing does not happend when clicking on the border of the application like top/corners etc.

After seeing your reply I also tried it with notepad, word document and it is the same with them too.

A brief information about my windows application. It is built on container classes and the forms in display or in fact UserControl in the main window/form. The textbox I am focusing is also a UserControl reused accross in the application.

Any pointers would be of great help.


Regards,
Sarvo/Saru
Sarvotham  Wednesday, July 08, 2009 1:43 PM
Any updates for this issue. Could you please redirect me to a proper forum orperson who could help with the issue.

Thanks,
Sarvo/Saru/Sarvotham
Sarvotham  Monday, July 27, 2009 7:49 AM

You can use google to search for other answers

Custom Search

More Threads

• Add images to Listview control in C#.net with 3.5 frame work.
• DragDrop - figuring out who the sender is
• zoom function on images
• how to change font size in code?
• Is there a simple way to add a hook to FileDialog for purpose of customization?
• Capture mouse click and key down.
• Move a textbox at runtime?
• Threads and BackGroundWorker
• how can I configure where the IDE should navigate when breaking debug?
• RichTextBox(.NET) or underlying RichEdit(win32) + fields/bookmarks