Eines der coolsten Features, die der Internet Explorer bereitstellt, ist meiner Ansicht nach die 'AutoComplete'-Funktion. Sie zeigt, sobald der User die ersten Zeichen in ein Tetxtfeld eingibt, ein Auswahlmenü mit vermutlich gesuchten URLs oder Verzeichnisen an. Ab dem Internet Explorer 5 ist dieses Feature auch VB-Programmierern zugänglich: ' Deklarationen: Private Declare Function SHAutoComplete Lib "shlwapi" ( _ ByVal hWnd As Long, _ ByVal dwFlags As Long) As Long ' // Currently (SHACF_FILESYSTEM | SHACF_URLALL) Const SHACF_DEFAULT = &H0 ' // This includes the File System as well as the rest ' of the shell (Desktop\My Computer\Control Panel\) Const SHACF_FILESYSTEM = &H1 ' // URLs in the User's History Const SHACF_URLHISTORY = &H2 ' // URLs in the User's Recently Used list. Const SHACF_URLMRU = &H4 ' // URLs in the User's Recently Used list. Const SHACF_USETAB = &H8 ' // Don't AutoComplete non-File System items. Const SHACF_FILESYS_ONLY = &H10 Const SHACF_URLALL = (SHACF_URLHISTORY Or SHACF_URLMRU) ' // Ignore the registry default and force the feature on. Const SHACF_AUTOSUGGEST_FORCE_ON = &H10000000 ' // Ignore the registry default and force the feature off. Const SHACF_AUTOSUGGEST_FORCE_OFF = &H20000000 ' // Ignore the registry default and force the feature on. ' (Also know as AutoComplete) Const SHACF_AUTOAPPEND_FORCE_ON = &H40000000 ' // Ignore the registry default and force the feature off. ' (Also know as AutoComplete) Const SHACF_AUTOAPPEND_FORCE_OFF = &H80000000 Function EnableAutoComplete(hWnd As Long, dwFlags As Long) _ As Boolean ' Aktiviert das AutoComplete-feature für die ' angegebene Textbox. Falls die aktuelle IE-Version ' dies nicht unterstützt, wird FALSE zurückgegeben On Error GoTo Err_AutoComplete SHAutoComplete hWnd, dwFlags EnableAutoComplete = True Exit Function Err_AutoComplete: EnableAutoComplete = False End FunctionBeispiel, benötigt ein Textfeld (Text1): Private Sub Form_Load() EnableAutoComplete Text1.hWnd, 0& End Sub Dieser Tipp wurde bereits 20.272 mal aufgerufen.
Anzeige
![]() ![]() ![]() (einschl. Beispielprojekt!) Ein absolutes Muss - Geballtes Wissen aus mehr als 8 Jahren vb@rchiv! - nahezu alle Tipps & Tricks und Workshops mit Beispielprojekten - Symbol-Galerie mit mehr als 3.200 Icons im modernen Look Weitere Infos - 4 Entwickler-Vollversionen (u.a. sevFTP für .NET), Online-Update-Funktion u.v.m. |
sevGraph (VB/VBA) ![]() Grafische Auswertungen Präsentieren Sie Ihre Daten mit wenig Aufwand in grafischer Form. sevGraph unterstützt hierbei Balken-, Linien- und Stapel-Diagramme (Stacked Bars), sowie 2D- und 3D-Tortendiagramme und arbeitet vollständig datenbankunabhängig! Tipp des Monats Access-Tools Vol.1 ![]() Über 400 MByte Inhalt Mehr als 250 Access-Beispiele, 25 Add-Ins und ActiveX-Komponenten, 16 VB-Projekt inkl. Source, mehr als 320 Tipps & Tricks für Access und VB |
||||||||||||||||
Microsoft, Windows und Visual Basic sind entweder eingetragene Marken oder Marken der Microsoft Corporation in den USA und/oder anderen Ländern. Weitere auf dieser Homepage aufgeführten Produkt- und Firmennamen können geschützte Marken ihrer jeweiligen Inhaber sein. |