N
nitwalke
Hi All,
I am developing an addin for outlook which will show the new form o
inspector button click.That form itself is a new message.I want to ad
custom controls on that form and change its look according to user'
need.I had tried to design Outlook form but didn't get how to remov
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 workin
fine but when i tried to drag a file into the RichTextBox,it is givin
me exception
System.InvalidOperationException: DragDrop registration did no
succeed. ---> System.Threading.ThreadStateException: Current thread mus
be set to single thread apartment (STA) mode before OLE calls can b
made. Ensure that your Main function has STAThreadAttribute marked o
it.
at System.Windows.Forms.Control.SetAcceptDrops(Boolean accept)
--- End of inner exception stack trace ---
at System.Windows.Forms.Control.SetAcceptDrops(Boolean accept)
at System.Windows.Forms.Control.OnHandleCreated(EventArgs e)
at System.Windows.Forms.Form.OnHandleCreated(EventArgs e)
at System.Windows.Forms.Control.WmCreate(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmCreate(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
a
System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message
m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int3
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.
I am developing an addin for outlook which will show the new form o
inspector button click.That form itself is a new message.I want to ad
custom controls on that form and change its look according to user'
need.I had tried to design Outlook form but didn't get how to remov
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 workin
fine but when i tried to drag a file into the RichTextBox,it is givin
me exception
System.InvalidOperationException: DragDrop registration did no
succeed. ---> System.Threading.ThreadStateException: Current thread mus
be set to single thread apartment (STA) mode before OLE calls can b
made. Ensure that your Main function has STAThreadAttribute marked o
it.
at System.Windows.Forms.Control.SetAcceptDrops(Boolean accept)
--- End of inner exception stack trace ---
at System.Windows.Forms.Control.SetAcceptDrops(Boolean accept)
at System.Windows.Forms.Control.OnHandleCreated(EventArgs e)
at System.Windows.Forms.Form.OnHandleCreated(EventArgs e)
at System.Windows.Forms.Control.WmCreate(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmCreate(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
a
System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message
m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int3
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.