Click here to Skip to main content
15,909,822 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionDetection of video play Pin
pavan g9-Aug-06 1:58
pavan g9-Aug-06 1:58 
AnswerRe: Detection of video play Pin
Dave Kreskowiak9-Aug-06 4:55
mveDave Kreskowiak9-Aug-06 4:55 
GeneralRe: Detection of video play [modified] Pin
pavan g9-Aug-06 18:01
pavan g9-Aug-06 18:01 
GeneralRe: Detection of video play [modified] Pin
Dave Kreskowiak10-Aug-06 2:15
mveDave Kreskowiak10-Aug-06 2:15 
GeneralRe: Detection of video play Pin
pavan g10-Aug-06 20:08
pavan g10-Aug-06 20:08 
Questiondynamic crystal report Pin
Pradip Kishore9-Aug-06 1:28
Pradip Kishore9-Aug-06 1:28 
QuestionHow to Populate TreeView from multiple tables Pin
jo_eylee9-Aug-06 0:17
jo_eylee9-Aug-06 0:17 
AnswerRe: How to Populate TreeView from multiple tables Pin
Leah_Garrett9-Aug-06 3:11
Leah_Garrett9-Aug-06 3:11 
I have done something similar to this.

I made one table that contained the data I wanted all in one table, all in order. The data had a three level hierarcy (Parent - 1, child - 2, grandchild -3). So when I looped through the table I would check the level and create a node accordingly.

    Private Sub PopulateNavigationTree()<br />
        TopicTreeView.BeginUpdate()<br />
<br />
        TopicTreeView.Nodes.Clear()<br />
<br />
        Dim parentNode As TreeNode<br />
        Dim childNode As TreeNode<br />
        'Dim fullPath As String<br />
<br />
        Dim iLevel As Integer = 0<br />
<br />
        Dim baseNode As TreeNode = TopicTreeView.Nodes.Add("Topics")<br />
<br />
        ' init to valid values for safety<br />
        parentNode = baseNode<br />
        childNode = baseNode<br />
<br />
        Dim myRow As DataRow<br />
        If m_TreeDataSet.Tables.Count > 0 Then<br />
            If m_TreeDataSet.Tables(0).Rows.Count > 0 Then<br />
<br />
                For Each myRow In m_TreeDataSet.Tables(0).Rows<br />
                    iLevel = CType(myRow.Item("Level").ToString, Integer)<br />
                    If iLevel = 1 Then<br />
                        parentNode = baseNode.Nodes.Add(myRow.Item("Topic").ToString)<br />
                    ElseIf iLevel = 2 Then<br />
                        childNode = parentNode.Nodes.Add(myRow.Item("Topic").ToString)<br />
                    Else<br />
                        childNode.Nodes.Add(myRow.Item("Topic").ToString)<br />
                    End If<br />
<br />
<br />
                Next<br />
            End If<br />
<br />
        Else<br />
            ' TO DO: add error message here<br />
        End If<br />
        TopicTreeView.CollapseAll()<br />
        baseNode.Expand()<br />
        TopicTreeView.EndUpdate()<br />
    End Sub<br />

Questiondisplay web site correctly for most resoultions? Pin
ii_noname_ii8-Aug-06 22:54
ii_noname_ii8-Aug-06 22:54 
AnswerRe: display web site correctly for most resoultions? Pin
Leah_Garrett9-Aug-06 3:24
Leah_Garrett9-Aug-06 3:24 
GeneralRe: display web site correctly for most resoultions? Pin
ii_noname_ii9-Aug-06 4:31
ii_noname_ii9-Aug-06 4:31 
GeneralRe: display web site correctly for most resoultions? Pin
Leah_Garrett9-Aug-06 4:57
Leah_Garrett9-Aug-06 4:57 
GeneralRe: display web site correctly for most resoultions? [modified] Pin
ii_noname_ii9-Aug-06 20:13
ii_noname_ii9-Aug-06 20:13 
QuestionHow to refer to a control from inside a class? Pin
IlanTal8-Aug-06 21:32
IlanTal8-Aug-06 21:32 
AnswerRe: How to refer to a control from inside a class? Pin
Guffa8-Aug-06 22:31
Guffa8-Aug-06 22:31 
GeneralRe: How to refer to a control from inside a class? Pin
IlanTal9-Aug-06 0:17
IlanTal9-Aug-06 0:17 
GeneralRe: How to refer to a control from inside a class? Pin
IlanTal9-Aug-06 0:28
IlanTal9-Aug-06 0:28 
GeneralRe: How to refer to a control from inside a class? Pin
Guffa9-Aug-06 2:08
Guffa9-Aug-06 2:08 
GeneralRe: How to refer to a control from inside a class? Pin
IlanTal9-Aug-06 3:11
IlanTal9-Aug-06 3:11 
GeneralRe: How to refer to a control from inside a class? Pin
Leah_Garrett9-Aug-06 4:31
Leah_Garrett9-Aug-06 4:31 
GeneralRe: How to refer to a control from inside a class? Pin
Dave Kreskowiak9-Aug-06 4:52
mveDave Kreskowiak9-Aug-06 4:52 
GeneralRe: How to refer to a control from inside a class? Pin
IlanTal9-Aug-06 19:16
IlanTal9-Aug-06 19:16 
GeneralRe: How to refer to a control from inside a class? Pin
Guffa9-Aug-06 23:41
Guffa9-Aug-06 23:41 
Questionhow to show detail on list view? Pin
campbells8-Aug-06 17:42
campbells8-Aug-06 17:42 
AnswerRe: how to show detail on list view? Pin
Rizwan Bashir8-Aug-06 21:16
Rizwan Bashir8-Aug-06 21:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.