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

Visual Basic

 
GeneralRe: Another question about Graphics.DrawString Pin
Dave Kreskowiak11-Jan-07 5:37
mveDave Kreskowiak11-Jan-07 5:37 
GeneralRe: Another question about Graphics.DrawString Pin
Savas Cilve11-Jan-07 6:08
Savas Cilve11-Jan-07 6:08 
QuestionInsert File Pin
jds120711-Jan-07 3:56
jds120711-Jan-07 3:56 
QuestionWhat??? Pin
CPallini11-Jan-07 4:06
mveCPallini11-Jan-07 4:06 
AnswerRe: Insert File Pin
Dave Kreskowiak11-Jan-07 4:12
mveDave Kreskowiak11-Jan-07 4:12 
GeneralRe: Insert File Pin
Colin Angus Mackay11-Jan-07 4:51
Colin Angus Mackay11-Jan-07 4:51 
GeneralRe: Insert File Pin
Dave Kreskowiak11-Jan-07 4:56
mveDave Kreskowiak11-Jan-07 4:56 
GeneralRe: Insert File Pin
jds120711-Jan-07 6:01
jds120711-Jan-07 6:01 
Sounds nice but I am having trouble getting my parameterised query to work using MySQL. However, the code that I am currently using to insert is working fine now. Also, I found out why the empty rows are being inserted into the db. The file that I am cleaning is being cleaned and making the file double spaced. I could use a helping hand with this issue. Here is the code that I used to clean the file:

'Read file line by line
Dim file_name As String = "c:\Scanning files\lsprint_MO.txt"
Dim Temp_file As String = "c:\Scanning files\lsprint_MO_temp.txt"
Dim textline As String

If System.IO.File.Exists(file_name) = True Then
Dim objReader As New System.IO.StreamReader(file_name)

Do While objReader.Peek() <> "-1"

textline = String.Concat(objReader.ReadLine(), ControlChars.NewLine)

If textline.IndexOf("xxxxxxx") = 17 Then
Console.WriteLine(textline)
WriteFile(Temp_file, textline)
End If

Loop
objReader.Close()
My.Computer.FileSystem.DeleteFile(file_name)
End If

Any ideas would help!
GeneralRe: Insert File Pin
Dave Kreskowiak11-Jan-07 6:52
mveDave Kreskowiak11-Jan-07 6:52 
GeneralRe: Insert File Pin
jds120711-Jan-07 7:25
jds120711-Jan-07 7:25 
QuestionWhat does it return? Pin
ashwath197911-Jan-07 3:48
ashwath197911-Jan-07 3:48 
AnswerRe: What does it return? Pin
CPallini11-Jan-07 3:59
mveCPallini11-Jan-07 3:59 
QuestionWhat does it return? Pin
ashwath197911-Jan-07 3:47
ashwath197911-Jan-07 3:47 
QuestionVB.Net Project making Pin
Mayuri Gaikwad11-Jan-07 2:44
Mayuri Gaikwad11-Jan-07 2:44 
AnswerRe: VB.Net Project making Pin
Dave Kreskowiak11-Jan-07 3:11
mveDave Kreskowiak11-Jan-07 3:11 
QuestionI am converting a ActiveX(DSO Framer)control into .Net assembly Pin
indian14311-Jan-07 1:53
indian14311-Jan-07 1:53 
AnswerRe: I am converting a ActiveX(DSO Framer)control into .Net assembly [modified] Pin
Dave Kreskowiak11-Jan-07 3:11
mveDave Kreskowiak11-Jan-07 3:11 
QuestionWhy Startup form may appear behind other programs?? Pin
kindman_nb11-Jan-07 1:48
kindman_nb11-Jan-07 1:48 
AnswerRe: Why Startup form may appear behind other programs?? Pin
Kschuler11-Jan-07 8:57
Kschuler11-Jan-07 8:57 
GeneralRe: Why Startup form may appear behind other programs?? Pin
kindman_nb11-Jan-07 9:30
kindman_nb11-Jan-07 9:30 
GeneralRe: Why Startup form may appear behind other programs?? Pin
nickib5811-Jan-07 10:26
nickib5811-Jan-07 10:26 
GeneralRe: Why Startup form may appear behind other programs?? Pin
kindman_nb11-Jan-07 10:49
kindman_nb11-Jan-07 10:49 
QuestionWant to get into serious programming Pin
Member 294306311-Jan-07 1:25
Member 294306311-Jan-07 1:25 
AnswerRe: Want to get into serious programming Pin
Johan Hakkesteegt11-Jan-07 2:47
Johan Hakkesteegt11-Jan-07 2:47 
QuestionWhen I tried to edit the .il file it is giving the following error Pin
indian14311-Jan-07 0:13
indian14311-Jan-07 0:13 

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.