Article View: cn.bbs.comp.lang.visual-basic
Article #20573Re: ���ComboBox�ؼ���
From: ������gg����
Date: Tue, 12 Aug 2003 11:23
Date: Tue, 12 Aug 2003 11:23
33 lines
1970 bytes
1970 bytes
��֪����˵���Dz�������IE��ַ������Ķ��ܣ����������Ļ�������������Ĵ��룺
Private Sub Combo1_KeyDown(KeyCode As Integer, Shift As Integer)
Dim I As Long
Dim existed As Boolean
If KeyCode = 13 Then
If Left(Combo1.Text, 7) <> "http://" Then
Combo1.Text = "http://" + Combo1.Text
End If
WebBrowser1.Navigate Combo1.Text
For I = 0 To Combo1.ListCount - 1
If Combo1.List(I) = Combo1.Text Then
existed = True
Exit For
Else
existed = False
End If
Next
If Not existed Then
Combo1.AddItem (Combo1.Text)
End If
End If
End Sub
�� �� kysyuan (������Ц��û��) �Ĵ������ᵽ: ��
: combobox�ؼ���������������ʱ�Զ�ƥ��comboBox��item��
: ����û���ҵ����MatchEntry���ԣ���λ��Ϻ֪������лл��
--
[m[1;36m�� ��Դ:��BBS ˮľ�廪վ smth.org��[FROM: 166.111.169.210][m
Technical Details
Message-ID:
<000000$3S9@smth.org>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsgate.cuhk.edu.hk!news.zixia.net!maily.cic.tsinghua.edu.cn!SMTHShow Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB X-Google-Thread: 109fdd,f5fa79b449467fd5,start X-Google-Attributes: gid109fdd,public X-Google-ArrivalTime: 2003-08-12 04:25:11 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsgate.cuhk.edu.hk!news.zixia.net!maily.cic.tsinghua.edu.cn!SMTH From: lmth@smth.org (������gg����) Newsgroups: cn.bbs.comp.lang.visual-basic Subject: Re: ���ComboBox�ؼ��� Date: 12 Aug 2003 11:23:12 GMT Organization: BBS ˮľ�廪վ Message-ID: <000000$3S9@smth.org> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit X-Filename: VisualBasic/Z/M.1060687333.L0 Lines: 33