?? ??? ????? ????? ?? ???? ???? ???? ????? ???? ????? ????? ?????? ??????

?????? ????????? ?????? ?????????
???? ???????: 814362 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

???????

????? ??????? DropDownStyle ????? ???? ???? ????? ???? ??? DropDownList ?? ???? ?????? ?????? ?? ?????? ?? ???? ????? ???? ????? ??? ???????. ?????? ?????? ?? ???? ????? ???? ?? ?????? ?? ???? ???? ?????. ?????? ?????? ?? ???? ????? ???? ????? ??? ????? ?????? ???? ???? ???????. ??? ???? ??????? ??? ???? ??????? ???????? ?? ???? ????? ?????????????? ? ????, ??? ????? ro ?? ???? ????? ????, ???? ??????? ??? ?????? ????? ?? ????.

?????

???? ??? ??????? ??? ????? ???? ????? ???? ????? ??? ??? ???? ????? ?? ?????? ???? ?????.

???? ??????

??????? ?????? ??? ??? ??????? ?? ?????? ????????? ???????? ???? ?? ????? ???????? ???? ?????? ???? ?????? ?? ???? ????? ????. ???? ????? ????? ????? ?????? ???? ?? ???? ??????. ???? ?? ????? ?? ????? ????? ??????? ??????? ???? ???? ????. ?????? ????? ???? ??????? ???????:
  1. ?? Microsoft Visual Studio .NET ?? ?? Microsoft Visual Studio 2005 Windows ????? ????? ??????? ???????? Visual Basic .NET ?? 2005 Visual Basic ?? Visual C# .NET.

    ?????????? ??? ????? Form1.
  2. ???? ??? Form1 ?? ???????? ????.
  3. ?? ?????? "?????" ????? ????? ??????? ??? True.
  4. ????? ??????? ??????? ??? ?????? ????? ????? ????????? ????????:

    2005 Visual Basic ?? Visual Basic .NET
    Dim searchstr As String
    Visual C# .NET
    string searchstr;
  5. ?? ?????? ???????? ???????? ??????? ??? ????? Load Form1:

    2005 Visual Basic ?? Visual Basic .NET
    'set the timer interval and start the timer
    Timer1.Interval = 1000
    Timer1.Start()
    Visual C# .NET
    //set the interval  and start the timer
    timer1.Interval =1000;
    timer1.Start();
  6. ?? ?????? ???????? ???????? ??????? ??? ????? ?????????????1:

    2005 Visual Basic ?? Visual Basic .NET
    'empty the string for every 1 seconds
    searchstr = ""
    Visual C# .NET
    //empty the string for every 1 seconds
    searchstr="";
  7. ?? ?????? ???????? ???????? ??????? ??? ????? KeyUpComboBox1:

    2005 Visual Basic ?? Visual Basic .NETsearchstr
          searchstr = searchstr & Chr(e.KeyValue)
          ' If the Search string is greater than 1 then use custom logic
          If searchstr.Length > 1 Then
             Dim index As Integer
             ' Search the Item that matches the string typed
             index = ComboBox1.FindString(searchstr)
             ' Select the Item in the Combo
             ComboBox1.SelectedIndex = index
          End If  
    Visual C# .NET
             searchstr = searchstr + Convert.ToChar(e.KeyCode);
             // If the Search string is greater than 1 then use custom logic
             if (searchstr.Length > 1)
             {
                int index;
                // Search the Item that matches the string typed
                index=comboBox1.FindString(searchstr);
                // Select the Item in the Combo
                comboBox1.SelectedIndex=index;
             }

?????

????? ??? ?????? ??? ???????.

??????? ????

????? ????? ????? ?? ????

  1. ?? Microsoft Visual Studio .NET ?? ?? Microsoft Visual Studio 2005 Windows ????? ????? ??????? ???????? Visual Basic .NET ?? 2005 Visual Basic ?? Visual C# .NET.

    ?????????? ??? ????? Form1. ?????? ??? ??? ????? ?????? ?????? ?? Visual Basic 2005. ???? ???????? ????? Visual Basic ????? ??????? ??? ????? ?????? ????? ????? Windows. ??? ?? ????? ??????? Form1 ? ??? ????? ??????? ???? ???? ??????? Form1.vb ? Form1.Designer.vb. ????? ???????? ???????? ?? ??? Form1.vb. ???? ????? Windows ?????? ???????? ???????? ?? ??? Form1.Designer.vb. ???? ????? Windows ?????? ?????? ???????? ??????? ?????? ????? Form1 ??? ????? ??????. ???? ??? ?????? ???????? ???????? ???? ?? ??????? ???? ??? interspersed ?? ????????? ???????? ?????? ??.

    ????? ?? ????????? ??? ??????? ????? 2005 Visual Basic ??????? ?? ?????? ???? ???? ????? Microsoft (MSDN) ?????? ??? ?????:
    http://msdn2.microsoft.com/en-us/library/ms379584(vs.80).aspx
    ????? ?? ????????? ??? ???? ????? "?" ???? ????? Windows ?? ?????? ???? MSDN ??????:
    http://msdn2.microsoft.com/en-us/library/ms171843.aspx
  2. ???? ??? Form1 ?? ???????? ???? ????? ????.
  3. ???? ??? ?????? ?????? ??? ComboBox1 ??? ?? ???? ??? ?????.
  4. ?? ?????? "?????" ? ???? ?????? DropDownStyle ?? ?? ?????? ??????? ??? DropDownList.
  5. ?? ?????? "?????" ? ???? ?????? ??????? ?? ???? ??? ?? ????? ????? (...).
  6. ?? ???? ?????? ??????? ???? ?????????? ? ???? ??? ???? ?????? ?? ???? ??? ?????.
  7. ?? ??????? "?????" ? ???? ??? ??? ????? ???????.
  8. ???? roComboBox1.

?????

????? ?? ?????????? ?? ?????? ???? MSDN ?????? ??? ?????:

????? ComboBox.DropDownStyle
http://msdn2.microsoft.com/en-us/library/system.windows.forms.combobox.dropdownstyle(vs.71).aspx

???????

???? ???????: 814362 - ????? ??? ??????: 24/???? ??????/1428 - ??????: 2.8
????? ???
  • Microsoft .NET Framework 1.1
  • Microsoft .NET Framework 1.0
  • Microsoft Visual Basic 2005
  • Microsoft Visual Basic .NET 2003 Standard Edition
  • Microsoft Visual Basic .NET 2002 Standard Edition
  • Microsoft Visual C# .NET 2003 Standard Edition
  • Microsoft Visual C# .NET 2002 Standard Edition
????? ??????: 
kbmt kbvs2005swept kbvs2005applies kbctrl kbcontrol kbproperties kbdisplay kbwindowsforms kbcombobox kbprb KB814362 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????814362

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com