Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook - Using Forms (http://www.outlookbanter.com/outlook-using-forms/)
-   -   How con I add Nodes to my TreeView in OL2003 Forms (VBS) (http://www.outlookbanter.com/outlook-using-forms/5452-how-con-i-add-nodes.html)

HelixX23 January 16th 06 10:36 AM

How con I add Nodes to my TreeView in OL2003 Forms (VBS)
 
Hi...
I´d like to add a treeview Element to my Outlook Form.

Can enyone give me an example...?

In VBA this wokrs fine...

Wolfram Jahn January 17th 06 12:26 AM

How con I add Nodes to my TreeView in OL2003 Forms (VBS)
 
HelixX23 wrote:

Hi...
I´d like to add a treeview Element to my Outlook Form.

Can enyone give me an example...?

In VBA this wokrs fine...


Assuming you already have a treeview control named "TreeView1" on your
form page named "P.1"

sub tvtest
dim pgs,tv,i
set pgs = Item.GetInspector.ModifiedFormPages
set tv = pgs("P.1").controls("TreeView1")
for i = 1 to 3 ' e.g.
tv.nodes.add "Node " & i
next ' i
end sub


More treeview info at
http://msdn.microsoft.com/library/de...iewcontrol.asp

Make sure to use numbers instead of vba constants (4 instead of
tvwChild). VBS does not know vba constants.


HTH, Wolfram


All times are GMT +1. The time now is 09:26 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-2006 OutlookBanter.com