CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Thu, 04 Sep 2025 01:05:16 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20080414222712
location: https://web.archive.org/web/20080414222712/https://www.daniweb.com/code/snippet825.html
server-timing: captures_list;dur=1.035721, exclusion.robots;dur=0.042196, exclusion.robots.policy;dur=0.026034, esindex;dur=0.016131, cdx.remote;dur=7.122405, LoadShardBlock;dur=147.003939, PetaboxLoader3.datanode;dur=37.874185, PetaboxLoader3.resolve;dur=59.430995
x-app-server: wwwb-app201
x-ts: 302
x-tr: 200
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
set-cookie: wb-p-SERVER=wwwb-app201; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Thu, 04 Sep 2025 01:05:16 GMT
content-type: text/html; charset=utf-8
x-archive-orig-date: Mon, 14 Apr 2008 22:27:12 GMT
x-archive-orig-server: Apache/2.2
x-archive-orig-x-powered-by: PHP/5.1.6
x-archive-orig-set-cookie: bblastactivity=0; expires=Tue, 14-Apr-2009 22:27:12 GMT; path=/; domain=.daniweb.com
x-archive-orig-cache-control: private
x-archive-orig-pragma: private
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Mon, 14 Apr 2008 22:27:12 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Wed, 20 Feb 2008 04:21:36 GMT", ; rel="prev memento"; datetime="Wed, 20 Feb 2008 04:21:36 GMT", ; rel="memento"; datetime="Mon, 14 Apr 2008 22:27:12 GMT", ; rel="next memento"; datetime="Thu, 24 Jul 2008 04:26:37 GMT", ; rel="last memento"; datetime="Mon, 20 Jul 2009 11:42:32 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 51_3_20080414182409_crawl102-c/51_3_20080414222419_crawl104.arc.gz
server-timing: captures_list;dur=0.504103, exclusion.robots;dur=0.020467, exclusion.robots.policy;dur=0.011471, esindex;dur=0.010474, cdx.remote;dur=21.644948, LoadShardBlock;dur=135.856453, PetaboxLoader3.datanode;dur=142.915583, PetaboxLoader3.resolve;dur=109.208883, load_resource;dur=149.527652
x-app-server: wwwb-app201
x-ts: 200
x-tr: 372
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
Using COM TreeView in C# Windows Forms - csharp
Using COM TreeView in C# Windows Forms
•
•
•
•

What is DaniWeb IT Discussion Community?
You're currently browsing the C# section within the Software Development category of DaniWeb, a massive community of 311,366 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,099 IT professionals currently interacting right now! If you are in the IT industry or are just a technology enthusiast, you might find just what you're looking for in DaniWeb. Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C# advertiser: Modernize Legacy Data with Sybase
TreeView was one of my favourite control in COM. It is well suited for creating Chart of Accounts, Hierarchical data and the like. Though there is a tree view in .Net I find it less flexible in comparison to COM TreeView.
The issue with using COM TreeView in C# is C# does not support optional parameters. Type.Missing it the way out.
The issue with using COM TreeView in C# is C# does not support optional parameters. Type.Missing it the way out.
Last edited : Feb 15th, 2008.
using MSComctlLib; Node NodX; private void Form1_Load(object sender, EventArgs e) { Object m = Type.Missing; Object i = "India"; NodX = axTreeView1.Nodes.Add(ref m, ref m, ref i, ref i, ref m, ref m); Object k = "Kerala"; Object rel = TreeRelationshipConstants.tvwChild; NodX = axTreeView1.Nodes.Add(ref i, ref rel, ref k, ref k, ref m, ref m); Object ka = "Karnataka"; NodX = axTreeView1.Nodes.Add(ref i, ref rel, ref ka, ref ka, ref m, ref m); Object ko = "Kochi"; NodX = axTreeView1.Nodes.Add(ref k, ref rel, ref ko, ref ko, ref m, ref m); NodX.EnsureVisible(); }
Post Comment
•
•
•
•
DaniWeb Marketplace (Sponsored Links)