A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Remove Menubar and Toolbar from Customized Outlook Form



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 19th 09, 07:58 AM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 15
Default Remove Menubar and Toolbar from Customized Outlook Form


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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 09:29 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.