473,883 Members | 1,598 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Treeview in .Net 2003

L.M
Hello,

I knew how to use the treeview under VB6. After migrating to .NET, well, I'm
lost.
I try to add a new node, either to the same level or as a child to a
selected node in the treeview.
However, either it only add it to the root level or it only add it on level
below, doesn't matter what I select. And in some case, I just get an
exception.

Does anyone have a short example of how to add a new node (same level/child)
to an existing treeview based on a selected node ?

I'm pretty sure I mess up with the index, but I'm really lost.

Here is what I do to add same level:

Sub InsertNode(ByRe f TreeviewRef As System.Windows. Forms.TreeView, ByVal
ImgIndex As Integer, ByVal SelImgIndex As Integer, ByVal NText As String,
ByVal NIndex As Integer, ByVal NTag As String)
' Add a node to a treeview. node will be added before the selection index.
' In : treeview, imgindex,selimg index,ntext,ind ex,tag
' Out : -
' Ret : -
' Call ex: InsertNode(Main TreeView, 0, 0, "Root",675,"tag ")
Dim oNode As New System.Windows. Forms.TreeNode
oNode.ImageInde x = ImgIndex
oNode.SelectedI mageIndex = SelImgIndex
oNode.Text = NText
oNode.Tag = NTag
TreeviewRef.Nod es.Insert(NInde x, oNode)
And what I do for child level:

Sub AddChildrenNode (ByRef TreeviewRef As System.Windows. Forms.TreeView,
ByVal NIndex As Integer, ByVal NTag As String)
' Add a children a node to a treeview under the current selection.
' In : treeview, index, tag
' Out : -
' Ret : -
' Call ex: AddChildrenNode (MainTreeView, 675, "xxx")

Dim oNode As New System.Windows. Forms.TreeNode
oNode.ImageInde x = 0
oNode.SelectedI mageIndex = 0
oNode.Text = "toto"
oNode.Tag = NTag
TreeviewRef.Nod es(NIndex).Node s.Add(oNode)
TreeviewRef.Nod es(NIndex).Expa nd()
End Sub
Thanks.

Nov 21 '05 #1
6 4936
Adding a new node to the selected node is done something like this:

' Create the new node

Dim myNewNode as new TreeNode
....
....

' Get the currently selected node

Dim theSelectedNode as TreeNode = myTree.Selected Node

If not theSelectedNode is nothing then

theSelectedNode .Nodes.Add ( myNewNode)

Else

' Error, attempting to add a new node when no node has been selected.

End If

"L.M" <nospam> wrote in message
news:OI******** ******@TK2MSFTN GP15.phx.gbl...
Hello,

I knew how to use the treeview under VB6. After migrating to .NET, well,
I'm
lost.
I try to add a new node, either to the same level or as a child to a
selected node in the treeview.
However, either it only add it to the root level or it only add it on
level
below, doesn't matter what I select. And in some case, I just get an
exception.

Does anyone have a short example of how to add a new node (same
level/child)
to an existing treeview based on a selected node ?

I'm pretty sure I mess up with the index, but I'm really lost.

Here is what I do to add same level:

Sub InsertNode(ByRe f TreeviewRef As System.Windows. Forms.TreeView, ByVal
ImgIndex As Integer, ByVal SelImgIndex As Integer, ByVal NText As String,
ByVal NIndex As Integer, ByVal NTag As String)
' Add a node to a treeview. node will be added before the selection index.
' In : treeview, imgindex,selimg index,ntext,ind ex,tag
' Out : -
' Ret : -
' Call ex: InsertNode(Main TreeView, 0, 0, "Root",675,"tag ")
Dim oNode As New System.Windows. Forms.TreeNode
oNode.ImageInde x = ImgIndex
oNode.SelectedI mageIndex = SelImgIndex
oNode.Text = NText
oNode.Tag = NTag
TreeviewRef.Nod es.Insert(NInde x, oNode)
And what I do for child level:

Sub AddChildrenNode (ByRef TreeviewRef As System.Windows. Forms.TreeView,
ByVal NIndex As Integer, ByVal NTag As String)
' Add a children a node to a treeview under the current selection.
' In : treeview, index, tag
' Out : -
' Ret : -
' Call ex: AddChildrenNode (MainTreeView, 675, "xxx")

