Hi All,
I am developing an addin for outlook which will show the new form on
inspector button click.That form itself is a new message.I want to add
custom controls on that form and change its look according to user's
need.I had tried to design Outlook form but didn't get how to remove
menubar and toolbars.
i)Can we remove menubar and toolbars from outlook form?
ii)Can we set FormBorderStyle for Outlook Form?
iii)Can we have ContextMenuStrip on Outlook form?
I had also tried Windows form instead of outlook form which is working
fine but when i tried to drag a file into the RichTextBox,it is giving
me exception
System.InvalidOperationException: DragDrop registration did not
succeed. --- System.Threading.ThreadStateException: Current thread must
be set to single thread apartment (STA) mode before OLE calls can be
made. Ensure that your Main function has STAThreadAttribute marked on
it.
at System.Windows.Forms.Control.SetAcceptDrops(Boolea n accept)
--- End of inner exception stack trace ---
at System.Windows.Forms.Control.SetAcceptDrops(Boolea n accept)
at System.Windows.Forms.Control.OnHandleCreated(Event Args e)
at System.Windows.Forms.Form.OnHandleCreated(EventArg s e)
at System.Windows.Forms.Control.WmCreate(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
at System.Windows.Forms.ContainerControl.WndProc(Mess age& m)
at System.Windows.Forms.Form.WmCreate(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at
System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message&
m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam)
But using threading will change all my project design.
I am not sure which is the better way to create my form?
Thanks in advance..
--
http://forums.slipstick.com