![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]() 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 |
Ads |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Migrating a customized toolbar to multiple machines | James | Outlook - Installation | 1 | June 20th 08 01:43 PM |
How do I remove the labels in a customized business card view? | KLE | Outlook - Using Forms | 1 | February 7th 08 11:02 PM |
remove outlook add-in toolbar | [email protected] | Outlook - General Queries | 1 | October 27th 07 06:09 PM |
Com Add-in for Publishing a customized form in a public folder and setting this form as deafult form for the calendar | Vidya[_2_] | Add-ins for Outlook | 0 | September 17th 07 09:47 AM |
Shortcut to Organizational Form in the Menubar ?? | Trinadh Varma | Outlook - Using Forms | 1 | July 27th 07 11:46 AM |