Click here to Skip to main content
15,918,243 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Tooltip on Comboboxes Pin
Dave Kreskowiak16-Mar-06 4:01
mveDave Kreskowiak16-Mar-06 4:01 
QuestionUsing SQL Express from Visual Basic 6 Pin
Chandana Subasinghe15-Mar-06 13:12
Chandana Subasinghe15-Mar-06 13:12 
QuestionDocumentation to use flash8.ocx in vb.net windows forms Pin
MAP Tiger15-Mar-06 6:56
MAP Tiger15-Mar-06 6:56 
AnswerRe: Documentation to use flash8.ocx in vb.net windows forms Pin
Chatura Dilan15-Mar-06 14:45
Chatura Dilan15-Mar-06 14:45 
QuestionRe: Documentation to use flash8.ocx in vb.net windows forms Pin
MAP Tiger15-Mar-06 22:49
MAP Tiger15-Mar-06 22:49 
QuestionHow to create optional text boxes Pin
isjerelijah15-Mar-06 6:43
isjerelijah15-Mar-06 6:43 
AnswerRe: How to create optional text boxes Pin
noshaba mariam15-Mar-06 17:29
noshaba mariam15-Mar-06 17:29 
QuestionFind/Replace Text in Binary Files Pin
Zenly15-Mar-06 5:14
Zenly15-Mar-06 5:14 
Hi,
I am trying to read an existing Binary Registry file, replace some string then write to a new registry file. However, I am not sure how to replace the text in a binary file. This example make an identical copy of the original. could someone tell me what I need to do to manipulate the tring that is written to the target file?

Public Function Sample()
Dim s1 = New FileStream("SrcFile.reg", FileMode.Open, FileAccess.Read)
Dim s2 = New FileStream("c:\TgtFile.reg", FileMode.CreateNew, FileAccess.Write)

Dim br = New BinaryReader(s1)
Dim bw = New BinaryWriter(s2)
Dim byteRead As Byte
Dim j As Integer

For j = 0 To br.BaseStream.Length() - 1
byteRead = br.ReadByte
bw.Write(byteRead)
Next
br.Close()
bw.Close()

End Function

Thanks,

Zenly.
QuestionClosing Javascript Error Message Pin
captain_zep15-Mar-06 4:41
captain_zep15-Mar-06 4:41 
QuestionMultimedia control error?? Pin
campbells15-Mar-06 3:29
campbells15-Mar-06 3:29 
AnswerRe: Multimedia control error?? Pin
Dave Kreskowiak15-Mar-06 5:53
mveDave Kreskowiak15-Mar-06 5:53 
GeneralRe: Multimedia control error?? Pin
campbells15-Mar-06 6:13
campbells15-Mar-06 6:13 
QuestionClass Good Practices? Pin
Kaditcher15-Mar-06 2:46
Kaditcher15-Mar-06 2:46 
AnswerRe: Class Good Practices? Pin
Guffa15-Mar-06 3:59
Guffa15-Mar-06 3:59 
Questionhow to play flash??? Pin
campbells15-Mar-06 2:46
campbells15-Mar-06 2:46 
AnswerRe: how to play flash??? Pin
Chatura Dilan15-Mar-06 14:43
Chatura Dilan15-Mar-06 14:43 
QuestionProblem with loading xml to dataset? Pin
Ron.S15-Mar-06 1:04
Ron.S15-Mar-06 1:04 
QuestionHow to open a file in OLE container during runtime Pin
KajaF15-Mar-06 0:15
KajaF15-Mar-06 0:15 
QuestionImage button problem Pin
Qaiser_Iftikhar14-Mar-06 23:55
Qaiser_Iftikhar14-Mar-06 23:55 
AnswerRe: Image button problem Pin
Praveen.8526-Dec-08 17:47
Praveen.8526-Dec-08 17:47 
QuestionForm wont show any controls Pin
de plume14-Mar-06 23:40
de plume14-Mar-06 23:40 
AnswerRe: Form wont show any controls Pin
DougW4815-Mar-06 7:49
DougW4815-Mar-06 7:49 
QuestionAdd / Change Attribute in AD Pin
japel14-Mar-06 23:31
japel14-Mar-06 23:31 
Questionable to use timer to play certain music or graphic? Pin
campbells14-Mar-06 23:27
campbells14-Mar-06 23:27 
Questionupdate version of my winform Pin
andreapv14-Mar-06 22:20
andreapv14-Mar-06 22:20 

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.