The below problem occurs randomly too, but I've managed to isolate a
sequence of events when it always happens:
I have two forms (say Form1 and Form2). Form 1 contains a TreeView control.
A button from Form1 opens Form2 and a button in Form2 sends the user back to
Form1.
When the user goes back to Form1 from Form2, the TreeView control rebuilds
the nodes incredibly slowly. You can see the progress, as the scroll bar
slowly starts sliding down. It normally takes around 30 seconds to rebuild
the tree. When the tree is finished, every node is fully expanded. Also,
when I go into edit mode, the TreeView control displays all the data, rather
than the more usual "Sample Node" mini-tree.
Can anyone help? The TreeView control is essential to my application, and I
can't expect users to wait 30 seconds each time they switch between forms
while the TreeView does its very weird stuff.
Thanks
Jim 9 1996
On Mon, 23 Feb 2004 23:05:35 -0000, Jim wrote: The below problem occurs randomly too, but I've managed to isolate a sequence of events when it always happens:
I have two forms (say Form1 and Form2). Form 1 contains a TreeView control. A button from Form1 opens Form2 and a button in Form2 sends the user back to Form1.
When the user goes back to Form1 from Form2, the TreeView control rebuilds the nodes incredibly slowly. You can see the progress, as the scroll bar slowly starts sliding down. It normally takes around 30 seconds to rebuild the tree. When the tree is finished, every node is fully expanded. Also, when I go into edit mode, the TreeView control displays all the data, rather than the more usual "Sample Node" mini-tree.
Can anyone help? The TreeView control is essential to my application, and I can't expect users to wait 30 seconds each time they switch between forms while the TreeView does its very weird stuff.
Thanks Jim
Is it possible to move the rebuilding of the tree to an event that dosen't
run as frequently? I get the feeling you are doing it OnActivate or the
like.
--
Mike Storr www.veraccess.com
hmm, not clear why TV starts to rebuild. do you have some code for this run
when you switch to form? normally it just stays as it is when form
activated/deactiuvated
--
Alex Dybenko (MVP) http://Alex.Dybenko.com
"Jim" <ji**********@nospam.virgin.net> wrote in message
news:4Gv_b.1312$ta.723@newsfe1-win... The below problem occurs randomly too, but I've managed to isolate a sequence of events when it always happens:
I have two forms (say Form1 and Form2). Form 1 contains a TreeView
control. A button from Form1 opens Form2 and a button in Form2 sends the user back
to Form1.
When the user goes back to Form1 from Form2, the TreeView control rebuilds the nodes incredibly slowly. You can see the progress, as the scroll bar slowly starts sliding down. It normally takes around 30 seconds to rebuild the tree. When the tree is finished, every node is fully expanded. Also, when I go into edit mode, the TreeView control displays all the data,
rather than the more usual "Sample Node" mini-tree.
Can anyone help? The TreeView control is essential to my application, and
I can't expect users to wait 30 seconds each time they switch between forms while the TreeView does its very weird stuff.
Thanks Jim
That's why it's so bizarre. I only build the tree once, yet when I switch
between forms, it rebuilds itself extremely slowly. if i get a chance, i'll
try and replicate it and give you a url to a db so you can see for yourself.
By the way, the problem fixes itself if i remove and readd the tree .... but
only temporarily.
Thanks
Jim
"Alex Dybenko" <al**@PLEASE.cemi.NO.rssi.SPAM.ru> wrote in message
news:eH****************@TK2MSFTNGP10.phx.gbl... hmm, not clear why TV starts to rebuild. do you have some code for this
run when you switch to form? normally it just stays as it is when form activated/deactiuvated
-- Alex Dybenko (MVP) http://Alex.Dybenko.com
"Jim" <ji**********@nospam.virgin.net> wrote in message news:4Gv_b.1312$ta.723@newsfe1-win... The below problem occurs randomly too, but I've managed to isolate a sequence of events when it always happens:
I have two forms (say Form1 and Form2). Form 1 contains a TreeView control. A button from Form1 opens Form2 and a button in Form2 sends the user
back to Form1.
When the user goes back to Form1 from Form2, the TreeView control
rebuilds the nodes incredibly slowly. You can see the progress, as the scroll bar slowly starts sliding down. It normally takes around 30 seconds to
rebuild the tree. When the tree is finished, every node is fully expanded. Also, when I go into edit mode, the TreeView control displays all the data, rather than the more usual "Sample Node" mini-tree.
Can anyone help? The TreeView control is essential to my application,
and I can't expect users to wait 30 seconds each time they switch between
forms while the TreeView does its very weird stuff.
Thanks Jim
Try turning off the option "Track name AutoCorrect info"?
This causes a slowdown of complex forms once the design is changed.
--
Bradley
Software Developer www.hrsystems.com.au
A Christian Response www.pastornet.net.au/response
"Jim" <ji**********@nospam.virgin.net> wrote in message
news:42a%b.20710$ft.20607@newsfe1-win... That's why it's so bizarre. I only build the tree once, yet when I switch between forms, it rebuilds itself extremely slowly. if i get a chance,
i'll try and replicate it and give you a url to a db so you can see for
yourself. By the way, the problem fixes itself if i remove and readd the tree ....
but only temporarily.
Thanks Jim
"Alex Dybenko" <al**@PLEASE.cemi.NO.rssi.SPAM.ru> wrote in message news:eH****************@TK2MSFTNGP10.phx.gbl... hmm, not clear why TV starts to rebuild. do you have some code for this
run when you switch to form? normally it just stays as it is when form activated/deactiuvated
-- Alex Dybenko (MVP) http://Alex.Dybenko.com
"Jim" <ji**********@nospam.virgin.net> wrote in message news:4Gv_b.1312$ta.723@newsfe1-win... The below problem occurs randomly too, but I've managed to isolate a sequence of events when it always happens:
I have two forms (say Form1 and Form2). Form 1 contains a TreeView control. A button from Form1 opens Form2 and a button in Form2 sends the user back to Form1.
When the user goes back to Form1 from Form2, the TreeView control rebuilds the nodes incredibly slowly. You can see the progress, as the scroll
bar slowly starts sliding down. It normally takes around 30 seconds to rebuild the tree. When the tree is finished, every node is fully expanded.
Also, when I go into edit mode, the TreeView control displays all the data, rather than the more usual "Sample Node" mini-tree.
Can anyone help? The TreeView control is essential to my application, and I can't expect users to wait 30 seconds each time they switch between forms while the TreeView does its very weird stuff.
Thanks Jim
Bradley
Thanks for your reply. It sounded like a great idea, and something I
would never have thought of. Unfortunately though, it didn't work.
I've now isolated the offending line, which is:
xTree.Object.Nodes.Clear
in the Form_Open sub (xTree being the instance of the Tree Control)
Can anyone tell me if I'm doing something blatently wrong? As I
mentioned in a previous post, I don't get this problem on other PCs,
yet the offending line, if removed, removes the problem on my PC.
Thanks
Jim
"Bradley" <br*****@REMOVETHIScomcen.com.au> wrote in message news:<k4*****************@news-server.bigpond.net.au>... Try turning off the option "Track name AutoCorrect info"?
This causes a slowdown of complex forms once the design is changed. -- Bradley Software Developer www.hrsystems.com.au A Christian Response www.pastornet.net.au/response
"Jim" <ji**********@nospam.virgin.net> wrote in message news:42a%b.20710$ft.20607@newsfe1-win... That's why it's so bizarre. I only build the tree once, yet when I switch between forms, it rebuilds itself extremely slowly. if i get a chance, i'll try and replicate it and give you a url to a db so you can see for yourself. By the way, the problem fixes itself if i remove and readd the tree ....
but only temporarily.
Thanks Jim
Hi,
1. do not use form Open event - use only Load event to work with activex
controls
2. during clear operation TV redraws a lot, so try to switch it off:
SendMessage oTV.hWnd, WM_SETREDRAW, 0, ByVal 0&
oTV.Nodes.Clear
SendMessage oTV.hWnd, WM_SETREDRAW, 1, ByVal 0&
in declration section:
Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" _
(ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As _
Any) As Long
Public Const WM_SETREDRAW = &HB
HTH
--
Alex Dybenko (MVP) http://Alex.Dybenko.com http://www.PointLtd.com
"Jim" <js*****@hotmail.com> wrote in message
news:5c*************************@posting.google.co m... Bradley
Thanks for your reply. It sounded like a great idea, and something I would never have thought of. Unfortunately though, it didn't work.
I've now isolated the offending line, which is:
xTree.Object.Nodes.Clear
in the Form_Open sub (xTree being the instance of the Tree Control)
Can anyone tell me if I'm doing something blatently wrong? As I mentioned in a previous post, I don't get this problem on other PCs, yet the offending line, if removed, removes the problem on my PC.
Thanks Jim
"Bradley" <br*****@REMOVETHIScomcen.com.au> wrote in message
news:<k4*****************@news-server.bigpond.net.au>... Try turning off the option "Track name AutoCorrect info"?
This causes a slowdown of complex forms once the design is changed. -- Bradley Software Developer www.hrsystems.com.au A Christian Response www.pastornet.net.au/response
"Jim" <ji**********@nospam.virgin.net> wrote in message news:42a%b.20710$ft.20607@newsfe1-win... That's why it's so bizarre. I only build the tree once, yet when I
switch between forms, it rebuilds itself extremely slowly. if i get a chance, i'll try and replicate it and give you a url to a db so you can see for yourself. By the way, the problem fixes itself if i remove and readd the tree
..... but only temporarily.
Thanks Jim
Alex, I can't thank you enough. This has worked perfectly!!!
Jim
"Alex Dybenko" <al**@PLEASE.cemi.NO.rssi.SPAM.ru> wrote in message news:<ue**************@TK2MSFTNGP10.phx.gbl>... Hi, 1. do not use form Open event - use only Load event to work with activex controls 2. during clear operation TV redraws a lot, so try to switch it off:
SendMessage oTV.hWnd, WM_SETREDRAW, 0, ByVal 0& oTV.Nodes.Clear SendMessage oTV.hWnd, WM_SETREDRAW, 1, ByVal 0&
in declration section: Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" _ (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As _ Any) As Long
Public Const WM_SETREDRAW = &HB
HTH -- Alex Dybenko (MVP) http://Alex.Dybenko.com http://www.PointLtd.com "Jim" <js*****@hotmail.com> wrote in message news:5c*************************@posting.google.co m... Bradley
Thanks for your reply. It sounded like a great idea, and something I would never have thought of. Unfortunately though, it didn't work.
I've now isolated the offending line, which is:
xTree.Object.Nodes.Clear
in the Form_Open sub (xTree being the instance of the Tree Control)
Can anyone tell me if I'm doing something blatently wrong? As I mentioned in a previous post, I don't get this problem on other PCs, yet the offending line, if removed, removes the problem on my PC.
Thanks Jim
"Bradley" <br*****@REMOVETHIScomcen.com.au> wrote in message news:<k4*****************@news-server.bigpond.net.au>... Try turning off the option "Track name AutoCorrect info"?
This causes a slowdown of complex forms once the design is changed. -- Bradley Software Developer www.hrsystems.com.au A Christian Response www.pastornet.net.au/response
"Jim" <ji**********@nospam.virgin.net> wrote in message news:42a%b.20710$ft.20607@newsfe1-win... > That's why it's so bizarre. I only build the tree once, yet when I switch > between forms, it rebuilds itself extremely slowly. if i get a chance, i'll > try and replicate it and give you a url to a db so you can see for yourself. > > By the way, the problem fixes itself if i remove and readd the tree .... but > only temporarily. > > Thanks > Jim
Jim <js*****@hotmail.com> wrote in message
news:5c**************************@posting.google.c om... Alex, I can't thank you enough. This has worked perfectly!!!
Jim
"Alex Dybenko" <al**@PLEASE.cemi.NO.rssi.SPAM.ru> wrote in message
news:<ue**************@TK2MSFTNGP10.phx.gbl>... Hi, 1. do not use form Open event - use only Load event to work with activex controls 2. during clear operation TV redraws a lot, so try to switch it off:
SendMessage oTV.hWnd, WM_SETREDRAW, 0, ByVal 0& oTV.Nodes.Clear SendMessage oTV.hWnd, WM_SETREDRAW, 1, ByVal 0&
in declration section: Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" _ (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As
_ Any) As Long
Public Const WM_SETREDRAW = &HB
HTH -- Alex Dybenko (MVP) http://Alex.Dybenko.com http://www.PointLtd.com "Jim" <js*****@hotmail.com> wrote in message news:5c*************************@posting.google.co m... Bradley
Thanks for your reply. It sounded like a great idea, and something I would never have thought of. Unfortunately though, it didn't work.
I've now isolated the offending line, which is:
xTree.Object.Nodes.Clear
in the Form_Open sub (xTree being the instance of the Tree Control)
Can anyone tell me if I'm doing something blatently wrong? As I mentioned in a previous post, I don't get this problem on other PCs, yet the offending line, if removed, removes the problem on my PC.
Thanks Jim
"Bradley" <br*****@REMOVETHIScomcen.com.au> wrote in message news:<k4*****************@news-server.bigpond.net.au>... > Try turning off the option "Track name AutoCorrect info"? > > This causes a slowdown of complex forms once the design is changed. > -- > Bradley > Software Developer www.hrsystems.com.au > A Christian Response www.pastornet.net.au/response > > "Jim" <ji**********@nospam.virgin.net> wrote in message > news:42a%b.20710$ft.20607@newsfe1-win... > > That's why it's so bizarre. I only build the tree once, yet when I switch > > between forms, it rebuilds itself extremely slowly. if i get a
chance, i'll > > try and replicate it and give you a url to a db so you can see for yourself. > > > > By the way, the problem fixes itself if i remove and readd the
tree .... but > > only temporarily. > > > > Thanks > > Jim
Jim <js*****@hotmail.com> wrote in message
news:5c**************************@posting.google.c om... Alex, I can't thank you enough. This has worked perfectly!!!
Jim
"Alex Dybenko" <al**@PLEASE.cemi.NO.rssi.SPAM.ru> wrote in message
news:<ue**************@TK2MSFTNGP10.phx.gbl>... Hi, 1. do not use form Open event - use only Load event to work with activex controls 2. during clear operation TV redraws a lot, so try to switch it off:
SendMessage oTV.hWnd, WM_SETREDRAW, 0, ByVal 0& oTV.Nodes.Clear SendMessage oTV.hWnd, WM_SETREDRAW, 1, ByVal 0&
in declration section: Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" _ (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As
_ Any) As Long
Public Const WM_SETREDRAW = &HB
HTH -- Alex Dybenko (MVP) http://Alex.Dybenko.com http://www.PointLtd.com "Jim" <js*****@hotmail.com> wrote in message news:5c*************************@posting.google.co m... Bradley
Thanks for your reply. It sounded like a great idea, and something I would never have thought of. Unfortunately though, it didn't work.
I've now isolated the offending line, which is:
xTree.Object.Nodes.Clear
in the Form_Open sub (xTree being the instance of the Tree Control)
Can anyone tell me if I'm doing something blatently wrong? As I mentioned in a previous post, I don't get this problem on other PCs, yet the offending line, if removed, removes the problem on my PC.
Thanks Jim
"Bradley" <br*****@REMOVETHIScomcen.com.au> wrote in message news:<k4*****************@news-server.bigpond.net.au>... > Try turning off the option "Track name AutoCorrect info"? > > This causes a slowdown of complex forms once the design is changed. > -- > Bradley > Software Developer www.hrsystems.com.au > A Christian Response www.pastornet.net.au/response > > "Jim" <ji**********@nospam.virgin.net> wrote in message > news:42a%b.20710$ft.20607@newsfe1-win... > > That's why it's so bizarre. I only build the tree once, yet when I switch > > between forms, it rebuilds itself extremely slowly. if i get a
chance, i'll > > try and replicate it and give you a url to a db so you can see for yourself. > > > > By the way, the problem fixes itself if i remove and readd the
tree .... but > > only temporarily. > > > > Thanks > > Jim This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: SoKool |
last post by:
Can anyone point me to a site where I can get a free treeview control to use in ASP .NET or any tutorial that can help me build my own treeview control.
I intend to use a treeview to generate a...
|
by: Hrvoje Voda |
last post by:
What is wrong in this code?
private void tree_KeyDown(object sender, System.Windows.Forms.KeyEventArgs
e)
{
if (e.KeyCode == Keys.Enter )
{
|
by: Peter |
last post by:
Hello,
We are inserting a side menu to our application using a class that is
writing HTML on all our pages. This is a part of the code as an
example:
writer.Write(" <table WIDTH=""100%""...
|
by: Ben Coats |
last post by:
Hey,
I'm trying to find code for an Explorer-style Directory ComboBox. (You know, it display "Desktop", "My Computer", all drives, etc., but it has a treeview control inside the combobox so that...
|
by: musosdev |
last post by:
Hi guys
I was using the Microsoft.Web.UI.WebControls extra namespace in my
application to provide me with a TreeView control. I was using specifically
..GetNodeFromIndex(), SelectedNodeIndex and...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |