Click here to Skip to main content
15,889,462 members
Home / Discussions / Visual Basic
   

Visual Basic

 
General(Resolved): Datagridview not showing my list(of object) Pin
Sonhospa10-Feb-12 0:36
Sonhospa10-Feb-12 0:36 
AnswerRe: (Resolved): Datagridview not showing my list(of object) Pin
Luc Pattyn10-Feb-12 1:01
sitebuilderLuc Pattyn10-Feb-12 1:01 
AnswerRe: Datagridview not showing my list(of object) Pin
Simon_Whale9-Feb-12 22:58
Simon_Whale9-Feb-12 22:58 
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 
hi, i'm trying to do a looping like this,
if i input 5 then,

    1
   121
  12321
 1234321
123454321
 1234321
  12321
   121
    1


my teacher code structure is like below,
confuse level : 99999

for (loop the row)
   select case
      case 1
         for
            if
            end if
         next
      case 2
         if
         end if
   end case
next


what i do,
Private Sub btnView1_Click(sender As System.Object, e As System.EventArgs) Handles btnView1.Click
        Dim input As Integer = Nothing

        Dim spaces As String = Nothing
        Dim numbers As String = Nothing
        '##INPUT
        input = CInt(InputBox("Insert Max Value", "Value"))

        For a As Integer = 1 To (input * 2) - 1
            '##SPACES
            If a <= input Then
                For b As Integer = 1 To (input - a)
                    spaces += " "
                Next
            Else
                For b As Integer = 1 To (a - input)
                    spaces += " "
                Next
            End If
            '##NUMBERS
            If a <= input Then
                For c As Integer = 1 To a
                    numbers += c.ToString()
                Next
            Else
                For c As Integer = 1 To ???
                    numbers += c.ToString()
                Next
            End If
            '##OUTPUT
            ListBox1.Items.Add(spaces + numbers)
            spaces = ""
            numbers = ""
        Next
    End Sub


can someone correct '???' in my code?
thanks before.. Laugh | :laugh:

modified 7-Feb-12 22:14pm.

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 
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 

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.