General information
Category:
Coding, syntax & commands
>I am having a problem with the treeview control which is causing me a lot of grief. I have a couple of forms using the treeview without any apparent problems. I can refresh the data in the treeview (via some changed date parameters) and it refreshes fine. However, if I print from this form (ie, do a print preview) the next time I refresh the data, I generate a GPF page fault. The refresh, by the way, clears all the nodes and reloads them. This all works fine if I don't print preview. If I do a print to printer, all is well.
>
>I have another form with a treeview and it exhibits similar problems, unless another form has been opened on top of it, gone through a save routine and then closed.
>
>It seems as if having another form on top of the form with the treeview control causes some problems. I am wondering if anyone else has experienced any problems with the treeview and what the problem is related to. I know the GPF occurs when I do an add to the node collection.
>
>Thanks.
After talking to Microsoft, I reproduced the problem with a small project file. Just beware. I have one form with a two page pageframe. on each page is an object that contains a treeview control, an imagelist control and a textbox that accepts a year and when the refresh button on the form is pressed, updates the treeview with a list of twelve years starting with the entered year. This form works fine and either treeview can be udpated and everything works great. I can refresh until the cows come home. I have another button on the form called modal window. This button pops up a blank modal window. When the modal window closes the next refresh causes a GPF when adding the first updated node value on the SECOND treeview control.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only