Click here to Skip to main content
15,920,438 members
Home / Discussions / C#
   

C#

 
GeneralRe: Pointers - DLL Pin
Chris Rickard24-Jun-02 5:17
Chris Rickard24-Jun-02 5:17 
GeneralRe: Pointers - DLL Pin
koenig24-Jun-02 5:47
koenig24-Jun-02 5:47 
GeneralMoving a form Pin
22-Jun-02 1:05
suss22-Jun-02 1:05 
GeneralRe: Moving a form Pin
Nish Nishant22-Jun-02 1:11
sitebuilderNish Nishant22-Jun-02 1:11 
GeneralRe: Moving a form Pin
22-Jun-02 10:10
suss22-Jun-02 10:10 
GeneralRe: Moving a form Pin
Mazdak22-Jun-02 3:44
Mazdak22-Jun-02 3:44 
GeneralAutoComplete -- DropDowns Pin
mvermef21-Jun-02 13:55
mvermef21-Jun-02 13:55 
GeneralRe: AutoComplete -- DropDowns Pin
Chris Rickard21-Jun-02 14:29
Chris Rickard21-Jun-02 14:29 
While you could use ShAutoComplete From the Shell API it will only AutoComplete URLs. If you want it to autocomplete the Items in a combobox you would have to do a lot of nasty COM interop.

However, I am in the middle of developing a .NET ComboBox that features autocomplete so I already have some code you can have to do this in an inherited combobox. Just use it as you would a regular combobox. Enjoy Smile | :)

using System;
using System.Windows.Forms;

namespace YourNameSpace
{
	public class ACComboBox : ComboBox
	{		
		protected string oldText = "";
		protected override void OnKeyPress(KeyPressEventArgs e)
		{			
			if(!Char.IsControl(e.KeyChar))
			{
				int possibleMatch=0;
				string textBefore = Text;

				possibleMatch = FindString(Text);					
				if(possibleMatch >= 0)
				{						
					oldText = Text;
					SelectedIndex = possibleMatch;						
					Select(textBefore.Length,Text.Length-textBefore.Length);
				}
			}
			base.OnKeyPress(e);			
		}

		protected override void OnTextChanged(EventArgs e)
		{
			oldText = Text;
			base.OnTextChanged(e);
		}
	}
}

GeneralRe: AutoComplete -- DropDowns Pin
Nish Nishant21-Jun-02 15:08
sitebuilderNish Nishant21-Jun-02 15:08 
GeneralRe: AutoComplete -- DropDowns Pin
leppie21-Jun-02 22:36
leppie21-Jun-02 22:36 
GeneralRe: AutoComplete -- DropDowns Pin
Nish Nishant21-Jun-02 23:13
sitebuilderNish Nishant21-Jun-02 23:13 
GeneralWebService Architecture Pin
Steve Severance21-Jun-02 8:45
Steve Severance21-Jun-02 8:45 
GeneralRe: WebService Architecture Pin
SimonS22-Jun-02 0:42
SimonS22-Jun-02 0:42 
GeneralRe: WebService Architecture Pin
Steve Severance22-Jun-02 6:56
Steve Severance22-Jun-02 6:56 
GeneralRe: WebService Architecture Pin
SimonS25-Jun-02 2:26
SimonS25-Jun-02 2:26 
GeneralExecuting Batch Files from .NET Pin
Aisha21-Jun-02 7:10
Aisha21-Jun-02 7:10 
GeneralWriting a MIME Email Attachment to a Binary File Pin
Paul Watson21-Jun-02 7:03
sitebuilderPaul Watson21-Jun-02 7:03 
GeneralRe: Writing a MIME Email Attachment to a Binary File Pin
Christopher Lord21-Jun-02 13:42
Christopher Lord21-Jun-02 13:42 
GeneralRe: Writing a MIME Email Attachment to a Binary File Pin
Paul Watson22-Jun-02 2:35
sitebuilderPaul Watson22-Jun-02 2:35 
GeneralRe: Writing a MIME Email Attachment to a Binary File Pin
Nish Nishant21-Jun-02 18:20
sitebuilderNish Nishant21-Jun-02 18:20 
QuestionASPNET local user = acceptable performance??? Pin
rchildress21-Jun-02 2:58
rchildress21-Jun-02 2:58 
AnswerRe: ASPNET local user = acceptable performance??? Pin
Andy Smith21-Jun-02 12:16
Andy Smith21-Jun-02 12:16 
Generalmore efficient to get right directory's fullname Pin
ygxdha21-Jun-02 1:33
ygxdha21-Jun-02 1:33 
GeneralRe: more efficient to get right directory's fullname Pin
Chris Rickard21-Jun-02 4:16
Chris Rickard21-Jun-02 4:16 
QuestionDirectX and C# ? Pin
20-Jun-02 22:40
suss20-Jun-02 22:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.