Página 1 de 1

TreeView Save State

Publicado: Vie Jul 28, 2006 12:34 am
por awr
I want to save the state of my treeview so when the application starts, the
treeview is shown as I have it in the designer. How can I do this? Do I
programmatically have to do this? If so, what event should I program the
TreeViewItem states? The documentation lacks several of the events shown in
the designer event list.

TreeView Save State

Publicado: Vie Jul 28, 2006 1:38 am
por aross
I'm trying to experiment with the OnShow event to accopmlish what I want
below, but the OnShow event never seems to fire. Is the OnShow event working
or should I be placing the code in some other event on the TreeView control?
"Andrew W. Ross" <awr@jps.net> wrote in message
news:44c93f62$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
>I want to save the state of my treeview so when the application starts, the
>treeview is shown as I have it in the designer. How can I do this? Do I
>programmatically have to do this? If so, what event should I program the
>TreeViewItem states? The documentation lacks several of the events shown in
>the designer event list.
>

TreeView Save State

Publicado: Vie Jul 28, 2006 12:12 pm
por jfgimenez
Andrew,
> I'm trying to experiment with the OnShow event to accopmlish what I want
> below, but the OnShow event never seems to fire. Is the OnShow event
> working or should I be placing the code in some other event on the
> TreeView control?
The OnShow event is fired for a form when it's shown. For any child control
placed onto a form, it's fired only if it is shown from a hidden state, but
not when the container form is shown.
--
Regards,
Jose F. Gimenez
http://www.xailer.com

TreeView Save State

Publicado: Vie Jul 28, 2006 12:16 pm
por jfgimenez
Andrew,
>I want to save the state of my treeview so when the application starts, the
>treeview is shown as I have it in the designer. How can I do this? Do I
>programmatically have to do this? If so, what event should I program the
>TreeViewItem states? The documentation lacks several of the events shown in
>the designer event list.
The best event where do those kind of tasks if the form's OnInitialize
event. Please, take a look at this article:
http://sailingwithxailer.blogspot.com/2 ... nced-xaile r-techniques-what-happen.html
It explains step by step how a form is created, and what events are fired
and when.
--
Regards,
Jose F. Gimenez
http://www.xailer.com

TreeView Save State

Publicado: Vie Jul 28, 2006 6:50 pm
por aross
Jose,
Thanks. I had actually tried that with success but I was hoping to keep it
as part of the TreeView events -- no problemo.
I love the blog. I didn't realize you had such detailed help/tutorials
there. It's hidden below the border on the support page. But even so, I
though it was your typical user oriented blog. Good stuff! You should
promote sailingwithxailer more.
Love the product!
"Jose F. Gimenez" <jfgimenez@wanadoo.es> wrote in message
news:44c9e3ee$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
> Andrew,
>
>>I want to save the state of my treeview so when the application starts,
>>the treeview is shown as I have it in the designer. How can I do this? Do
>>I programmatically have to do this? If so, what event should I program the
>>TreeViewItem states? The documentation lacks several of the events shown
>>in the designer event list.
>
> The best event where do those kind of tasks if the form's OnInitialize
> event. Please, take a look at this article:
> http://sailingwithxailer.blogspot.com/2 ... nced-xaile r-techniques-what-happen.html
>
> It explains step by step how a form is created, and what events are fired
> and when.
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
>

TreeView Save State

Publicado: Lun Jul 31, 2006 11:51 am
por jfgimenez
Andrew,
> I love the blog. I didn't realize you had such detailed help/tutorials
> there. It's hidden below the border on the support page. But even so, I
> though it was your typical user oriented blog. Good stuff! You should
> promote sailingwithxailer more.
Yes, we'll write more articles soon ;-)
> Love the product!
Thanks!
--
Regards,
Jose F. Gimenez
http://www.xailer.com