Dim oNode As New System.Windows. Forms.TreeNode
oNode.ImageInde x = 0
oNode.SelectedI mageIndex = 0
oNode.Text = "toto"
oNode.Tag = NTag
TreeviewRef.Nod es(NIndex).Node s.Add(oNode)
TreeviewRef.Nod es(NIndex).Expa nd()
End Sub
Thanks.

Nov 21 '05 #2
L.M
Hello,

That make it, thanks a lot. It seems that the Index in the .Net treeview is
based on each node collection and not on the whole treeview content....
Might be a good thing as soon as you get used to it....

Next step is the drap and drop, it works fine. I just have the mouse pointer
instead of the node text+icon as in VB6.

"Robin Tucker" <id************ *************@r eallyidont.com> wrote in
message news:cj******** ***********@new s.demon.co.uk.. .
Adding a new node to the selected node is done something like this:

' Create the new node

Dim myNewNode as new TreeNode
...
...

' Get the currently selected node

Dim theSelectedNode as TreeNode = myTree.Selected Node

If not theSelectedNode is nothing then

theSelectedNode .Nodes.Add ( myNewNode)

Else

' Error, attempting to add a new node when no node has been selected.

End If

"L.M" <nospam> wrote in message
news:OI******** ******@TK2MSFTN GP15.phx.gbl...
Hello,

I knew how to use the treeview under VB6. After migrating to .NET, well,
I'm
lost.
I try to add a new node, either to the same level or as a child to a
selected node in the treeview.
However, either it only add it to the root level or it only add it on
level
below, doesn't matter what I select. And in some case, I just get an
exception.

Does anyone have a short example of how to add a new node (same
level/child)
to an existing treeview based on a selected node ?

I'm pretty sure I mess up with the index, but I'm really lost.

Here is what I do to add same level:

Sub InsertNode(ByRe f TreeviewRef As System.Windows. Forms.TreeView, ByVal
ImgIndex As Integer, ByVal SelImgIndex As Integer, ByVal NText As String, ByVal NIndex As Integer, ByVal NTag As String)
' Add a node to a treeview. node will be added before the selection index. ' In : treeview, imgindex,selimg index,ntext,ind ex,tag
' Out : -
' Ret : -
' Call ex: InsertNode(Main TreeView, 0, 0, "Root",675,"tag ")
Dim oNode As New System.Windows. Forms.TreeNode
oNode.ImageInde x = ImgIndex
oNode.SelectedI mageIndex = SelImgIndex
oNode.Text = NText
oNode.Tag = NTag
TreeviewRef.Nod es.Insert(NInde x, oNode)
And what I do for child level:

Sub AddChildrenNode (ByRef TreeviewRef As System.Windows. Forms.TreeView,
ByVal NIndex As Integer, ByVal NTag As String)
' Add a children a node to a treeview under the current selection.
' In : treeview, index, tag
' Out : -
' Ret : -
' Call ex: AddChildrenNode (MainTreeView, 675, "xxx")

Dim oNode As New System.Windows. Forms.TreeNode
oNode.ImageInde x = 0
oNode.SelectedI mageIndex = 0
oNode.Text = "toto"
oNode.Tag = NTag
TreeviewRef.Nod es(NIndex).Node s.Add(oNode)
TreeviewRef.Nod es(NIndex).Expa nd()
End Sub
Thanks.


Nov 21 '05 #3
Item drag and drag drop.....
Private Sub TreeView_ItemDr ag(ByVal sender As Object, ByVal e As
System.Windows. Forms.ItemDragE ventArgs) Handles TreeView.ItemDr ag

If e.Item Is Nothing Then
Exit Sub
End If

' Start the drag operation

DoDragDrop(...w hatever I'm dragging...mayb e a tree node (ie.
SelectedNode), DragDropEffects .Move Or DragDropEffects .Copy)

End Sub

Private Sub TreeView_DragDr op(ByVal sender As Object, ByVal e As
System.Windows. Forms.DragEvent Args) Handles TreeView.DragDr op

Dim mousePos As Point

mousePos = TreeView.PointT oClient(New Point(e.X, e.Y))

Dim nodeOver As TreeNode = TreeView.GetNod eAt(mousePos)

If nodeOver Is Nothing Then

' not dropping on a tree node...

Else

' dropping onto "node over"

End If

End Sub

"L.M" <nospam> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Hello,

