1. VisualBasic / Говнокод #6216

    −110

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    Public Class Decoder
        Dim arr_en() As String = {"q", "w", "e", "r", "t", "y", "u", "i", "o", "p", "[", "]", "a", "s", "d", "f", "g", "h", "j", "k", "l", ";", "'", "z", "x", "c", "v", "b", "n", "m", ",", ".", "/", "?", "@"}
        Dim arr_ua() As String = {"й", "ц", "у", "к", "е", "н", "г", "ш", "щ", "з", "х", "ъ", "ф", "ы", "в", "а", "п", "р", "о", "л", "д", "ж", "є", "я", "ч", "с", "м", "и", "т", "ь", "б", "ю", ".", ",", "'"}
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            TextBox2.Clear()
    
            Dim t As Char
            Dim ch As Char
            Dim vv As String
    
            For Each vv In TextBox1.Lines
                For Each t In vv
                    For i As Integer = 0 To arr_en.Count - 1
                        ch = arr_en.GetValue(i)
                        If t = ch Then
                            t = arr_ua.GetValue(i)
                            Exit For
                        End If
                    Next
                    TextBox2.Text = TextBox2.Text & t
                Next
                TextBox2.Text = TextBox2.Text & vbCrLf
            Next
        End Sub
    End Class

    Декодер с английской раскладки за 5 минут.

    undiscovered, 04 Апреля 2011

    Комментарии (11)
  2. VisualBasic / Говнокод #6052

    −110

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    36. 36
    37. 37
    38. 38
    39. 39
    40. 40
    41. 41
    42. 42
    43. 43
    44. 44
    45. 45
    46. 46
    47. 47
    Dim num As Integer
        Dim inp As Integer
        Dim wrt As String
        Dim liv As Integer
    
    
    
        Sub Main()
            liv = 3
            Console.WriteLine("LIVES = " & liv)
    pl:
            If liv = 0 Then GoTo st
    
    
            num = Fix(Rnd() * 5)
    
            Console.WriteLine("ENTER NUMBER:")
            inp = Console.ReadLine()
            If inp < num Then
                Console.WriteLine("GREATER")
                liv = liv - 1
                Console.WriteLine("LIVES = " & liv)
                GoTo pl
    
            End If
    
            If inp > num Then
                Console.WriteLine("LESS")
    
                liv = liv - 1
                Console.WriteLine("LIVES = " & liv)
                GoTo pl
            End If
    
    
            If inp = num Then Console.WriteLine("YES!")
    st:
            Console.WriteLine("GAME OVER")
            Console.WriteLine("ENTER ANY NUMBER TO EXIT")
            inp = Console.ReadLine()
    
    
    
    
    
    
        End Sub

    Одна из моих первых "прог" на VB, написанная около 4х лет назад - "Угадай число".

    RaZeR, 21 Марта 2011

    Комментарии (8)
  3. VisualBasic / Говнокод #6051

    −105

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    36. 36
    37. 37
    38. 38
    39. 39
    40. 40
    41. 41
    42. 42
    43. 43
    44. 44
    45. 45
    46. 46
    47. 47
    48. 48
    49. 49
    50. 50
    51. 51
    52. 52
    53. 53
    Public LettersB() As Char = {"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"}
        Public LettersM() As Char = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"}
        Public Numbers() As Char = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9"}
    <...>
        Public Function GenLetterB() As String
            GenLetterB = LettersB(rnd.Next(0, LettersB.Length - 1)).ToString
        End Function
        Public Function GenLetterM() As String
            GenLetterM = LettersM(rnd.Next(0, LettersB.Length - 1)).ToString
        End Function
        Public Function GenNumber() As String
            GenNumber = rnd.Next(0, 9).ToString
        End Function
    <...>
    For i = 1 To numLen.Value
    RndGen:     curType = rnd.Next(0, 3)
                Select Case curType
                    Case 0
                        If chkB.Checked = True Then
                            pass += GenLetterB()
                            rnd.Next(0, LettersB.Length - 1)
                        Else
                            GoTo RndGen
    
                        End If
                        
                    Case 1
                        If chkM.Checked = True Then
                            pass += GenLetterM()
                            rnd.Next(0, LettersM.Length - 1)
                        Else
                            GoTo RndGen
                        End If
                    Case 2
                        If chkNum.Checked = True Then
                            pass += GenNumber()
                            rnd.Next(0, LettersM.Length - 1)
                        Else
                            GoTo RndGen
                        End If
    
                    Case Else
                        If chkNum.Checked = True Then
                            pass += GenNumber()
                            rnd.Next(0, LettersM.Length - 1)
                        Else
                            GoTo RndGen
                        End If
                End Select
    
    
    
            Next

    Очень древний мой высер, ещё из тех времён, когда я писал на VB. Кстати, прога есть на сурсфордже, у неё достаточно много скачиваний и жалоб нету.

    RaZeR, 21 Марта 2011

    Комментарии (6)
  4. VisualBasic / Говнокод #5434

    −81

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    Try
                RichTextBox1.Text = int.OpenURL(adress & TextBox1.Text & units)
                tmpStr = RichTextBox1.Text.Split(">")
    
                Header = tmpStr(4).Split("<")
    
                lblHeader.Text = Header(0)
                CityName = Trim(Mid$(Header(0), 17, Len(Header(0)) - 16))
    
                outCName = CityName
    
                Codemass = tmpStr(43).Split(Chr(34))
    
                CodeNum = CInt(Codemass(3))
    
    
                tMass = tmpStr(43).Split(Chr(34))
                WCmass = tmpStr(17).Split(Chr(34))
                ATmass = tmpStr(18).Split(Chr(34))
    
                outWindC = "W: " & WCmass(3) & "o," & WCmass(5) & unSpd
                'outWCode = WCondition(CodeNum)
    
    
                outWState = tMass(1) & ","
                outTemp = tMass(5)
                outTemp = outTemp & Mid(units, 4, 1)
    
                outDate = tMass(7)
                outHum = ATmass(1) & "%, " & ATmass(5) & unPre
            Catch ex As Exception
                MsgBox(ex.ToString)
            End Try

    Мой старый парсер XML-погоды с Yahoo. System.Xml? Нет, не слышал.

    RaZeR, 28 Января 2011

    Комментарии (3)
  5. VisualBasic / Говнокод #5378

    −457

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    Public Function CheckForError(ByVal sRes1 As String, ByVal sRes2 As String, Optional ByVal sRes3 As String = "", Optional ByVal sRes4 As String = "", Optional ByVal sRes5 As String = "", Optional ByVal sRes6 As String = "", Optional ByVal sRes7 As String = "", Optional ByVal sRes8 As String = "", Optional ByVal sRes9 As String = "", Optional ByVal sRes10 As String = "", Optional ByVal sRes11 As String = "") As Boolean
                Dim bRes As Boolean = True
                If Not CheckForError(sRes1) Then
                    If Not CheckForError(sRes2) Then
                        If Not CheckForError(sRes3) Then
                            If Not CheckForError(sRes4) Then
                                If Not CheckForError(sRes5) Then
                                    If Not CheckForError(sRes6) Then
                                        If Not CheckForError(sRes7) Then
                                            If Not CheckForError(sRes8) Then
                                                If Not CheckForError(sRes9) Then
                                                    If Not CheckForError(sRes10) Then
                                                        If Not CheckForError(sRes11) Then
                                                            bRes = False
                                                        End If
                                                    End If
                                                End If
                                            End If
                                        End If
                                    End If
                                End If
                            End If
                        End If
                    End If
                End If
    
                Return bRes
            End Function

    Птицы летят на юг!

    adler, 24 Января 2011

    Комментарии (13)
  6. VisualBasic / Говнокод #5206

    −174

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    36. 36
    37. 37
    38. 38
    39. 39
    40. 40
    41. 41
    42. 42
    43. 43
    44. 44
    45. 45
    46. 46
    47. 47
    48. 48
    49. 49
    50. 50
    51. 51
    52. 52
    53. 53
    54. 54
    55. 55
    56. 56
    Sub display(frm As Form)
        Dim lvl As Boolean
        Dim format As String
        If (frm.optSex(0).value) Then
            format = oI18n.translate("res_m")
            format = Replace(format, "\n", vbCrLf, 1, -1, vbBinaryCompare)
            format = Replace(format, "*", frm.cmbSchool.Text, 1, 1, vbTextCompare)
            format = Replace(format, "*", frm.txtForm.Text, 1, 1, vbTextCompare)
            format = Replace(format, "*", frm.txtName.Text, 1, 1, vbTextCompare)
            format = Replace(format, "*", frm.txtSurname.Text, 1, 1, vbTextCompare)
            lvl = False
            For Each optLvl In frm.chkLevel
                If (optLvl.value) Then
                    format = Replace(format, "*", oI18n.translate(optLvl.Tag & "_m"), 1, 1, vbTextCompare)
                    lvl = True
                End If
            Next optLvl
            If (Not lvl) Then format = Replace(format, "*", oI18n.translate("Bad" & "_m"), 1, 1, vbTextCompare)
        End If
        If (frm.optSex(1).value) Then
            format = oI18n.translate("res_f")
            format = Replace(format, "\n", vbCrLf, 1, -1, vbBinaryCompare)
            format = Replace(format, "*", frm.cmbSchool.Text, 1, 1, vbTextCompare)
            format = Replace(format, "*", frm.txtForm.Text, 1, 1, vbTextCompare)
            format = Replace(format, "*", frm.txtName.Text, 1, 1, vbTextCompare)
            format = Replace(format, "*", frm.txtSurname.Text, 1, 1, vbTextCompare)
            lvl = False
            For Each optLvl In frm.chkLevel
                If (optLvl.value) Then
                    format = Replace(format, "*", oI18n.translate(optLvl.Tag & "_f"), 1, 1, vbTextCompare)
                End If
            Next optLvl
            If (Not lvl) Then format = Replace(format, "*", oI18n.translate("Bad" & "_f"), 1, 1, vbTextCompare)
        End If
        Dim dalykai As String
        Dim first As Boolean
        dalykai = ""
        first = True
        For Each chkFavorite In frm.chkFavorites
            If (chkFavorite.value) Then dalykai = dalykai & IIf(first, vbCrLf, vbCrLf) & (chkFavorite.Caption)
            first = False
        Next chkFavorite
        If (frm.chkFavoriteOther.value) Then dalykai = dalykai & IIf(first, vbCrLf, vbCrLf) & (frm.txtFavoriteOther.Text)
        Dim b As Boolean
        b = dalykai = ""
        If (b) Then
            If (frm.optSex(0).value) Then dalykai = oI18n.translate("nores_m")
            If (frm.optSex(1).value) Then dalykai = oI18n.translate("nores_f")
        End If
        If (Not b) Then
            If (frm.optSex(0).value) Then dalykai = oI18n.translate("res2_m") & dalykai
            If (frm.optSex(1).value) Then dalykai = oI18n.translate("res2_f") & dalykai
        End If
        
        MsgBox (format & vbCrLf & dalykai)
    End Sub

    заполняем строку-шаблон, заменяя звездочки реальными данными
    вот не было в VB6 printf-подобной функции ((

    Lure Of Chaos, 10 Января 2011

    Комментарии (9)
  7. VisualBasic / Говнокод #5205

    −166

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    36. 36
    37. 37
    38. 38
    39. 39
    Public Sub DBOpen(Optional sFullPath As String = "")
        If sFullPath = "" Then sFullPath = sPath
        Dim f As Integer
        Dim l As Integer
        Dim tmp As String
        Dim sName As String
        Dim sSurname As String
        Dim sSex As String
        Dim dBirthdate As Date
        Dim sCity As String
        Dim sStreet As String
        l = 0
        f = FreeFile
        Open sFullPath For Input As #f
            While Not EOF(f)
                Line Input #f, tmp
                l = l + 1
            Wend
        Close #f
        If l > 0 Then
            ReDim asDB(0 To l - 1) As clsCitizen
            l = 0
            f = FreeFile
            Open sFullPath For Input As #f
                While Not EOF(f)
                    Input #f, sName, sSurname, sSex, dBirthdate, sCity, sStreet
                    Set asDB(l) = New clsCitizen
                    asDB(l).sName = sName
                    asDB(l).sSurname = sSurname
                    asDB(l).sSex = sSex
                    asDB(l).dBirthdate = dBirthdate
                    asDB(l).sCity = sCity
                    asDB(l).sStreet = sStreet
                    l = l + 1
                Wend
            Close #f
        End If
        sPath = sFullPath
    End Sub

    за что я ненавижу VB6

    а ведь по-другому никак = (

    Lure Of Chaos, 10 Января 2011

    Комментарии (12)
  8. VisualBasic / Говнокод #5204

    −166

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    Private Sub btnNew_Click()
        Dim i As Integer
        Dim asCopy() As clsCitizen
        ReDim asCopy(LBound(modCitizen.asDB) To UBound(modCitizen.asDB)) As clsCitizen
        For i = LBound(modCitizen.asDB) To UBound(modCitizen.asDB)
            Set asCopy(i) = modCitizen.asDB(i)
        Next i
        ReDim modCitizen.asDB(UBound(modCitizen.asDB) + 1) As clsCitizen
        For i = LBound(asCopy) To UBound(asCopy)
            Set modCitizen.asDB(i) = asCopy(i)
        Next i
        Set modCitizen.asDB(UBound(modCitizen.asDB)) = New clsCitizen
        modCitizen.asDB(UBound(modCitizen.asDB)).bNew = True
        iRecNum = UBound(modCitizen.asDB)
        RecordRead
        UpdateControls
        LockMe True
    End Sub

    вот через какое место мучительно вспоминал давно забытый, старый добрый VB6

    процедура дополняет массив новым элементом

    Lure Of Chaos, 10 Января 2011

    Комментарии (4)
  9. VisualBasic / Говнокод #5202

    −100

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    36. 36
    37. 37
    38. 38
    39. 39
    40. 40
    41. 41
    42. 42
    43. 43
    44. 44
    45. 45
    46. 46
    47. 47
    48. 48
    49. 49
    50. 50
    51. 51
    52. 52
    53. 53
    54. 54
    55. 55
    56. 56
    57. 57
    58. 58
    59. 59
    60. 60
    61. 61
    62. 62
    63. 63
    64. 64
    65. 65
    66. 66
    67. 67
    68. 68
    69. 69
    70. 70
    71. 71
    72. 72
    73. 73
    74. 74
    75. 75
    76. 76
    77. 77
    78. 78
    79. 79
    80. 80
    81. 81
    82. 82
    83. 83
    84. 84
    85. 85
    86. 86
    87. 87
    88. 88
    89. 89
    90. 90
    91. 91
    92. 92
    93. 93
    94. 94
    95. 95
    96. 96
    97. 97
    98. 98
    Private Sub Combo1_Click()
    
    Select Case Combo1.ListIndex
    
    Case 0
    enemy1.Picture = LoadPicture(App.Path & "\data\Rescaled\RaZeR.jpg")
    Case 1
    enemy1.Picture = LoadPicture(App.Path & "\data\Rescaled\Serg.jpg")
    Case 2
    enemy1.Picture = LoadPicture(App.Path & "\data\Rescaled\Nikton.jpg")
    Case 3
    enemy1.Picture = LoadPicture(App.Path & "\data\Rescaled\Raider.jpg")
    Case 4
    enemy1.Picture = LoadPicture(App.Path & "\data\Rescaled\Andrew.jpg")
    Case 5
    enemy1.Picture = LoadPicture(App.Path & "\data\Rescaled\Gnum.jpg")
    Case 6
    enemy1.Picture = LoadPicture(App.Path & "\data\Rescaled\Iron Man.jpg")
    Case 7
    enemy1.Picture = LoadPicture(App.Path & "\data\Rescaled\Anakin.jpg")
    Case 8
    enemy1.Picture = LoadPicture(App.Path & "\data\Rescaled\Nuparu.jpg")
    Case 9
    enemy1.Picture = LoadPicture(App.Path & "\data\Rescaled\Deleted.jpg")
    Case 10
    enemy1.Picture = LoadPicture(App.Path & "\data\Rescaled\LEGOlas.jpg")
    Case 11
    enemy1.Picture = LoadPicture(App.Path & "\data\Rescaled\Kit Fisto.jpg")
    Case 12
    enemy1.Picture = LoadPicture(App.Path & "\data\Rescaled\Banky.jpg")
    Case 13
    enemy1.Picture = LoadPicture(App.Path & "\data\Rescaled\Pazitiffniy.jpg")
    Case 14
    enemy1.Picture = LoadPicture(App.Path & "\data\Rescaled\GenKen.jpg")
    Case 15
    enemy1.Picture = LoadPicture(App.Path & "\data\Rescaled\Dimanok.jpg")
    Case 16
    enemy1.Picture = LoadPicture(App.Path & "\data\Rescaled\Drakon.jpg")
    Case 17
    enemy1.Picture = LoadPicture(App.Path & "\data\Rescaled\DJ Sim.jpg")
    Case 18
    enemy1.Picture = LoadPicture(App.Path & "\data\Rescaled\Obi-Van.jpg")
    Case 19
    enemy1.Picture = LoadPicture(App.Path & "\data\Rescaled\Vitalya.jpg")
    Case 20
    enemy1.Picture = LoadPicture("data/Rescaled/LukeSW.jpg")
    Case 21
    enemy1.Picture = LoadPicture("data/Rescaled/Smegorik.jpg")
    Case 22
    enemy1.Picture = LoadPicture("data/Rescaled/Vitalya.jpg")
    Case 23
    enemy1.Picture = LoadPicture("data/Rescaled/DJ Sim.jpg")
    End Select
    
    
    End Sub
    
    
    Private Sub Combo2_Click()
    
    Select Case Combo2.ListIndex
    
    Case 0
    enemy2.Picture = LoadPicture(App.Path & "\data\Rescaled\RaZeR.jpg")
    Case 1
    enemy2.Picture = LoadPicture(App.Path & "\data\Rescaled\Serg.jpg")
    Case 2
    enemy2.Picture = LoadPicture(App.Path & "\data\Rescaled\Nikton.jpg")
    Case 3
    enemy2.Picture = LoadPicture(App.Path & "\data\Rescaled\Raider.jpg")
    Case 4
    enemy2.Picture = LoadPicture(App.Path & "\data\Rescaled\Andrew.jpg")
    Case 5
    enemy2.Picture = LoadPicture(App.Path & "\data\Rescaled\Gnum.jpg")
    Case 6
    enemy2.Picture = LoadPicture(App.Path & "\data\Rescaled\Iron Man.jpg")
    Case 7
    enemy2.Picture = LoadPicture(App.Path & "\data\Rescaled\Anakin.jpg")
    Case 8
    enemy2.Picture = LoadPicture(App.Path & "\data\Rescaled\Nuparu.jpg")
    Case 9
    enemy2.Picture = LoadPicture(App.Path & "\data\Rescaled\Deleted.jpg")
    Case 10
    enemy2.Picture = LoadPicture(App.Path & "\data\Rescaled\LEGOlas.jpg")
    Case 11
    enemy2.Picture = LoadPicture(App.Path & "\data\Rescaled\Kit Fisto.jpg")
    Case 12
    enemy2.Picture = LoadPicture(App.Path & "\data\Rescaled\Banky.jpg")
    Case 13
    enemy2.Picture = LoadPicture(App.Path & "\data\Rescaled\Pazitiffniy.jpg")
    Case 14
    enemy2.Picture = LoadPicture(App.Path & "\data\Rescaled\GenKen.jpg")
    Case 15
    enemy2.Picture = LoadPicture(App.Path & "\data\Rescaled\Dimanok.jpg")
    Case 16
    enemy2.Picture = LoadPicture(App.Path & "\data\Rescaled\Drakon.jpg")
    Case 17
    enemy2.Picture = LoadPicture(App.Path & "\data\Rescaled\DJ Sim.jpg")

    Тот же источник, что и #5201. Загрузка картинок из тех самых комбобоксов. А ведь можно было enemy1.Picture = LoadPicture(App.Path & "\data\Rescaled\" & Combo1.SelectedItem & ".jpg").

    RaZeR, 10 Января 2011

    Комментарии (5)
  10. VisualBasic / Говнокод #5201

    −101

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    36. 36
    37. 37
    38. 38
    39. 39
    40. 40
    41. 41
    42. 42
    43. 43
    44. 44
    45. 45
    46. 46
    47. 47
    48. 48
    49. 49
    50. 50
    51. 51
    52. 52
    53. 53
    54. 54
    55. 55
    56. 56
    57. 57
    58. 58
    59. 59
    60. 60
    61. 61
    62. 62
    63. 63
    64. 64
    65. 65
    66. 66
    67. 67
    68. 68
    69. 69
    70. 70
    71. 71
    72. 72
    73. 73
    74. 74
    Combo1.AddItem "RaZeR", 0
    Combo1.AddItem "Serg", 1
    Combo1.AddItem "Nikton", 2
    Combo1.AddItem "Raider", 3
    Combo1.AddItem "Andrew_18", 4
    Combo1.AddItem "Gnum", 5
    Combo1.AddItem "Iron Man", 6
    Combo1.AddItem "Anakin", 7
    Combo1.AddItem "Nuparu", 8
    Combo1.AddItem "Deleted", 9
    Combo1.AddItem "LEGOлас", 10
    Combo1.AddItem "Kit Fisto", 11
    Combo1.AddItem "Banky", 12
    Combo1.AddItem "Пазитифффный", 13
    Combo1.AddItem "Генерал Кеноби", 14
    Combo1.AddItem "Диманок Филин", 15
    Combo1.AddItem "Дракон", 16
    Combo1.AddItem "DJ Sim", 17
    Combo1.AddItem "Obi-Van", 18
    Combo1.AddItem "Виталя", 19
    Combo1.AddItem "ЛюкСкайуокер", 20
    Combo1.AddItem "Смегорик", 21
    Combo1.AddItem "KAPITAN REX", 22
    Combo1.AddItem "Вячеслав", 23
    
    Combo2.AddItem "RaZeR", 0
    Combo2.AddItem "Serg", 1
    Combo2.AddItem "Nikton", 2
    Combo2.AddItem "Raider", 3
    Combo2.AddItem "Andrew_18", 4
    Combo2.AddItem "Gnum", 5
    Combo2.AddItem "Iron Man", 6
    Combo2.AddItem "Anakin", 7
    Combo2.AddItem "Nuparu", 8
    Combo2.AddItem "Deleted", 9
    Combo2.AddItem "LEGOлас", 10
    Combo2.AddItem "Kit Fisto", 11
    Combo2.AddItem "Banky", 12
    Combo2.AddItem "Пазитифффный", 13
    Combo2.AddItem "Генерал Кеноби", 14
    Combo2.AddItem "Диманок Филин", 15
    Combo2.AddItem "Дракон", 16
    Combo2.AddItem "DJ Sim", 17
    Combo2.AddItem "Obi-Van", 18
    Combo2.AddItem "Виталя", 19
    Combo2.AddItem "ЛюкСкайуокер", 20
    Combo2.AddItem "Смегорик", 21
    Combo2.AddItem "KAPITAN REX", 22
    Combo2.AddItem "Вячеслав", 23
    
    Combo3.AddItem "RaZeR", 0
    Combo3.AddItem "Serg", 1
    Combo3.AddItem "Nikton", 2
    Combo3.AddItem "Raider", 3
    Combo3.AddItem "Andrew_18", 4
    Combo3.AddItem "Gnum", 5
    Combo3.AddItem "Iron Man", 6
    Combo3.AddItem "Anakin", 7
    Combo3.AddItem "Nuparu", 8
    Combo3.AddItem "Deleted", 9
    Combo3.AddItem "LEGOлас", 10
    Combo3.AddItem "Kit Fisto", 11
    Combo3.AddItem "Banky", 12
    Combo3.AddItem "Пазитифффный", 13
    Combo3.AddItem "Генерал Кеноби", 14
    Combo3.AddItem "Диманок Филин", 15
    Combo3.AddItem "Дракон", 16
    Combo3.AddItem "DJ Sim", 17
    Combo3.AddItem "Obi-Van", 18
    Combo3.AddItem "Виталя", 19
    Combo3.AddItem "ЛюкСкайуокер", 20
    Combo3.AddItem "Смегорик", 21
    Combo3.AddItem "KAPITAN REX", 22
    Combo3.AddItem "Вячеслав", 23

    VB6, заполнение трёх комбо-боксов одинаковыми пунктами. А если бы комбобоксов было 20?

    RaZeR, 10 Января 2011

    Комментарии (12)