Results 1 to 4 of 4

Thread: how do i select items from combox?

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2007
    Posts
    208

    Arrow how do i select items from combox?

    i am using VS 2008.

    and i am developing windows form application, i am a beginner for this.

    i have a comboBox that contains colors, these are, Blue,Red,Green,Yellow and Pink.

    I have populated them from the graphical interface in my visual studio project.

    now i want to select one color so that i can assign it to my text box.

    my comboBox name is comboBox1.

    my textbox is TextBox1


    if (combox1.selectedItem=="color")

    then

    textbox1.text="selected Color name"


    so how can i assign it to my textbox1 by selecting from the dropdown list in my combobox1.

    thanks for your hellping
    Last edited by nebrom; Feb 8th, 2011 at 06:26 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width