That make it, thanks a lot. It seems that the Index in the .Net treeview
is
based on each node collection and not on the whole treeview content....
Might be a good thing as soon as you get used to it....

Next step is the drap and drop, it works fine. I just have the mouse
pointer
instead of the node text+icon as in VB6.

"Robin Tucker" <id************ *************@r eallyidont.com> wrote in
message news:cj******** ***********@new s.demon.co.uk.. .
Adding a new node to the selected node is done something like this:

' Create the new node

Dim myNewNode as new TreeNode
...
...

' Get the currently selected node

Dim theSelectedNode as TreeNode = myTree.Selected Node

If not theSelectedNode is nothing then

theSelectedNode .Nodes.Add ( myNewNode)

Else

' Error, attempting to add a new node when no node has been selected.

End If

"L.M" <nospam> wrote in message
news:OI******** ******@TK2MSFTN GP15.phx.gbl...
> Hello,
>
> I knew how to use the treeview under VB6. After migrating to .NET,
> well,
> I'm
> lost.
> I try to add a new node, either to the same level or as a child to a
> selected node in the treeview.
> However, either it only add it to the root level or it only add it on
> level
> below, doesn't matter what I select. And in some case, I just get an
> exception.
>
> Does anyone have a short example of how to add a new node (same
> level/child)
> to an existing treeview based on a selected node ?
>
> I'm pretty sure I mess up with the index, but I'm really lost.
>
> Here is what I do to add same level:
>
> Sub InsertNode(ByRe f TreeviewRef As System.Windows. Forms.TreeView,
> ByVal
> ImgIndex As Integer, ByVal SelImgIndex As Integer, ByVal NText As String, > ByVal NIndex As Integer, ByVal NTag As String)
> ' Add a node to a treeview. node will be added before the selection index. > ' In : treeview, imgindex,selimg index,ntext,ind ex,tag
> ' Out : -
> ' Ret : -
> ' Call ex: InsertNode(Main TreeView, 0, 0, "Root",675,"tag ")
> Dim oNode As New System.Windows. Forms.TreeNode
> oNode.ImageInde x = ImgIndex
> oNode.SelectedI mageIndex = SelImgIndex
> oNode.Text = NText
> oNode.Tag = NTag
> TreeviewRef.Nod es.Insert(NInde x, oNode)
>
>
> And what I do for child level:
>
> Sub AddChildrenNode (ByRef TreeviewRef As System.Windows. Forms.TreeView,
> ByVal NIndex As Integer, ByVal NTag As String)
> ' Add a children a node to a treeview under the current selection.
> ' In : treeview, index, tag
> ' Out : -
> ' Ret : -
> ' Call ex: AddChildrenNode (MainTreeView, 675, "xxx")
>
> Dim oNode As New System.Windows. Forms.TreeNode
> oNode.ImageInde x = 0
> oNode.SelectedI mageIndex = 0
> oNode.Text = "toto"
> oNode.Tag = NTag
> TreeviewRef.Nod es(NIndex).Node s.Add(oNode)
> TreeviewRef.Nod es(NIndex).Expa nd()
> End Sub
>
>
> Thanks.
>
>
>



Nov 21 '05 #4
L.M
Thanks, that's what I had, in a less nice way, but the same. However, is
there a way to get the icone/text under the mouse as it was in VB6 (or in
windows explorer when you drap/drop file/folder) ?
The funtion I was using in VB6 doesn't seems to exist anymore in .Net.

L.M
"Robin Tucker" <id************ *************@r eallyidont.com> wrote in
message news:cj******** ***********@new s.demon.co.uk.. .
Item drag and drag drop.....
Private Sub TreeView_ItemDr ag(ByVal sender As Object, ByVal e As
System.Windows. Forms.ItemDragE ventArgs) Handles TreeView.ItemDr ag

If e.Item Is Nothing Then
Exit Sub
End If

' Start the drag operation

DoDragDrop(...w hatever I'm dragging...mayb e a tree node (ie.
SelectedNode), DragDropEffects .Move Or DragDropEffects .Copy)

End Sub

Private Sub TreeView_DragDr op(ByVal sender As Object, ByVal e As
System.Windows. Forms.DragEvent Args) Handles TreeView.DragDr op

Dim mousePos As Point

mousePos = TreeView.PointT oClient(New Point(e.X, e.Y))

