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.
In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
TreeView Save State
TreeView Save State
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.
>
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
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
> 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
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
>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
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
>
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
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
> 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