Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Problem With ComboBox

Problem With ComboBox

Scheduled Pinned Locked Moved .NET (Core and Framework)
helpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nagaraju_Focus
    wrote on last edited by
    #1

    Hi all, After Selecting An item in Combobox (Using Mouse), It is Generating an event SelectedValueChanged() . 1. In that I have written a code to Display a part of the string. It is displaying on the combobox. 2. but Immediatly ,it is displaying The whole string which i Selected with the mouse. I dont need 2nd part. can any suggest me what is happening with that event. Why it is displaying full selected Text. Thanks In Advance. Nagaraju

    N 1 Reply Last reply
    0
    • N Nagaraju_Focus

      Hi all, After Selecting An item in Combobox (Using Mouse), It is Generating an event SelectedValueChanged() . 1. In that I have written a code to Display a part of the string. It is displaying on the combobox. 2. but Immediatly ,it is displaying The whole string which i Selected with the mouse. I dont need 2nd part. can any suggest me what is happening with that event. Why it is displaying full selected Text. Thanks In Advance. Nagaraju

      N Offline
      N Offline
      NasimKaziS
      wrote on last edited by
      #2

      if u can paste the code u have written then i would be helpful to suggest u something. ---------------------------------------

      where there is a will there is a way

      N 1 Reply Last reply
      0
      • N NasimKaziS

        if u can paste the code u have written then i would be helpful to suggest u something. ---------------------------------------

        where there is a will there is a way

        N Offline
        N Offline
        Nagaraju_Focus
        wrote on last edited by
        #3

        I am sending My code. private: System::Void cboSelect_SelectedValueChanged(System::Object^ sender, System::EventArgs^ e) { String ^str; str=cboSelect->SelectedItem->ToString()->SubString(0,5); cboSelect->Text=str; } I need to print only 5 charecters from Selected Item on the comboBox. I have Tried above code with SelectedIndexChanged() and SelectionChangeCommitted(),but failed. please Help out. Nagaraju

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups