Reputation: 0 Apprentice
- Active Members
- Active Posts:
- 71 (0.18 per day)
- 28-April 12
- Profile Views:
- Last Active:
- Jul 02 2012 02:18 PM
- Dream Kudos:
Posts I've Made
Posted 2 Jul 2012Thanks, I have decided to have a think about it as i dont believe this is the best way to make the program.
Posted 7 Jun 2012Many thanks for your help, sorry I'm very much a newbie so would really appreciate it if you could tell me if i have done something wrong.
Sorry but doesnt this coding mean that it will run the same task 10 to 100 times?
'Do Work Const Max As Integer = 100 For i = 1 To Max ' Task 1 Backgroundworker1.ReportProgress(CInt(10 * i / Max), "" & i.ToString) ' Task 2 Backgroundworker1.ReportProgress(CInt(20 * i / Max), "" & i.ToString) ' Task 3 Backgroundworker1.ReportProgress(CInt(30 * i / Max), "" & i.ToString) ' Task 4 Backgroundworker1.ReportProgress(CInt(40 * i / Max), "" & i.ToString) ' Task 5 Backgroundworker1.ReportProgress(CInt(50 * i / Max), "" & i.ToString) ' Task 6 Backgroundworker1.ReportProgress(CInt(60 * i / Max), "" & i.ToString) ' Task 7 Backgroundworker1.ReportProgress(CInt(70 * i / Max), "" & i.ToString) ' Task 8 Backgroundworker1.ReportProgress(CInt(80 * i / Max), "" & i.ToString) ' Task 9 Backgroundworker1.ReportProgress(CInt(90 * i / Max), "" & i.ToString) ' Task 10 Backgroundworker1.ReportProgress(CInt(100 * i / Max), "" & i.ToString) Next 'Progress changed Me.progressBar1.Value = e.ProgressPercentage
Posted 26 May 2012Thanks Michael, top man
Posted 26 May 2012try looking up ToLower function that should do it
Same as yesterday I tried my best trying to code this but for the life of me I can't get it to work. What have I done wrong here?
It just keeps showing an empty text file.
Dim Convertcolumn = From line In System.IO.File.ReadLines("Textfile1") Select line.Split(" "c)(1) & line.Split(" "c)(1).ToLower() Dim writer As IO.StreamWriter = New IO.StreamWriter("Textfile2") For Each line In Convertcolumn writer.Write((line) & Environment.NewLine) Next
I'm trying to convert the second column
D00001 BLACK user D00002 BLACK user
D00001 black user D00002 black user
Posted 25 May 2012cheers for the green buy the way check this msdn site out some help videos on it
Thanks Michael, i will check it out.
One last thing one of the columns is showing as uppercase how would I make it lowercase? I tried googling it but cant see anything?
- Member Title:
- D.I.C Head
- Age Unknown
- Birthday Unknown
vnewbie hasn't added any friends yet.