Click here to Skip to main content
15,919,245 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: ERRor Message Pin
Richard MacCutchan10-Feb-16 3:59
mveRichard MacCutchan10-Feb-16 3:59 
QuestionHow Attach Ghanian Cedi currency symbol To A Textbox in VB.net Pin
Reginald_19-Feb-16 23:12
Reginald_19-Feb-16 23:12 
AnswerRe: How Attach Ghanian Cedi currency symbol To A Textbox in VB.net Pin
Richard MacCutchan10-Feb-16 0:21
mveRichard MacCutchan10-Feb-16 0:21 
QuestionError Indicator Code in VB.net Pin
Reginald_19-Feb-16 23:08
Reginald_19-Feb-16 23:08 
AnswerRe: Error Indicator Code in VB.net Pin
Richard MacCutchan10-Feb-16 0:19
mveRichard MacCutchan10-Feb-16 0:19 
AnswerRe: Error Indicator Code in VB.net Pin
Dave Kreskowiak10-Feb-16 4:39
mveDave Kreskowiak10-Feb-16 4:39 
QuestionHow to group a column of string in vb.net report? Pin
Member 103570799-Feb-16 21:54
Member 103570799-Feb-16 21:54 
AnswerRe: How to group a column of string in vb.net report? Pin
Gilus'17-Feb-16 18:46
Gilus'17-Feb-16 18:46 
Was a bit trickier than I first thought - but here it is Smile | :) :
VB
Dim arr() As String = New String() {"ID Name", "1 paint", "1 cross", "1 less", "2 to", "2 gain", "3 increase"}
Dim newstring As String = "", endstr As String = ""
Dim c As Integer = 1, num As Integer
Dim newnum As Boolean = True
For i = 0 To arr.Count - 1
    If i > 0 Then
        If Integer.TryParse(arr(i).Substring(0, i.ToString.Length), num) And num = c Then
            If newnum = True Then newstring += num.ToString & " "
            newstring += arr(i).Substring(i.ToString.Length + 1, arr(i).ToString.Length - i.ToString.Length - 1)
        End If

        If (i + 1) <= (arr.Count - 1) Then
            If Integer.TryParse(arr(i + 1).Substring(0, (i + 1).ToString.Length), num) And num = c Then
                newstring += ", "
                newnum = False
            Else
                endstr = newstring
                newstring = ""
                newnum = True
            End If
        Else
            endstr = newstring
            newnum = True
        End If
        c = num
    Else
        endstr = arr(i).ToString
        newnum = True
    End If
    If newnum = True Then Debug.Print("##### :  " & endstr)
Next i

QuestionMake application's forms independent from Screen resolution Pin
satc7-Feb-16 1:47
satc7-Feb-16 1:47 
AnswerRe: Make application's forms independent from Screen resolution Pin
Eddy Vluggen7-Feb-16 8:11
professionalEddy Vluggen7-Feb-16 8:11 
GeneralRe: Make application's forms independent from Screen resolution Pin
satc7-Feb-16 8:17
satc7-Feb-16 8:17 
GeneralRe: Make application's forms independent from Screen resolution Pin
Eddy Vluggen7-Feb-16 8:37
professionalEddy Vluggen7-Feb-16 8:37 
GeneralRe: Make application's forms independent from Screen resolution Pin
satc7-Feb-16 8:41
satc7-Feb-16 8:41 
GeneralRe: Make application's forms independent from Screen resolution Pin
Eddy Vluggen7-Feb-16 8:56
professionalEddy Vluggen7-Feb-16 8:56 
GeneralRe: Make application's forms independent from Screen resolution Pin
satc7-Feb-16 9:18
satc7-Feb-16 9:18 
GeneralRe: Make application's forms independent from Screen resolution Pin
Eddy Vluggen7-Feb-16 9:23
professionalEddy Vluggen7-Feb-16 9:23 
GeneralRe: Make application's forms independent from Screen resolution Pin
satc7-Feb-16 9:24
satc7-Feb-16 9:24 
GeneralRe: Make application's forms independent from Screen resolution Pin
Eddy Vluggen7-Feb-16 9:40
professionalEddy Vluggen7-Feb-16 9:40 
GeneralRe: Make application's forms independent from Screen resolution Pin
satc7-Feb-16 8:54
satc7-Feb-16 8:54 
SuggestionRe: Make application's forms independent from Screen resolution Pin
Richard Deeming8-Feb-16 2:20
mveRichard Deeming8-Feb-16 2:20 
GeneralRe: Make application's forms independent from Screen resolution Pin
satc9-Feb-16 5:24
satc9-Feb-16 5:24 
QuestionDatagridview date sort - Tons of examples online, no answers Pin
Dan Chapin5-Feb-16 3:09
Dan Chapin5-Feb-16 3:09 
AnswerRe: Datagridview date sort - Tons of examples online, no answers Pin
Dave Kreskowiak5-Feb-16 4:09
mveDave Kreskowiak5-Feb-16 4:09 
AnswerRe: Datagridview date sort - Tons of examples online, no answers Pin
Richard Deeming5-Feb-16 4:24
mveRichard Deeming5-Feb-16 4:24 
QuestionHow to set textbox readonly from Selected value from Combobox Pin
Reginald_13-Feb-16 2:14
Reginald_13-Feb-16 2:14 

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.