Click here to Skip to main content
15,896,526 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: waveform plotting Pin
r i s h a b h s28-Jan-04 0:43
r i s h a b h s28-Jan-04 0:43 
GeneralExcel 2000 vs 2002 Pin
Odd Magne Vea7-Jan-04 22:50
sussOdd Magne Vea7-Jan-04 22:50 
GeneralRe: Excel 2000 vs 2002 Pin
Niels Penneman12-Jan-04 10:35
Niels Penneman12-Jan-04 10:35 
GeneralVB.NET PROJECT(HELP!!!!!!) Pin
Greg287-Jan-04 19:07
Greg287-Jan-04 19:07 
GeneralRe: VB.NET PROJECT(HELP!!!!!!) Pin
Dave Kreskowiak8-Jan-04 4:01
mveDave Kreskowiak8-Jan-04 4:01 
GeneralRe: VB.NET PROJECT(HELP!!!!!!) Pin
Greg288-Jan-04 4:09
Greg288-Jan-04 4:09 
GeneralRe: VB.NET PROJECT(HELP!!!!!!) Pin
Guillermo Rivero8-Jan-04 9:59
Guillermo Rivero8-Jan-04 9:59 
GeneralRe: VB.NET PROJECT(HELP!!!!!!) Pin
Greg288-Jan-04 20:27
Greg288-Jan-04 20:27 
Here is what i've done so far.


'Greg Kelley
'VB Program
'1-9-04




Module Module1


Sub Main()

'Read the contents of File1 to end of file and close.

Dim File1 As New System.IO.StreamReader("c:\words.txt")
Dim word1 As String = File1.ReadToEnd()
File1.Close()

'Reads the content of File2 to end of file and close.

Dim file2 As New System.IO.StreamReader("c:\test.txt")
Dim word2 As String = file2.ReadToEnd()
file2.Close()

'Merges the contents of file1 and file2 into File3 and closes.

Dim File3 As New System.IO.StreamWriter("c:\main.txt,")
File3.WriteLine(word1 & word2)
File3.Close()


End Sub



' Encrypts/decrypts the passed string using
' a simple ASCII value-swapping algorithm



Public Function SimpleCrypt(ByVal Main As String) As String


Dim X As String, i As Integer

' Encrypt
X = SimpleCrypt(Main)
MessageBox.Show(Main)

' Decrypt
X = SimpleCrypt(Main)
MessageBox.Show(Main)




For i = 1 To Len(Main)
If Asc(Mid$(Main, i, 1)) < 128 Then
File3 = _
CType(Asc(Mid$(Main, i, 1)) + 128, String)
ElseIf Asc(Mid$(Main, i, 1)) > 128 Then
File3 = _
CType(Asc(Mid$(Main, i, 1)) - 128, String)
End If
Mid$(Main, i, 1) = _
Chr(CType(File3, Integer))
Next i
Return Main



End Function

End Module


Greg Kelley
GeneralRe: VB.NET PROJECT(HELP!!!!!!) Pin
Guillermo Rivero9-Jan-04 5:06
Guillermo Rivero9-Jan-04 5:06 
GeneralRe: VB.NET PROJECT(HELP!!!!!!) Pin
Greg289-Jan-04 9:34
Greg289-Jan-04 9:34 
GeneralRe: VB.NET PROJECT(HELP!!!!!!) Pin
Guillermo Rivero9-Jan-04 9:43
Guillermo Rivero9-Jan-04 9:43 
GeneralHelp!!! on getting control over Controls on VB.Net Forms Pin
Het21097-Jan-04 18:35
Het21097-Jan-04 18:35 
GeneralRe: Help!!! on getting control over Controls on VB.Net Forms Pin
Corinna John7-Jan-04 20:59
Corinna John7-Jan-04 20:59 
GeneralThanks Corrina but,,, Pin
Het21098-Jan-04 0:12
Het21098-Jan-04 0:12 
GeneralRe: Thanks Corrina but,,, Pin
Corinna John8-Jan-04 0:53
Corinna John8-Jan-04 0:53 
GeneralRe: Thanks Corrina but,,, Pin
Ian Darling8-Jan-04 0:59
Ian Darling8-Jan-04 0:59 
GeneralBut about groupbox... Pin
Het21098-Jan-04 2:55
Het21098-Jan-04 2:55 
GeneralRe: But about groupbox... Pin
Ian Darling8-Jan-04 3:07
Ian Darling8-Jan-04 3:07 
GeneralActiveX Dll project in Visual Basic.net Pin
iluha7-Jan-04 10:21
iluha7-Jan-04 10:21 
GeneralRe: ActiveX Dll project in Visual Basic.net Pin
iluha7-Jan-04 12:17
iluha7-Jan-04 12:17 
GeneralI Need Help Copying Files Pin
BrianReeve7-Jan-04 8:49
BrianReeve7-Jan-04 8:49 
GeneralRe: I Need Help Copying Files Pin
iluha7-Jan-04 9:40
iluha7-Jan-04 9:40 
GeneralRe: I Need Help Copying Files Pin
BrianReeve7-Jan-04 10:06
BrianReeve7-Jan-04 10:06 
GeneralShell Or Other command to open a file. Pin
jlizardo7-Jan-04 3:55
jlizardo7-Jan-04 3:55 
GeneralRe: Shell Or Other command to open a file. Pin
jlizardo7-Jan-04 4:04
jlizardo7-Jan-04 4:04 

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.