Results 1 to 3 of 3

Thread: [RESOLVED] Combobox default value

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2011
    Location
    Buckingham, England
    Posts
    197

    Resolved [RESOLVED] Combobox default value

    I have a combobox which contains a sample of names selected from a table.
    Currently the default name displayed in the box is the 1st name found in the table. What I would like to do is display the name of the person who is doing the selection as the default. The name is stored in a public variable 'PubName' and I do not want the user to be able to type into the combobox themselves.

    Is this possible?

  2. #2
    PowerPoster make me rain's Avatar
    Join Date
    Sep 2008
    Location
    india/Hubli
    Posts
    2,208

    Re: Combobox default value

    some thing like
    vb Code:
    1. me.combobox1.text = "Pubname"
    provided
    (1) what is the drop down style of your combobox ( for example if it is dropdownlist some condition applies, that pubname should be avaialble in the combobox list)
    The averted nuclear war
    My notes:

    PrOtect your PC. MSDN Functions .OOP LINUX forum
    .LINQ LINQ videous
    If some one helps you please rate them with out fail , forum doesn't expects any thing other than this

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Sep 2011
    Location
    Buckingham, England
    Posts
    197

    Re: Combobox default value

    Thanks - OK I was definitely trying to over complicate that one. Did not need the ""s thou.

Tags for this Thread

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