Click here to Skip to main content
15,907,493 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Remove controls from a form using For Each Pin
Steven St. John1-Sep-12 3:52
Steven St. John1-Sep-12 3:52 
QuestionWPF: delete item per Drag&Drop Pin
Christopher James Kleinheinz29-Aug-12 21:07
Christopher James Kleinheinz29-Aug-12 21:07 
AnswerRe: WPF: delete item per Drag&Drop Pin
Eddy Vluggen30-Aug-12 3:25
professionalEddy Vluggen30-Aug-12 3:25 
AnswerRe: WPF: delete item per Drag&Drop Pin
Bert Mitton31-Aug-12 6:33
professionalBert Mitton31-Aug-12 6:33 
QuestionVB.NET: How to merge multiple file into one CSV file? Pin
stevelk29-Aug-12 21:04
stevelk29-Aug-12 21:04 
AnswerRe: VB.NET: How to merge multiple file into one CSV file? Pin
Wayne Gaylard29-Aug-12 21:28
professionalWayne Gaylard29-Aug-12 21:28 
GeneralRe: VB.NET: How to merge multiple file into one CSV file? Pin
stevelk2-Sep-12 21:08
stevelk2-Sep-12 21:08 
AnswerRe: VB.NET: How to merge multiple file into one CSV file? Pin
Christopher James Kleinheinz29-Aug-12 21:34
Christopher James Kleinheinz29-Aug-12 21:34 
Just a simple sample

VB
Sub Main()
        Dim dict = New Dictionary(Of String, List(Of Integer))

        Dim unitCode = String.Empty
        Dim qty = 0        

        ' process all files
        For Each file In GetFiles()

            'process each row in file
            For Each row In file

                'methode for extracting unitcode
                unitCode = GetUnitCode(row)
                'methode for extracting qty
                qty = GetQuantity(row)

                'dictionory object already holds the unitcode so just add the qty
                If dict.ContainsKey(unitCode) Then
                    dict(unitCode).Add(qty)

                    'dictionory object doesn't holds the unitcode so add the unitCode and the first qty
                Else
                    Dim qtyList = New List(Of Integer)
                    qtyList.Add(qty)
                    dict.Add(unitCode, qtyList)
                End If
            Next
        Next
    End Sub


Hope that helps!
GeneralExcellent code sample Pin
David Mujica30-Aug-12 2:25
David Mujica30-Aug-12 2:25 
GeneralRe: VB.NET: How to merge multiple file into one CSV file? Pin
stevelk2-Sep-12 21:07
stevelk2-Sep-12 21:07 
QuestionVB.Net Populate SQL Data to textbox upon Form Load Pin
jon237128-Aug-12 16:44
jon237128-Aug-12 16:44 
AnswerRe: VB.Net Populate SQL Data to textbox upon Form Load Pin
Wes Aday28-Aug-12 17:05
professionalWes Aday28-Aug-12 17:05 
AnswerRe: VB.Net Populate SQL Data to textbox upon Form Load Pin
Richard MacCutchan28-Aug-12 21:51
mveRichard MacCutchan28-Aug-12 21:51 
Questionprogramming G510 Pin
JR21227-Aug-12 20:38
JR21227-Aug-12 20:38 
AnswerRe: programming G510 Pin
Eddy Vluggen27-Aug-12 23:08
professionalEddy Vluggen27-Aug-12 23:08 
GeneralRe: programming G510 Pin
JR21227-Aug-12 23:32
JR21227-Aug-12 23:32 
GeneralRe: programming G510 Pin
Eddy Vluggen27-Aug-12 23:52
professionalEddy Vluggen27-Aug-12 23:52 
GeneralRe: programming G510 Pin
JR21228-Aug-12 7:24
JR21228-Aug-12 7:24 
GeneralRe: programming G510 Pin
Eddy Vluggen28-Aug-12 7:43
professionalEddy Vluggen28-Aug-12 7:43 
GeneralRe: programming G510 Pin
JR21228-Aug-12 8:09
JR21228-Aug-12 8:09 
GeneralRe: programming G510 Pin
Eddy Vluggen28-Aug-12 8:34
professionalEddy Vluggen28-Aug-12 8:34 
QuestionAddHandler and RemoveHandler Pin
biop.codeproject27-Aug-12 20:36
biop.codeproject27-Aug-12 20:36 
AnswerRe: AddHandler and RemoveHandler Pin
Simon_Whale27-Aug-12 22:50
Simon_Whale27-Aug-12 22:50 
GeneralRe: AddHandler and RemoveHandler Pin
biop.codeproject28-Aug-12 16:10
biop.codeproject28-Aug-12 16:10 
AnswerRe: AddHandler and RemoveHandler Pin
Shameel28-Aug-12 15:06
professionalShameel28-Aug-12 15:06 

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.