Dim nodeOver As TreeNode = TreeView.GetNod eAt(mousePos)

If nodeOver Is Nothing Then

' not dropping on a tree node...

Else

' dropping onto "node over"

End If

End Sub

"L.M" <nospam> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Hello,

That make it, thanks a lot. It seems that the Index in the .Net treeview
is
based on each node collection and not on the whole treeview content....
Might be a good thing as soon as you get used to it....

Next step is the drap and drop, it works fine. I just have the mouse
pointer
instead of the node text+icon as in VB6.

"Robin Tucker" <id************ *************@r eallyidont.com> wrote in
message news:cj******** ***********@new s.demon.co.uk.. .
Adding a new node to the selected node is done something like this:

' Create the new node

Dim myNewNode as new TreeNode
...
...

' Get the currently selected node

Dim theSelectedNode as TreeNode = myTree.Selected Node

If not theSelectedNode is nothing then

theSelectedNode .Nodes.Add ( myNewNode)

Else

' Error, attempting to add a new node when no node has been selected.
End If

"L.M" <nospam> wrote in message
news:OI******** ******@TK2MSFTN GP15.phx.gbl...
> Hello,
>
> I knew how to use the treeview under VB6. After migrating to .NET,
> well,
> I'm
> lost.
> I try to add a new node, either to the same level or as a child to a
> selected node in the treeview.
> However, either it only add it to the root level or it only add it on
> level
> below, doesn't matter what I select. And in some case, I just get an
> exception.
>
> Does anyone have a short example of how to add a new node (same
> level/child)
> to an existing treeview based on a selected node ?
>
> I'm pretty sure I mess up with the index, but I'm really lost.
>
> Here is what I do to add same level:
>
> Sub InsertNode(ByRe f TreeviewRef As System.Windows. Forms.TreeView,
> ByVal
> ImgIndex As Integer, ByVal SelImgIndex As Integer, ByVal NText As

String,
> ByVal NIndex As Integer, ByVal NTag As String)
> ' Add a node to a treeview. node will be added before the selection

index.
> ' In : treeview, imgindex,selimg index,ntext,ind ex,tag
> ' Out : -
> ' Ret : -
> ' Call ex: InsertNode(Main TreeView, 0, 0, "Root",675,"tag ")
> Dim oNode As New System.Windows. Forms.TreeNode
> oNode.ImageInde x = ImgIndex
> oNode.SelectedI mageIndex = SelImgIndex
> oNode.Text = NText
> oNode.Tag = NTag
> TreeviewRef.Nod es.Insert(NInde x, oNode)
>
>
> And what I do for child level:
>
> Sub AddChildrenNode (ByRef TreeviewRef As System.Windows. Forms.TreeView, > ByVal NIndex As Integer, ByVal NTag As String)
> ' Add a children a node to a treeview under the current selection.
> ' In : treeview, index, tag
> ' Out : -
> ' Ret : -
> ' Call ex: AddChildrenNode (MainTreeView, 675, "xxx")
>
> Dim oNode As New System.Windows. Forms.TreeNode
> oNode.ImageInde x = 0
> oNode.SelectedI mageIndex = 0
> oNode.Text = "toto"
> oNode.Tag = NTag
> TreeviewRef.Nod es(NIndex).Node s.Add(oNode)
> TreeviewRef.Nod es(NIndex).Expa nd()
> End Sub
>
>
> Thanks.
>
>
>



Nov 21 '05 #5
Not sure what you mean by Icon/Text under the mouse. When dragging from
explorer, you will have a String() array (I expect) in the Data property.

ie. :

' Determine if the drag drop is one of our supported drop formats

If e.Data.GetDataP resent(DataForm ats.FileDrop) Then

' Get the files...

Dim theFiles As String() =
DirectCast(e.Da ta.GetData(Data Formats.FileDro p), String())

.....

End If

End If

"L.M" <nospam> wrote in message
news:eT******** ******@TK2MSFTN GP15.phx.gbl...
Thanks, that's what I had, in a less nice way, but the same. However, is
there a way to get the icone/text under the mouse as it was in VB6 (or in
windows explorer when you drap/drop file/folder) ?
The funtion I was using in VB6 doesn't seems to exist anymore in .Net.

