5
Answers

C# DropDownList (Combobox) and SQL 2008 Express

Photo of Arno Swanepoel

Arno Swanepoel

14y
5.8k
1

Good day all experts

I am new comer to the world of C# programming and I am very excited to have found this site.
Well done to all parties involve.

I have started a "project" and I require some assistance please.

Background: I have managed to create a project that connects to a SQL database (with a lot of help coming from watching online tutorials and reading up on the forums on this site.)
Thus far I am able to add a new name, surname and preferred name.
I have also added a dropdownlist or better known as a combobox on my form. (this is where I am getting stuck, but more on that later.

The problem: I have a combobox, which I would like to have linked to SQL Express Database and list items in a specific table within in my database. I haven't been able to do this successfully as yet and this is where I would like to ask for assistance with please.  

End Result: I would like add data into all the required feels and with that be able to select the combobox, select an item within the drop down list and be able to click on Submit and all the data will be entered into my SQL database.  

I have included my code I have been able to write to my request.

Thank you in advance for any assistance in this matter

Kind regards,
Arno  

Attachment: code.zip

Answers (5)

0
Photo of mariah sharp
NA 0 0 11y
code 128 can be generated in many kinds of platforms,just take this guide for code 128 in asp.net for example.
besides,as for barcode reader you may refer to reader in .net.
0
Photo of fsdrfew fsre
NA 2 0 11y
check the sample codes on drawing code 128 in c#:
REImage reImage = REFile.OpenImageFile("c:/Sample.png", new PNGDecoder());

Linear barcode = new Linear();//create a barcode

barcode.Type = RasterEdge.Imaging.Barcode.Creator.BarcodeType.CODE128;//select barcode type

barcode.Data = "123456789";//set barcode data
barcode.X = 1.0F;//set x
barcode.Y = 60.0F;//set y
barcode.Resolution = 96;//set resolution
barcode.Rotate = Rotate.Rotate0;//set rotate

barcode.DrawBarcode(reImage, 300, 450);//draw barcode on REImage with location x and y

REFile.SaveImageFile(reImage, "c:/code128.png", new PNGEncoder());
0
Photo of JAY KARL
NA 22 0 12y
First , you need figure out which app. you want to use?
For instance, generate code128 in asp.net:

  1. Install ASP.NET Barcode Control;
  2. Add ASP.NET Barcode Control onto your .NET Visual Studio Toolbox;
  3. Copy "linear.aspx" and "linear.aspx.cs" to the folder where your aspx pages are generating barcodes;
  4. Drag and drop the WebLinearBarcode control into the Forms;
  5. Run the website and you will see a barcode image generated;
  6. More Code 128 Setting see below.
 
Then, you just copy the C# to your peoject to decode it!

Hope it helps!
0
Photo of ada jones
NA 8 0 12y
You need to add the DLL to your VS 2010 toolbox as a common control, then drag and drop it to form to generate Code 128. Here is sample of generating Code 128 in Winforms apps. Hope do help to you.
0
Photo of Brain HameL
NA 2 0 12y

We searched a lot and ended up using leadtools barcode module, which helped us to write and read different barcode types (including code 128).

For more information, see the following page:

http://www.leadtools.com/help/leadtools/v175/dh/ba/leadtools.barcode~leadtools.barcode.barcodereader.html
0
Photo of robert dunleavey
NA 2 0 12y
Hi

Are you trying to print the barcode on a specific printer?

Barcode Labels printers have barcodes on-board you just need to send the correct parameters down i.e. x y cordinates, barcode type, density etc.

Regards

Rob

Barcolde Label Answers
0
Photo of Krishna Garad
NA 16.5k 6.2m 12y
Take a look here
Barcode Generator
Barcode Scanner

may helps you.