is it possible when i choose an item to a comboBox and display it to a label and will able to choose aagin and display it again under the first that i choose?
lblItD.Caption = cboItems
9 Replies - 1653 Views - Last Post: 27 July 2012 - 01:57 PM
Replies To: how can i add multiple selected comboBox to a label
#2
Re: how can i add multiple selected comboBox to a label
Posted 12 July 2012 - 08:23 AM
You want to do this: when the user picks an item in a combo box, you want to display it in a label. Then when the user picks another item in the combo box, you want to display it in a label just under the previous label. You want to keep doing that. Is that correct, or do you want to keep displaying new lines in the same label?
This post has been edited by BobRodes: 12 July 2012 - 08:24 AM
#3
Re: how can i add multiple selected comboBox to a label
Posted 13 July 2012 - 05:51 AM
yes sir thats the thing i want to do to put the next selected items under the label.is it possible?
#4
Re: how can i add multiple selected comboBox to a label
Posted 13 July 2012 - 09:36 AM
By "under the label" do you mean in another label?
#5
Re: how can i add multiple selected comboBox to a label
Posted 14 July 2012 - 09:27 PM
sir under the same label
is it possible?or ill just used table for that?
is it possible?or ill just used table for that?
#6
Re: how can i add multiple selected comboBox to a label
Posted 16 July 2012 - 08:46 PM
No, you can add labels to your form as you go. Again, you want to put each item in a new label, creating new labels as you go?
#7
Re: how can i add multiple selected comboBox to a label
Posted 20 July 2012 - 11:07 PM
using only one label sir then when i click multiple times in the combo box it will add the item under the previous one that i choose..
#8
Re: how can i add multiple selected comboBox to a label
Posted 23 July 2012 - 12:02 PM
Ok, thank you for clarifying. The way to add an item to an existing label is to append a VbCrLf (carriage return line feed) to the existing caption property, and then append the text that you want to add to the label to that.
Watch out for: 1) make sure that you don't append the VbCrLf if the text is the first line selected, and 2) use the AutoSize property to make the label keep getting bigger as you add new lines.
Have a go...
Watch out for: 1) make sure that you don't append the VbCrLf if the text is the first line selected, and 2) use the AutoSize property to make the label keep getting bigger as you add new lines.
Have a go...
#9
Re: how can i add multiple selected comboBox to a label
Posted 27 July 2012 - 06:53 AM
ok sir thnk you godbless
#10
Re: how can i add multiple selected comboBox to a label
Posted 27 July 2012 - 01:57 PM
You're very welcome, and god bless you too.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote



|