L.M
"Robin Tucker" <id************ *************@r eallyidont.com> wrote in
message news:cj******** ***********@new s.demon.co.uk.. .
Item drag and drag drop.....
Private Sub TreeView_ItemDr ag(ByVal sender As Object, ByVal e As
System.Windows. Forms.ItemDragE ventArgs) Handles TreeView.ItemDr ag

If e.Item Is Nothing Then
Exit Sub
End If

' Start the drag operation

DoDragDrop(...w hatever I'm dragging...mayb e a tree node (ie.
SelectedNode), DragDropEffects .Move Or DragDropEffects .Copy)

End Sub

Private Sub TreeView_DragDr op(ByVal sender As Object, ByVal e As
System.Windows. Forms.DragEvent Args) Handles TreeView.DragDr op

Dim mousePos As Point

mousePos = TreeView.PointT oClient(New Point(e.X, e.Y))

Dim nodeOver As TreeNode = TreeView.GetNod eAt(mousePos)

If nodeOver Is Nothing Then

' not dropping on a tree node...

Else

' dropping onto "node over"

End If

End Sub

"L.M" <nospam> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
> Hello,
>
> That make it, thanks a lot. It seems that the Index in the .Net
> treeview
> is
> based on each node collection and not on the whole treeview content....
> Might be a good thing as soon as you get used to it....
>
> Next step is the drap and drop, it works fine. I just have the mouse
> pointer
> instead of the node text+icon as in VB6.
>
>
>
> "Robin Tucker" <id************ *************@r eallyidont.com> wrote in
> message news:cj******** ***********@new s.demon.co.uk.. .
>> Adding a new node to the selected node is done something like this:
>>
>> ' Create the new node
>>
>> Dim myNewNode as new TreeNode
>> ...
>> ...
>>
>> ' Get the currently selected node
>>
>> Dim theSelectedNode as TreeNode = myTree.Selected Node
>>
>> If not theSelectedNode is nothing then
>>
>> theSelectedNode .Nodes.Add ( myNewNode)
>>
>> Else
>>
>> ' Error, attempting to add a new node when no node has been selected. >>
>> End If
>>
>> "L.M" <nospam> wrote in message
>> news:OI******** ******@TK2MSFTN GP15.phx.gbl...
>> > Hello,
>> >
>> > I knew how to use the treeview under VB6. After migrating to .NET,
>> > well,
>> > I'm
>> > lost.
>> > I try to add a new node, either to the same level or as a child to a
>> > selected node in the treeview.
>> > However, either it only add it to the root level or it only add it
>> > on
>> > level
>> > below, doesn't matter what I select. And in some case, I just get an
>> > exception.
>> >
>> > Does anyone have a short example of how to add a new node (same
>> > level/child)
>> > to an existing treeview based on a selected node ?
>> >
>> > I'm pretty sure I mess up with the index, but I'm really lost.
>> >
>> > Here is what I do to add same level:
>> >
>> > Sub InsertNode(ByRe f TreeviewRef As System.Windows. Forms.TreeView,
>> > ByVal
>> > ImgIndex As Integer, ByVal SelImgIndex As Integer, ByVal NText As
> String,
>> > ByVal NIndex As Integer, ByVal NTag As String)
>> > ' Add a node to a treeview. node will be added before the selection
> index.
>> > ' In : treeview, imgindex,selimg index,ntext,ind ex,tag
>> > ' Out : -
>> > ' Ret : -
>> > ' Call ex: InsertNode(Main TreeView, 0, 0, "Root",675,"tag ")
>> > Dim oNode As New System.Windows. Forms.TreeNode
>> > oNode.ImageInde x = ImgIndex
>> > oNode.SelectedI mageIndex = SelImgIndex
>> > oNode.Text = NText
>> > oNode.Tag = NTag
>> > TreeviewRef.Nod es.Insert(NInde x, oNode)
>> >
>> >
>> > And what I do for child level:
>> >
>> > Sub AddChildrenNode (ByRef TreeviewRef As System.Windows. Forms.TreeView, >> > ByVal NIndex As Integer, ByVal NTag As String)
>> > ' Add a children a node to a treeview under the current selection.
>> > ' In : treeview, index, tag
>> > ' Out : -
>> > ' Ret : -
>> > ' Call ex: AddChildrenNode (MainTreeView, 675, "xxx")
>> >
>> > Dim oNode As New System.Windows. Forms.TreeNode
>> > oNode.ImageInde x = 0
>> > oNode.SelectedI mageIndex = 0
>> > oNode.Text = "toto"
>> > oNode.Tag = NTag
>> > TreeviewRef.Nod es(NIndex).Node s.Add(oNode)
>> > TreeviewRef.Nod es(NIndex).Expa nd()
>> > End Sub
>> >
>> >
>> > Thanks.
>> >
>> >
>> >
>>
>>
>
>



