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
anirudh saraf
NA
5
0
Plugin form start maximized
Nov 16 2007 1:35 AM
Hi,
I am creating a plug-in for Microsoft Onenote which operates via COM Interop. The problem I am facing is that when I run my application from OneNote it always starts the form minimized.
I have tried putting
this.WindowState = FormWindowState.Normal;
this.StartPosition = FormStartPosition.CenterScreen;
in Form Load event but it doesn't help.
I also tried Windows API calls
IntPtr hwnd = this.Handle;
if (IsIconic(hwnd) != false) ShowWindow(hwnd, 9);
else SetForegroundWindow(hwnd);
and then I tried setting a timer and setting the same properties, but the form still stays minimized.
Is there any way I can insure that my form starts maximized and in centre of Onenote?
Also can I attach a debugger to my plug-in so that I can set breakpoints and when I execute it FROM ONENOTE it breaks and opens VStudio?
Thanks,
Ani
Reply
Answers (
0
)
audio recording
How to communicate with micro--help me