Click here to Skip to main content
16,006,442 members
Home / Discussions / C#
   

C#

 
QuestionHow to create a Bitmap from a DataGrid Pin
Rick Beideman8-Aug-05 5:40
Rick Beideman8-Aug-05 5:40 
GeneralProblems with Designer executing property's code Pin
Stephen Caldwell8-Aug-05 3:45
Stephen Caldwell8-Aug-05 3:45 
GeneralRe: Problems with Designer executing property's code Pin
leppie8-Aug-05 4:08
leppie8-Aug-05 4:08 
GeneralWebService problem Pin
Dario Solera8-Aug-05 3:41
Dario Solera8-Aug-05 3:41 
GeneralRe: WebService problem Pin
leppie8-Aug-05 4:12
leppie8-Aug-05 4:12 
GeneralRe: WebService problem Pin
Dario Solera8-Aug-05 4:15
Dario Solera8-Aug-05 4:15 
GeneralComboBox Pin
zaboboa8-Aug-05 3:11
zaboboa8-Aug-05 3:11 
GeneralRe: ComboBox Pin
Alomgir Miah8-Aug-05 3:23
Alomgir Miah8-Aug-05 3:23 
private void ComboBox1_KeyUp(Object sender,System.Windows.Forms.KeyEventArgs e)
}

AutoCompleteCombo(ComboBox1,e);
}
public static void AutoCompleteCombo(ComboBox cbo,KeyEventArgs e)

{

String sTypedText;

Int32 iFoundIndex;

Object oFoundItem;

String sFoundText ;

String sAppendText ;

//'Allow select keys without Autocompleting

switch (e.KeyCode)

{

case Keys.Back:

break;

case Keys.Left:

break;

case Keys.Right:

break;

case Keys.Tab:

break;

case Keys.Up:

break;

case Keys.Delete:

break;

case Keys.Down:

break;

}

//'Get the Typed Text and Find it in the list

sTypedText = cbo.Text;

iFoundIndex = cbo.FindString(sTypedText);

//'If we found the Typed Text in the list then Autocomplete

if (iFoundIndex >= 0)

{ //'Get the Item from the list (Return Type depends if Datasource was bound

//' or List Created)

oFoundItem = cbo.Items[iFoundIndex];

//'Use the ListControl.GetItemText to resolve the Name in case the Combo

//' was Data bound

sFoundText = cbo.GetItemText(oFoundItem);

//'Append then found text to the typed text to preserve case

sAppendText = sFoundText.Substring(sTypedText.Length);

cbo.Text = sTypedText.ToString() + sAppendText.ToString();

//'Select the Appended Text

cbo.SelectionStart = sTypedText.Length;

cbo.SelectionLength = sAppendText.Length;

}

}


Live Life King Size
Alomgir Miah
GeneralRe: ComboBox Pin
zaboboa8-Aug-05 3:25
zaboboa8-Aug-05 3:25 
GeneralRe: ComboBox Pin
Alomgir Miah8-Aug-05 4:02
Alomgir Miah8-Aug-05 4:02 
GeneralRe: ComboBox Pin
Mohamad Al Husseiny8-Aug-05 4:05
Mohamad Al Husseiny8-Aug-05 4:05 
GeneralCreating DTS Packages in C# Pin
JMichael24688-Aug-05 3:05
JMichael24688-Aug-05 3:05 
GeneralRe: Creating DTS Packages in C# Pin
JMichael24688-Aug-05 8:27
JMichael24688-Aug-05 8:27 
Generalreading XML from a string Pin
Mridang Agarwalla8-Aug-05 3:01
Mridang Agarwalla8-Aug-05 3:01 
GeneralRe: reading XML from a string Pin
Anonymous8-Aug-05 4:14
Anonymous8-Aug-05 4:14 
GeneralMultiple calls to same function Pin
Dwayner798-Aug-05 2:33
Dwayner798-Aug-05 2:33 
GeneralRe: Multiple calls to same function Pin
Alomgir Miah8-Aug-05 10:44
Alomgir Miah8-Aug-05 10:44 
GeneralRe: Multiple calls to same function Pin
Dwayner799-Aug-05 5:21
Dwayner799-Aug-05 5:21 
QuestionInsert Null to Foxpro table with DataSet? Pin
Member 18559638-Aug-05 1:49
Member 18559638-Aug-05 1:49 
GeneralWebBrowser security level Pin
gnjunge8-Aug-05 1:27
gnjunge8-Aug-05 1:27 
Generalcreating a programming software package Pin
Atmadarshini8-Aug-05 1:17
Atmadarshini8-Aug-05 1:17 
GeneralRe: creating a programming software package Pin
Steve S8-Aug-05 1:40
Steve S8-Aug-05 1:40 
GeneralRe: creating a programming software package Pin
Atmadarshini8-Aug-05 1:45
Atmadarshini8-Aug-05 1:45 
GeneralRe: creating a programming software package Pin
Steve S15-Aug-05 0:37
Steve S15-Aug-05 0:37 
Generalview Pin
magnifique8-Aug-05 1:05
magnifique8-Aug-05 1:05 

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.