TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
chakrdeep
NA
1
0
Word control focus issue
Sep 5 2005 11:34 PM
I have an application which can load ms word documents and save them. The application has a main form with a file menu, an edit menu and a tool bar. I have a DocumentControl(usercontrol) defined which handles loading the word document into itself. The flow of events are as follows: Main Form -> New -> Creates an instance of DocumentControl -> Loads Word document into DocumentControl (by passing itself as a window handle). The new document loads into the DocumentControl and I am able to see the word document and play with it. The issue is that when I click on the DocumentControl window, I lose focus on the main form. This is a problem because when I select some text in the word document, and I go to Edit Menu to do some operation, I lose focus on the DocumentControl window (and so the text gets dehighlighted). The Word.Window (which holds the Word.Document) needs to be associated with the main form. So, can anyone please let me know how to load the document in a new window but not lose focus from the main form? Thanks a lot.
Reply
Answers (
0
)
Global Variables Storage
How TO change the Skin OF dialog