Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 154
  • Last Modified:

easy question..

I want to change tha caption of label when i change the item on combobox. Example i want to change my labels caption to 'sys' when i choose sys from combobox.

Ignore me i am beginner..
0
systemop
Asked:
systemop
  • 2
1 Solution
 
MarcGCommented:
procedure Combobox1OnChange(Sender : TObject);
begin
  label1.caption := ComboBox1.text;
end;

//should work like this
0
 
MarcGCommented:
oh, ComboBoxOnChange is the OnChange event for the ComboBox
0
 
systemopAuthor Commented:
Thanks for your help to a beginner
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now