Click here to Skip to main content
15,914,500 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralWifi and VB Pin
dmsdp30-Jan-04 5:21
dmsdp30-Jan-04 5:21 
GeneralRe: Wifi and VB Pin
Dave Kreskowiak30-Jan-04 9:04
mveDave Kreskowiak30-Jan-04 9:04 
GeneralRichEdit Pin
Matthew Hazlett29-Jan-04 22:06
Matthew Hazlett29-Jan-04 22:06 
GeneralRe: RichEdit Pin
Matthew Hazlett2-Feb-04 8:43
Matthew Hazlett2-Feb-04 8:43 
GeneralRe: RichEdit Pin
Member 10089689-Apr-04 7:34
Member 10089689-Apr-04 7:34 
GeneralFile properties dialog box Pin
ltt1929-Jan-04 17:45
ltt1929-Jan-04 17:45 
GeneralTreeview and regex Pin
spaceus29-Jan-04 13:00
spaceus29-Jan-04 13:00 
GeneralRe: Treeview and regex Pin
Lewis Moten30-Jan-04 9:14
Lewis Moten30-Jan-04 9:14 
In a nutshell ...

Private Sub btnMatch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnMatch.Click
targetTree.Nodes.Clear()
Dim Expression As New Regex(txtExpression.Text)
Dim Matches As MatchCollection
For Each node As TreeNode In sourceTree.Nodes
If Expression.IsMatch(node.FullPath) Then
targetTree.Nodes.Add(node.Clone)
End If
CheckNodes(Expression, node, targetTree)
Next
End Sub
Private Sub CheckNodes(ByVal expression As Regex, ByVal node As TreeNode, ByVal target As TreeView)
For Each child As TreeNode In node.Nodes
If expression.IsMatch(child.FullPath) Then
NodeParent(target, node).Nodes.Add(child.Clone)
End If
CheckNodes(expression, child, target)
Next
End Sub
Private Function NodeParent(ByVal target As TreeView, ByVal node As TreeNode) As TreeNode
If node.Parent Is Nothing Then
For Each Parent As TreeNode In target.Nodes
If Parent.Text = node.Text Then Return Parent
Next
Return target.Nodes.Add(node.Text)
End If
Return NodeParent(target, node.Parent).Nodes.Add(node.Text)
End Function

Generalread line by line Pin
ltt1929-Jan-04 9:58
ltt1929-Jan-04 9:58 
GeneralRe: read line by line Pin
Mike Ellison29-Jan-04 10:09
Mike Ellison29-Jan-04 10:09 
GeneralRe: read line by line Pin
ltt1929-Jan-04 10:30
ltt1929-Jan-04 10:30 
GeneralRe: read line by line Pin
Mike Ellison29-Jan-04 10:40
Mike Ellison29-Jan-04 10:40 
GeneralRe: read line by line Pin
ltt1929-Jan-04 11:01
ltt1929-Jan-04 11:01 
GeneralRe: read line by line Pin
Dave Kreskowiak29-Jan-04 11:03
mveDave Kreskowiak29-Jan-04 11:03 
GeneralRe: read line by line Pin
ltt1929-Jan-04 11:12
ltt1929-Jan-04 11:12 
GeneralRe: read line by line Pin
Dave Kreskowiak30-Jan-04 4:20
mveDave Kreskowiak30-Jan-04 4:20 
GeneralRe: read line by line Pin
ltt1930-Jan-04 6:35
ltt1930-Jan-04 6:35 
GeneralRe: read line by line Pin
Dave Kreskowiak30-Jan-04 8:33
mveDave Kreskowiak30-Jan-04 8:33 
GeneralDoEvents Pin
Mike Mestemaker29-Jan-04 4:37
Mike Mestemaker29-Jan-04 4:37 
GeneralRe: DoEvents Pin
Lewis Moten30-Jan-04 8:43
Lewis Moten30-Jan-04 8:43 
GeneralCreating Setup for VB .Net and how to include the supports need to run the application Pin
payal sheth29-Jan-04 1:49
payal sheth29-Jan-04 1:49 
GeneralDiary Pin
Martyn Redgate28-Jan-04 23:24
Martyn Redgate28-Jan-04 23:24 
GeneralRe: Diary Pin
Mike Ellison29-Jan-04 8:30
Mike Ellison29-Jan-04 8:30 
GeneralLittle VB .NET Syntax Problem!! Pin
fadee28-Jan-04 22:54
fadee28-Jan-04 22:54 
GeneralRe: Little VB .NET Syntax Problem!! Pin
Dan Morris29-Jan-04 2:54
Dan Morris29-Jan-04 2:54 

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.