Click here to Skip to main content
15,886,799 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionReverse IP domain lookup Pin
Ammar_Ahmad31-Mar-12 9:28
Ammar_Ahmad31-Mar-12 9:28 
QuestionCNC development in VB.net Pin
εїзεїзεїз31-Mar-12 2:48
εїзεїзεїз31-Mar-12 2:48 
AnswerRe: CNC development in VB.net Pin
Dave Kreskowiak31-Mar-12 3:49
mveDave Kreskowiak31-Mar-12 3:49 
GeneralRe: CNC development in VB.net Pin
εїзεїзεїз1-Apr-12 4:50
εїзεїзεїз1-Apr-12 4:50 
GeneralRe: CNC development in VB.net Pin
Dave Kreskowiak1-Apr-12 12:22
mveDave Kreskowiak1-Apr-12 12:22 
QuestionCounting the Occurence of each letter in a textbox Pin
tan87329-Mar-12 20:46
tan87329-Mar-12 20:46 
AnswerRe: Counting the Occurence of each letter in a textbox Pin
Chandrasekharan P29-Mar-12 20:57
Chandrasekharan P29-Mar-12 20:57 
AnswerRe: Counting the Occurence of each letter in a textbox Pin
Simon_Whale29-Mar-12 23:26
Simon_Whale29-Mar-12 23:26 
Here is a quick / rough way that I would count the characters in a string

VB
Dim s As Char() = TextBox1.Text.ToCharArray
Dim p As New Dictionary(Of Char, integer)

For Each chars As Char In s
    'ignore the spaces
    If Not chars = " " Then
        'count the occurances of the character
        Dim i As Integer = s.Count(Function(r) r = chars)

        'if the letter is not in the dictonary
        If Not p.ContainsKey(chars) = True Then
            p.Add(chars, i)
        End If
    End If
Next

Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch


modified 30-Mar-12 19:35pm.

GeneralRe: Counting the Occurence of each letter in a textbox Pin
Dave Kreskowiak30-Mar-12 6:29
mveDave Kreskowiak30-Mar-12 6:29 
GeneralRe: Counting the Occurence of each letter in a textbox Pin
Simon_Whale30-Mar-12 8:33
Simon_Whale30-Mar-12 8:33 
AnswerRe: Counting the Occurence of each letter in a textbox Pin
Wes Aday30-Mar-12 1:14
professionalWes Aday30-Mar-12 1:14 
GeneralRe: Counting the Occurence of each letter in a textbox Pin
RobCroll30-Mar-12 2:36
RobCroll30-Mar-12 2:36 
GeneralRe: Counting the Occurence of each letter in a textbox Pin
Wes Aday30-Mar-12 4:48
professionalWes Aday30-Mar-12 4:48 
AnswerHelp me Pin
Solife28-Mar-12 5:13
Solife28-Mar-12 5:13 
GeneralRe: Help me Pin
Johan Hakkesteegt28-Mar-12 19:57
Johan Hakkesteegt28-Mar-12 19:57 
QuestionVisual Studio 2008 Pin
noboat127-Mar-12 12:23
noboat127-Mar-12 12:23 
AnswerRe: Visual Studio 2008 Pin
JohnPayton27-Mar-12 17:35
JohnPayton27-Mar-12 17:35 
GeneralRe: Visual Studio 2008 Pin
noboat127-Mar-12 23:39
noboat127-Mar-12 23:39 
AnswerRe: Visual Studio 2008 Pin
Simon_Whale28-Mar-12 0:06
Simon_Whale28-Mar-12 0:06 
GeneralRe: Visual Studio 2008 Pin
noboat128-Mar-12 10:38
noboat128-Mar-12 10:38 
GeneralRe: Visual Studio 2008 Pin
Simon_Whale28-Mar-12 21:54
Simon_Whale28-Mar-12 21:54 
QuestionGet middle number between two values Pin
Brandon-X1200026-Mar-12 10:00
Brandon-X1200026-Mar-12 10:00 
AnswerRe: Get middle number between two values Pin
Simon_Whale26-Mar-12 12:00
Simon_Whale26-Mar-12 12:00 
AnswerRe: Get middle number between two values Pin
Eddy Vluggen26-Mar-12 12:21
professionalEddy Vluggen26-Mar-12 12:21 
AnswerRe: Get middle number between two values Pin
Luc Pattyn26-Mar-12 12:24
sitebuilderLuc Pattyn26-Mar-12 12:24 

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.