-
print a label with fields that user can choose
Hello everybody!
I'm new here and i really need some help,pls!
I need to print a label with text fields which are choosed by the user from a checkedlistbox.
ok,thx boys for ur help,BUT...let me tell u again:
label=etichette,like the ones in the hypermarket witch are posted on products(u know..like price,name of the product,etc)...this is what i meat by "label".
i print it on A4,and the user gives the dimensions of the etichette(height and width).I use GDI+ to draw the etichette but i really dont know how to put the text on it.
Last edited by xmyna@yahoo.com; 03-14-2006 at 02:29 AM.
Reason: explain
-
Hi
I'm not sure this is what you want, but what you can do is if for example you have 3 items in checkbox list bo, drop set of labels in your form e.g 3,
e.g Items in CheckBoxList
0 Bread
1 Egg
2 Beacon
Perform a Switch Statement
e.g
Switch(CheckBoxList .SelectedItemIndex)
Case 0:
Label.Text = CheckBoxList.SelectedValue;
Case 1:
Label.Text = CheckBoxList.SelectedValue;
etc.
Hope it will help
-
Do you mean "print a label" from a printer or onto a form face?
-
This should give you a start: loop through your listbox, if selected => msgbox. You can replace the msgbox by your printing code.
Code:
Dim intIndex As Integer
For intIndex = 0 To List1.ListCount - 1
'After then you should write your printing-code
If List1.Selected(intIndex) Then MsgBox List1.List(intIndex)
Next
Benjamin
Similar Threads
-
Replies: 4
Last Post: 04-14-2006, 09:09 AM
-
By sander in forum ASP.NET
Replies: 1
Last Post: 02-16-2002, 08:20 AM
-
Replies: 1
Last Post: 11-27-2001, 06:53 AM
-
By malikmehmood in forum Database
Replies: 0
Last Post: 11-20-2000, 05:12 AM
-
Replies: 2
Last Post: 03-24-2000, 01:05 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks