index > Visual C# General > Help : Using comboBox and KeyPress event in form

Help : Using comboBox and KeyPress event in form

Hi

I have newer C#. I am finding way solve 2 problem.

    1. I load data (name and id) from database. i cannĀ“t find way add 2 column to comboBox.

    2. KeyPress in form very foolish. It only active in frist press , in next press it do not have any thing.

Please help me !!!

Thanks




uV gnoaH
duckling
For number 2, use KeyDown and KeyUp. However, KeyPress should fire every time the key is pressed down.


Moderator; MCTS .NET 2.0 Web Applications
CommonGenius.com
reply 2

You can use google to search for other answers

 

More Articles

• Re: Unrecognized configuration section 'connectionStrings'
• String Values
• microsoft robotics studio
• Binding-DataGridView
• Free icons on registration of VS 2005 express
• DllNotFound Error when using PInvoke on non-MS DLL
• How to serialize unexpected complex type contained in class being...
• my control in toolbox
• how to convert excel formula to C#
• how to manipulate Listbox
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• Background Thread
• Registry
• Please Help!!
• Transferring data from one form to anoth
• where to find MSCOMM32.OCX?
• User Controls in FlowPanel
• How to increment the date?
• app.TaskVisible = false
• Which is better?
• Writing directly to the console buffer
• Merge sort code
• SQL 2005 selected maximum between column
• Where do I declare variable which can be
• How to sort rows in DataTable
• Export PowerPoint using viewer with C#?

Hot Articles

• DataFormatString in GridView
• Writing a txt File problem
• active directory
• Using a variable in place of a hard coce
• How to make name exsist in class or name
• ASP.NET - Moving the ASPNETDB.MDF file t
• How to realize Undo/Redo
• Data from two column of a Table in one C
• how to get object instance dynamically?
• Inheritance and custom events
• How to Switch between two forms
• Why did I only get part of what I intend
• How to (invoke) call an event manually?
• Question on Winows Service using c#
• General cast

Recommend Articles

• How To Updated The Deployed Web Part
• Asynchronous Method Calls - Whats the max?
• boolean expression evaluation
• Two questions about Windows Services
• How to open Excel in the current folder
• DataBase connection lost details
• Using combination of 2 XmlTextReaders fa
• global 2-D array of strings
• With StreamWriter
• ActiveX control in Windows Service
• please help C# loading images from acces
• Changing Date format
• How to free a BYTE[] ?
• Application.ProductVersion
• GridView