Click here to Skip to main content
16,005,222 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Encapsulation Pin
Dave Kreskowiak4-Jan-06 9:22
mveDave Kreskowiak4-Jan-06 9:22 
QuestionFree Visual Basic.NET videos Pin
DickInYaMum4-Jan-06 6:37
DickInYaMum4-Jan-06 6:37 
QuestionHow to send picture with slow connection and reduce time consuming Pin
Mekong River4-Jan-06 5:48
Mekong River4-Jan-06 5:48 
AnswerRe: How to send picture with slow connection and reduce time consuming Pin
Dave Kreskowiak4-Jan-06 6:15
mveDave Kreskowiak4-Jan-06 6:15 
GeneralRe: How to send picture with slow connection and reduce time consuming Pin
Mekong River4-Jan-06 12:24
Mekong River4-Jan-06 12:24 
GeneralRe: How to send picture with slow connection and reduce time consuming Pin
Dave Kreskowiak4-Jan-06 17:57
mveDave Kreskowiak4-Jan-06 17:57 
QuestionHelp converting a file to a text file Pin
dogo_dogo4-Jan-06 3:11
dogo_dogo4-Jan-06 3:11 
AnswerRe: Help converting a file to a text file Pin
Curtis Schlak.4-Jan-06 7:52
Curtis Schlak.4-Jan-06 7:52 
If you have an interest in only digits, letters, and whitespace, then the following code should do what you want:
' sourcePath is your source file.
' destPath is your destination file.
Dim sr As System.IO.StreamReader = System.IO.File.OpenText(sourcePath)
Dim s As String = sr.ReadToEnd()
sr.Close()
Dim sb As System.Text.StringBuilder = New System.Text.StringBuilder(s.Length)
Dim i As Integer
For i = 0 To s.Length - 1
    If Char.IsLetterOrDigit(s.Chars(i)) OrElse Char.IsWhiteSpace(s.Chars(i)) Then
        sb.Append(s.Chars(i))
    End If
Next
Dim sw As System.IO.StreamWriter = New System.IO.StreamWriter(destPath)
sw.Write(sb.ToString())
sw.Close()


"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
GeneralRe: Help converting a file to a text file Pin
dogo_dogo4-Jan-06 8:45
dogo_dogo4-Jan-06 8:45 
GeneralRe: Help converting a file to a text file Pin
Curtis Schlak.4-Jan-06 8:47
Curtis Schlak.4-Jan-06 8:47 
GeneralRe: Help converting a file to a text file Pin
AndrewPeters4-Jan-06 16:04
AndrewPeters4-Jan-06 16:04 
QuestionSecurity permissions when running .net application over a network Pin
bricel4-Jan-06 2:09
bricel4-Jan-06 2:09 
AnswerRe: Security permissions when running .net application over a network Pin
Dave Kreskowiak4-Jan-06 6:07
mveDave Kreskowiak4-Jan-06 6:07 
AnswerRe: Security permissions when running .net application over a network Pin
mtone6-Jan-06 17:44
mtone6-Jan-06 17:44 
Questionneed help from all of you... Pin
n_c_s4-Jan-06 1:34
n_c_s4-Jan-06 1:34 
AnswerRe: need help from all of you... Pin
Christian Graus4-Jan-06 10:40
protectorChristian Graus4-Jan-06 10:40 
GeneralRe: need help from all of you... Pin
n_c_s6-Jan-06 3:38
n_c_s6-Jan-06 3:38 
GeneralRe: need help from all of you... Pin
Christian Graus8-Jan-06 9:42
protectorChristian Graus8-Jan-06 9:42 
Questionwhats the code for this in .net? Pin
Mridang Agarwalla4-Jan-06 0:37
Mridang Agarwalla4-Jan-06 0:37 
AnswerRe: whats the code for this in .net? Pin
J4amieC4-Jan-06 2:35
J4amieC4-Jan-06 2:35 
Questiontreeview(binarytree) Pin
mamatharaghu4-Jan-06 0:36
mamatharaghu4-Jan-06 0:36 
AnswerRe: treeview(binarytree) Pin
Paritos4-Jan-06 1:02
Paritos4-Jan-06 1:02 
GeneralRe: treeview(binarytree) Pin
mamatharaghu4-Jan-06 1:41
mamatharaghu4-Jan-06 1:41 
GeneralRe: treeview(binarytree) Pin
J4amieC4-Jan-06 2:48
J4amieC4-Jan-06 2:48 
GeneralRe: treeview(binarytree) Pin
mamatharaghu4-Jan-06 18:18
mamatharaghu4-Jan-06 18:18 

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.