Click here to Skip to main content
15,888,020 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Datagridview not showing my list(of object) Pin
Luc Pattyn9-Feb-12 23:38
sitebuilderLuc Pattyn9-Feb-12 23:38 
GeneralRe: Datagridview not showing my list(of object) Pin
Simon_Whale9-Feb-12 23:44
Simon_Whale9-Feb-12 23:44 
General(Resolved): Datagridview not showing my list(of object) Pin
Sonhospa10-Feb-12 0:40
Sonhospa10-Feb-12 0:40 
GeneralRe: (Resolved): Datagridview not showing my list(of object) Pin
Simon_Whale10-Feb-12 1:07
Simon_Whale10-Feb-12 1:07 
QuestionDiamond Looping Pin
Framework .l.7-Feb-12 14:51
Framework .l.7-Feb-12 14:51 
AnswerRe: Diamond Looping Pin
Johan Hakkesteegt7-Feb-12 21:18
Johan Hakkesteegt7-Feb-12 21:18 
AnswerRe: Diamond Looping Pin
Simon_Whale8-Feb-12 0:46
Simon_Whale8-Feb-12 0:46 
AnswerRe: Diamond Looping Pin
hansoctantan9-Feb-12 3:55
professionalhansoctantan9-Feb-12 3:55 
I try this in vb6 and it really a nice code

VB
Private Sub Command1_Click()
        List1.Clear
        Dim inp As Integer
        Dim spaces As String
        Dim numbers As String
        '##INPUT
        inp = CInt(InputBox("Insert Max Value", "Value"))
        Dim a As Integer
        Dim b As Integer
        Dim c As Integer
        For a = 1 To (inp * 2) - 1
            '##SPACES
            If a <= inp Then
                For b = 1 To (inp - a)
                    spaces = spaces + " "
                Next
            Else
                For b = 1 To (a - inp)
                    spaces = spaces + " "
                Next
            End If
            '##NUMBERS
            If a <= inp Then
                For c = 1 To a
                    numbers = numbers & c
                Next
            Else
                For c = 1 To (inp * 2) - a
                    numbers = numbers & c
                Next
            End If
            '##OUTPUT
            List1.AddItem spaces + numbers
            spaces = ""
            numbers = ""
        Next
End Sub

GeneralRe: Diamond Looping Pin
Framework .l.9-Feb-12 14:14
Framework .l.9-Feb-12 14:14 
Questionaccess uniquetable Pin
C#Coudou6-Feb-12 18:31
C#Coudou6-Feb-12 18:31 
AnswerRe: access uniquetable Pin
Abhinav S6-Feb-12 19:12
Abhinav S6-Feb-12 19:12 
GeneralRe: access uniquetable Pin
C#Coudou6-Feb-12 20:40
C#Coudou6-Feb-12 20:40 
GeneralRe: access uniquetable Pin
Abhinav S6-Feb-12 21:34
Abhinav S6-Feb-12 21:34 
GeneralRe: access uniquetable Pin
C#Coudou6-Feb-12 22:07
C#Coudou6-Feb-12 22:07 
GeneralRe: access uniquetable Pin
Eddy Vluggen7-Feb-12 7:41
professionalEddy Vluggen7-Feb-12 7:41 
GeneralRe: access uniquetable Pin
C#Coudou7-Feb-12 13:41
C#Coudou7-Feb-12 13:41 
GeneralRe: access uniquetable Pin
Eddy Vluggen8-Feb-12 0:18
professionalEddy Vluggen8-Feb-12 0:18 
Questionupdate table programitaclly Pin
Member 32752635-Feb-12 20:40
Member 32752635-Feb-12 20:40 
AnswerRe: update table programitaclly Pin
Mycroft Holmes5-Feb-12 22:14
professionalMycroft Holmes5-Feb-12 22:14 
QuestionGraphic in DataGridView problem Pin
Mangore755-Feb-12 14:10
Mangore755-Feb-12 14:10 
AnswerRe: Graphic in DataGridView problem Pin
Richard MacCutchan5-Feb-12 23:29
mveRichard MacCutchan5-Feb-12 23:29 
GeneralRe: Graphic in DataGridView problem Pin
Mangore756-Feb-12 6:24
Mangore756-Feb-12 6:24 
GeneralRe: Graphic in DataGridView problem Pin
Richard MacCutchan6-Feb-12 6:33
mveRichard MacCutchan6-Feb-12 6:33 
GeneralRe: Graphic in DataGridView problem Pin
Mangore756-Feb-12 8:26
Mangore756-Feb-12 8:26 
GeneralRe: Graphic in DataGridView problem Pin
Richard MacCutchan6-Feb-12 9:30
mveRichard MacCutchan6-Feb-12 9:30 

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.