Nov 21 '05 #6
L.M
I mean an equivalent to :
TreeView1.DragI con = TreeView1.Selec tedItem.CreateD ragImage
from VB6 but in VB.Net

"Robin Tucker" <id************ *************@r eallyidont.com> wrote in
message news:cj******** ***********@new s.demon.co.uk.. .
Not sure what you mean by Icon/Text under the mouse. When dragging from
explorer, you will have a String() array (I expect) in the Data property.

ie. :

' Determine if the drag drop is one of our supported drop formats

If e.Data.GetDataP resent(DataForm ats.FileDrop) Then

' Get the files...

Dim theFiles As String() =
DirectCast(e.Da ta.GetData(Data Formats.FileDro p), String())

.....

End If

End If

Nov 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2768
by: Steve | last post by:
Visual Studio 2003 .NET / C# I have a treeview object on a form which acts as the main menu controller for my application. the treeview is always in sight, and the form it is on acts as the main container for the whole application. All other screens are UserControls, which get added and removed from/to the main form, when the user clicks an item on the tree view. I thought the best way to handle navigating around would be to define...
6
20078
by: Brian Smith | last post by:
Is there a way to avoid the default action of TreeNode expansion/contraction caused by double click? I can add an event handler to pop up my properties dialog on double click, but it has the unintended side-effect of toggling the expansion of that subtree. Thanks in advance, Brian
3
3241
by: Soul | last post by:
Hi, I am learning C# at the moment. I am trying to develop a simple program that will get data from a MS Access database into a dataSet. The result of dataSet should be something like: Year Semester Code Task --------------------------------------------------- "2003" "One" "CSE9020" "Deliverable Item 1" "2003" "One" "CSE9020" "Deliverable Item 2"
1
15559
by: Rasmus | last post by:
I need to grab focus to a specific node i my treeview when I click on my listbox. Here's the code that differs between the different event i the listBox: private void listBox1_SelectedIndexChanged(object sender, System.EventArgs e) { string selected; selected = this.listBox1.SelectedItem.ToString(); if(selected == "Error in Supercell 1") {
1
1732
by: Shailendra Batham | last post by:
Hey guys I am using the IE Web controls treeview control. I popuplate the treeview with XML and it looks fine........... my question is how can I add a right click popup menu to the treeview control so it shows when a user right clicks a node in the tree. Does any1 have any tips and tricks to enhance the treeview control. thanks,
6
1369
by: Chris Marsh | last post by:
I have setup a treeview on my XP desktop and it displays data yet on the Windows 2003 Server it will not display the treeview. Does anyone have a clue on how to make this function on 2003 Server? thanks
14
6841
by: Evan Kontos | last post by:
I am trying to implement a Treeview w/an XML file and I even copied and pasted examples from MSDN but can't get them to work. Any suggestions welcome. XML File <TREENODES> <TREENODE TEXT="Document-1"> <TREENODE TEXT="Folder-1" EXPANDED="true"> <TREENODE TEXT="Document-2" />
5
2017
by: david | last post by:
I do not know if there is a treeView control for web form in .NET 1.1. I know there is IE Webcontrol package which has the treeview control for ..net 1.0. I have tested it in .net 1.1 before. It did not work. About the status of it now? Is there any alternative for TreeView control for web form in .net 1.1 and Visual Studio 2003? How about .net 2.0 and Visual Studio 2005? Thank tou David
2
1562
by: casManG | last post by:
I am working on a small project that uses the treeview control in .net 2003. I have a tree view that I am sending to a sub in order to iterate through the nodes. Public Sub test (ByVal inTreeView as Tree View) But, the thing I want to do with the inTreeView requires me to expand all the nodes before I iterate. The problem is that when the sub is complete, the original tree view on my form ends up with all of the nodes expanded I had...
0
9933
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9779
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11114
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10407
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9563
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7114
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5787
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5982
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3230
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.