473,406 Members | 2,369 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

problem with treeview and its reference in vb6

hi

i have a strange problem with my treeview i currently have in my pogram (in vb6) a week ago i placed a treeview on my form and did all the code for it etc and got it to work fine, i even made an .exe and sent it to a friend so he could have a look @ how my program was coming along and that worked fine (and still does on mine and his)

now (last night) i tried to run my program and i got a user-defined error on the line (in bold)
Expand|Select|Wrap|Line Numbers
  1.  
  2. Private Sub TreeView1_NodeClick(ByVal Node As MSComctlLib.Node)
  3. If TreeView1.SelectedItem.Text = "Ores" Then
  4. Txt_ItemName.Text = ""
  5. ElseIf TreeView1.SelectedItem.Text = "Minerals" Then
  6. Txt_ItemName.Text = ""
  7. Else
  8. If TreeView1.SelectedItem.Parent.Text = "Ores" Then
  9. Txt_ItemName.Text = ""
  10. Else
  11. Txt_ItemName.Text = TreeView1.SelectedItem.Text
  12. End If
  13. End If
  14. End Sub
  15.  
the treeview component doesnt appear on the left hand side and i searched for it in referneces and cant find it.

i think the treeview reference is comctl32.ocx or .dll
i have both of them in my system and system32 folder and tried to reference it , it either just freezes or it comes back with and error.

also where the treeview was it has now been switched with a pic box.

can anyone cast there wisdom on this ? and give tell me the name of the reference that i need
Jun 28 '08 #1
2 5741
debasisdas
8,127 Expert 4TB
it might happen the component is corrupted.

1.copy the file from some other system ,
2.store in the system32 folder
3.register with windows using REGSVR32 key

then try to use it again.
Jun 30 '08 #2
it might happen the component is corrupted.

1.copy the file from some other system ,
2.store in the system32 folder
3.register with windows using REGSVR32 key

then try to use it again.
nvm i fixed it (wasnt the above)
Jul 1 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Jeroen Ceuppens | last post by:
Hi, I want to make something that adds a TreeNode to the end of TreeView, that TreeView Looks like + Level 1 + Level 2 + Level 3 - Level last
4
by: David Elliott | last post by:
Hi, I have a Windows Explorer-like treeview that displays directories. After a cut/paste operation, I want the treeview to display the folder where the paste happened. But, I'm running into a...
3
by: Saradhi | last post by:
Hi All, Here I am facing a performance problem with the TreeView Node renaming. I am displaying a hierarchy Data in a treeview in my Windows C# Application. My tree view represents an...
2
by: jeff_m | last post by:
Hello, I'm having some trouble with a combination of these elements: the Session state, a Repeater control, a TreeView control, and a button. Here's the process: - User logs in (loginid...
3
by: Franky | last post by:
Been having a problem using a treeview. Work great the first time the form containing it is entered but not the second time. Took a while to create a small sample that exhibits the problem, but...
0
by: thirunavukarasukm | last post by:
Hai.. i have Problem with Treeview control...... i am developed one web application... i am have many aspx page in this project..but all page undercontrol with treeview .. i am alreay...
0
by: selvakumari | last post by:
I am populating a treeview in c# from XmlFile, and i have implemented a multiselection in that treeview by overriding treeview select events when ctrl or shift is pressed, which was written a...
0
by: Selva Kumari Padmanabhan | last post by:
hi, i am a new to c#, i hav 4months experience in C#, I am populating a treeview in c# from XmlFile, and i have implemented a multiselection in that treeview by overriding treeview select...
2
by: Selva Kumari Padmanabhan | last post by:
hi, i am a new to c#, i hav 4months experience in C#, I am populating a treeview in c# from XmlFile, and i have implemented a multiselection in that treeview by overriding treeview select...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.