Very nice quick start on TreeView, which seems tio have very little in the way of teaching materials. Thank you.
@mkaatr14 жыл бұрын
@ddsharper Hi there... The reason for the error is that there is some kind of conflict in the naming. VB.NET uses the name space to distinguish between different libraries that have the same name. For example you can have : Module1.Test() Module2.Test() and you can still call any one of these even though they have the same name(Test). As for the error itself. I think if we use "System.Windows.Forms.TreeNode" it will be more correct and the error will be gone as well. yours
@imhackedagain9 жыл бұрын
Would you know how to make like a hover bar over the image and text, well behind it, like custom hover bar. that follows the mouse, like the start menu does on Windows 7 in the list section, and I know it uses tree view in the big list "back list" section and I don't see that in my vb 2015. I am asking because I am trying to make my own start menu.
@mkaatr14 жыл бұрын
@ddsharper Hi there... long time no see. Hope you are doing fine. This error means that the compiler can't identify what this data type/class consist of and how to create it. This is kind of strange, since the Windows.Forms.TreeNode class is already provided for you to use. Can you give more details about it? For example, are you using this in a Module? a Class? and what is the Project Type you are using? is it a Class Library? Console App? or something else? yours.
@MKhP77 жыл бұрын
How to make this example in (VB 6.0)
@mkaatr14 жыл бұрын
@ddsharper Hi there... whenever you want to expand all the nodes, just call expandall. TreeView1.ExpandAll() you can call this method after filling the tree in the form load event to make sure that the tree nodes appear expanded.
@Mr22gang12 жыл бұрын
Thanks! You solved my problem!
@Robcerati10 жыл бұрын
So how do they get saved when the application is closed and then reopened.
@mkaatr10 жыл бұрын
Call the savetree function in the form_closing event of the main form. Call the loadtree function in the load event of the main form. savetree and loadtree saves and loads a tree to/from a file or database.
@charlesreycazares438710 жыл бұрын
mkaatr Can you explain or do a video on how to save the treeview using my.settings (application settings) :)