![]() |
| 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. |
|
|||||||
| Tags: custom, form, issue, resize |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi all,
I used standard Message template and added custom control (RTF editor) on the form. I want to make that control resize when user resizes the new message window (similar to standard Message textbox). I hid the standard message textbox and added code in Item_Open() to make my control overlap original - so initial size and postion are correct (see code below). And I checked the box 'resize with form' for the new control. However, only control's width got resized with form but its height remained the same. Sub Item_Open() Dim oPage Dim oTIS, oOld Set oPage = Item.GetInspector.ModifiedFormPages(1) Set oTIS = oPage.Controls(oPage.Controls.Count - 1) ' custom control is the last one Set oOld = oPage.Controls("Message") ' original textarea oTIS.Move oOld.Left, oOld.Top, oOld.Width, oOld.Height Set oTIS = Nothing Set oPage = Nothing End Sub To test that piece of code you can create a form and put new multiline textbox... Any help is highly appreciated! Thanks, VB |
| Ads |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Emailing a contact vCard with custom form loses all custom info | Kim | Outlook - Using Contacts | 7 | April 27th 06 01:21 AM |
| How to access custom field in Custom Form by C# | Minh Nguyen | Outlook - Using Forms | 3 | April 24th 06 04:32 PM |
| Resize with form selected - not working for some users | Matric | Outlook - Using Forms | 0 | April 7th 06 04:15 AM |
| "Resize with form" property on custom controls | Vaughan | Outlook - Using Forms | 2 | February 6th 06 09:03 PM |
| Cannot programmatically open custom message in custom form | ms | Outlook - Using Forms | 1 | January 20th 06 04:01 PM |