9 Replies - 1653 Views - Last Post: 27 July 2012 - 01:57 PM Rate Topic: -----

#1 akoako12  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 17
  • Joined: 12-July 12

how can i add multiple selected comboBox to a label

Posted 12 July 2012 - 07:44 AM

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
Is This A Good Question/Topic? 0
  • +

Replies To: how can i add multiple selected comboBox to a label

#2 BobRodes  Icon User is offline

  • Your Friendly Local Curmudgeon
  • member icon

Reputation: 562
  • View blog
  • Posts: 2,935
  • Joined: 19-May 09

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

Was This Post Helpful? 0
  • +
  • -

#3 akoako12  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 17
  • Joined: 12-July 12

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?
Was This Post Helpful? 0
  • +
  • -

#4 BobRodes  Icon User is offline

  • Your Friendly Local Curmudgeon
  • member icon

Reputation: 562
  • View blog
  • Posts: 2,935
  • Joined: 19-May 09

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?
Was This Post Helpful? 0
  • +
  • -

#5 akoako12  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 17
  • Joined: 12-July 12

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?
Was This Post Helpful? 0
  • +
  • -

#6 BobRodes  Icon User is offline

  • Your Friendly Local Curmudgeon
  • member icon

Reputation: 562
  • View blog
  • Posts: 2,935
  • Joined: 19-May 09

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?
Was This Post Helpful? 0
  • +
  • -

#7 akoako12  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 17
  • Joined: 12-July 12

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..
Was This Post Helpful? 0
  • +
  • -

#8 BobRodes  Icon User is offline

  • Your Friendly Local Curmudgeon
  • member icon

Reputation: 562
  • View blog
  • Posts: 2,935
  • Joined: 19-May 09

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...
Was This Post Helpful? 0
  • +
  • -

#9 akoako12  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 17
  • Joined: 12-July 12

Re: how can i add multiple selected comboBox to a label

Posted 27 July 2012 - 06:53 AM

ok sir thnk you godbless
Was This Post Helpful? 0
  • +
  • -

#10 BobRodes  Icon User is offline

  • Your Friendly Local Curmudgeon
  • member icon

Reputation: 562
  • View blog
  • Posts: 2,935
  • Joined: 19-May 09

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. :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1