none
Change the label text depending on Combo box selected item in C#, WPF. RRS feed

  • Question

  •  Hiii, 

      Im writting a code in C# Lang. I have Combobox with 2 items, when im click the 1st item in comboBox, Label should be changed with its Units.. For Example : ComboBox item is like this :Consider Speed and Time  are items of combo box, if i click Speed in Label displayed its unit as KiloMeter ,and for time it displayed as Hour

    How to do this ?? Anyone knows please rply

    Thank you.


    Thursday, April 2, 2020 2:24 AM

All replies

  • Hi Sahana M,
    Based on your description, it is related to WPF. So it is recommended to ask the questions in this forum and you can get more professional answer.
    Thank you for your understanding.
    Best Regards,
    Daniel Zhang


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, April 2, 2020 5:58 AM