By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,339 Members | 1,700 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,339 IT Pros & Developers. It's quick & easy.

Treeview with calendarNodes

P: n/a
Hy there,

is it possible to create dynamically calendarnodes within a treeview.
The first node (root) should be the year. Belonging to this the second node
should be the months.
The third node should be the weeks.

Is this possible or have I build it up static?

Joerg
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Joerg,

I see that this is unanswered while the answer should for this that it is
not difficult.

Making a sample from this is however the same as making the program.

Your biggest problem to overcome is to find the week (using the setting of
the first day of week). The rest should be easy in my opinion using a date
and this snippets of code

\\\
Dim d As DateTime = New Date(Now.Year, 1, 1)
'and than loop with the code beneath through the year
d = d.AddDays(1)
///

When there is a change of the week you should make a week tree, when there
is a change of the month etc etc.

I hope this helps something?

Cor
"Joerg Trumpfheller" <NO****@spearhead-home.com> schreef in bericht
news:cm**********@doiweb4.b2x.vwg...
Hy there,

is it possible to create dynamically calendarnodes within a treeview.
The first node (root) should be the year. Belonging to this the second
node
should be the months.
The third node should be the weeks.

Is this possible or have I build it up static?

Joerg

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.