Scanning 1D/2D Barcode from Windows Mobile using Integrated Camera

August 17, 2010

Here is the sample code which shows you how to Scan 1D/2D barcode from Windows Mobile using Integrated Camera.

In this sample i have used open source library.

So, Just download the below file -> change its extension from ‘.doc’ to ‘.zip’ -> Open the project in Visual Studio 2008 -> Run.


Still i am working to on Generating 1D/2D barcode from Windows Mobile Application.


Autocomplete ComboBox (Windows Mobile)

July 7, 2010

Here is the code by which you can get functionality of Auto complete combobox in normal combobox.

Just set your combobox’s DropDownStyle to System.Windows.Forms.ComboBoxStyle.DropDown and add the following code in KeyUp event of the same combobox.

private void cbo_KeyUp(object sender, KeyEventArgs e)
string text = null;
int num = -1;
object item = null;
string str3 = null;
ComboBox box = (ComboBox)sender;
switch (e.KeyCode)
case Keys.Left:
case Keys.Up:
case Keys.Right:
case Keys.Down:
case Keys.Delete:
case Keys.Back:

text = box.Text;
for (int i = 0; i = 0)
item = box.Items[num];
str3 = box.GetItemText(item).Substring(text.Length);
box.Text = text + str3;
box.SelectionStart = text.Length;
box.SelectionLength = str3.Length;
box.SelectedItem = item;

That’s it!!!!!
Happy Windows Mobile Codding…. 🙂