Samuel Dravis Posted November 20, 2002 Share Posted November 20, 2002 I need some help figuring this out. I'm making a cfg editor for jk2, and i want it to popup a list (list1) of the item partially typed into a textbox (text1). if it can be positioned off to the lower right of the text that'll be great. any ideas? thanks here's some of the code from text1_change: CODE_______________________ Private Sub Text1_Change() List1.Visible = True ' default = false Timer2_Timer End Sub Private Sub Timer2_Timer() 'List1.Visible = False Timer2.Enabled = False End Sub /CODE________________________ i wanted to make it 'invisible until user typed something. if timer2's interval was over, then the list would disappear. if list1.visible = false was true it would disappear in a millisecond. i can't figure that one out either. if you want to see pics of the ConfigEd, click here Link to comment Share on other sites More sharing options...
ArtifeX Posted November 20, 2002 Share Posted November 20, 2002 Eeek! Dear god, man, warn us before posting visual basic code! My eyes! I'm blind! Aaargh!!! Link to comment Share on other sites More sharing options...
Jman3ooo Posted November 21, 2002 Share Posted November 21, 2002 Search through the strings you have and compare them to what is being typed in. THen display everything that matches. I would show the code but I havent done VB since last year. Im using Java Now o yeah Link to comment Share on other sites More sharing options...
TheWhiteRaider Posted November 21, 2002 Share Posted November 21, 2002 Sorry I am still learning VB code. Link to comment Share on other sites More sharing options...
recombinant Posted December 13, 2002 Share Posted December 13, 2002 Originally posted by Samuel Dravis I need some help figuring this out. I'm making a cfg editor for jk2, and i want it to popup a list (list1) of the item partially typed into a textbox (text1). if it can be positioned off to the lower right of the text that'll be great. any ideas? Are you trying to simulate the dropdown in IE (where once you start typing it tries to match your entry, and displays a list of possible matches below), or am I missing something here? Link to comment Share on other sites More sharing options...
farren Posted December 15, 2002 Share Posted December 15, 2002 Here's what you need: Firstly, you need to have the DLL for Microsoft Forms 2.0 (FM20.DLL) installed. I'm not sure if this is installed by default because I have so much **** installed on my machine I don't know what an original VB install looks like. 1. On your toolbox, right click, scroll down to "Microsoft Forms 2.0 object library" and check it. A couple of forms 2.0 components will appear similar to the originals (forms 2 label, text box, drop down and so on) 2. Select the 2.0 Drop-down and place it on your form 3. Set the "Style" property to "2 - fmStyleDropDownList" instead of "1- fmStyleDropDownCombo". 4. This will match text automatically as you type hope this helps Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.