Click here to Skip to main content
15,867,838 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
I have a treeview with several nodes. Each node contains file extensions. When i select a node, corresponding files are listed in a listview. But when the listview gets a scroll bar, the treeview disappears. What is the problem? :-(
Posted
Updated 1-May-11 23:31pm
v2
Comments
Ankit Rajput 2-May-11 5:25am    
Can you please provide the code?
It will help to analyze your problem.
Sandeep Mewara 2-May-11 5:27am    
How do you expect us to reply such a question? Do you think we can read mind or are magician to know what you are doing?

This is not the standard behaviour and surely you are doing something wrong and is hard to tell on based on the info that you provide and ask.
RAJI @Codeproject 2-May-11 5:40am    
sorry gys!!!!

here s the code


private void treeView1_DoubleClick(object sender, EventArgs e)
{

listView1.Items.Clear();
if (treeView1.SelectedNode != null)
{

GetFileList(treeView1.SelectedNode.Name); //Name is an extension like '*.txt'
}
}
dan!sh 2-May-11 6:10am    
Is it a web application or a windows application? Are you adding treeview dynamically?
RAJI @Codeproject 2-May-11 6:18am    
its windows application. not dynamically added. if i minimize and maximize the window it reappears.honestly dont know wats the problem..

1 solution

Hi,

Try to refresh your form after loading the listview.
It might be the problem of GUI or Display.

Regards
AR
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900