Results 1 to 30 of 30

Thread: Entering Text into ComboBox

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2004
    Posts
    17

    Entering Text into ComboBox

    How do I set up the combobox to allow for a user to enter in their own value. I have tried to set the style, but am only allowed to choose from one drop down style of DropDownList. This option does not allow for text entry. Any thoughts?

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Combobox1.Items.Add(TextBox.Text)

  3. #3
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    Hi,

    Set the DropDownStyle property to

    "DropDown"


    Not "DropDownList"
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

  4. #4
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    Hey Pirate,

    "Combobox1.Items.Add(TextBox.Text)"

    What on Earth are you talking about? What question are you answering?
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

  5. #5
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by taxes
    Hey Pirate,

    "Combobox1.Items.Add(TextBox.Text)"

    What on Earth are you talking about? What question are you answering?
    lol , working in a puffymood today so , don't blame me .....

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Mar 2004
    Posts
    17
    I wish I could

    "Set the DropDownStyle property to

    "DropDown"


    Not "DropDownList""


    I can't though because I am only given DropDownList as the only possible style for the Combo Box. I am looking for a fix around this or a reason as to why I only have one available selection for this.

  7. #7
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by jpabich
    I wish I could

    "Set the DropDownStyle property to

    "DropDown"


    Not "DropDownList""


    I can't though because I am only given DropDownList as the only possible style for the Combo Box. I am looking for a fix around this or a reason as to why I only have one available selection for this.
    Are you using custom combobox ? try to remove it and create new one with the same name so you don't have to change any code .

  8. #8

    Thread Starter
    Junior Member
    Join Date
    Mar 2004
    Posts
    17
    Just tried your suggestion. I deleted the current combo box and added a new one from the toolbox. I changed the name to the name of the previous combobox. I still only get a dropdown style of DropDownList. I had another person in the office create a new form and add a combo box to it and they too only got one option for the drop down style. Is this a .NET 2003 bug?

  9. #9
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    I don't think it's a bug since it's working fine here and never had this problem before . Try to force it (if possible) by setting that by code :

    VB Code:
    1. Me.ComboBox1.DropDownStyle = ComboBoxStyle.DropDownList

  10. #10

    Thread Starter
    Junior Member
    Join Date
    Mar 2004
    Posts
    17
    I can not force it to any other drop down style. I get an error for any other style .

    For example if I do:

    Me.ComboBox1.DropDownStyle = ComboBoxStyle.DropDown

    I get : "DropDown is not a member of System.Windows.Forms.ComboBoxStyle"

    I seem to be screwed on this one.

  11. #11
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    There must be wrong with the .NET Framework or the desinger (IDE) . Can suggest anything else . probably last one ...Format C: ..

  12. #12
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    When you say your friend has the same problem, is it possible that you installed VB.NET 2003 from the same disk? Or did you mean your friend tried it on the same machine? If so the next step is to reinstall VB.Net.
    Last edited by taxes; Mar 24th, 2004 at 01:14 PM.
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

  13. #13

    Thread Starter
    Junior Member
    Join Date
    Mar 2004
    Posts
    17
    All machines were installed with the same software via the same CDs which came directly from Microsoft. I am not sure if there is a problem with the disks or not. It may be a last ditch effort if I have to go through the installation process again.

  14. #14
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    HI,


    "Just tried your suggestion. I deleted the current combo box and added a new one from the toolbox. I changed the name to the name of the previous combobox."

    On a machine with the problem, don't delete the existing one but try to add a new combobox from your tool box with a different name and see what that offers you. If it is still no good then open up a new solution and see if you still have the problem.

    Let us know how you get on.
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

  15. #15
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    "For example if I do:

    Me.ComboBox1.DropDownStyle = ComboBoxStyle.DropDown

    I get : "DropDown is not a member of System.Windows.Forms.ComboBoxStyle" "



    Are you sure? Doesn't it say


    DropDown is not a member of System.Windows.Forms.ComboBox.Style" (just a guess!)
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

  16. #16

    Thread Starter
    Junior Member
    Join Date
    Mar 2004
    Posts
    17
    No, it says:

    "DropDown is not a member of System.Windows.Forms.ComboBoxStyle"

    It does not say ComboBox.Style


    I just double checked.

  17. #17
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    OK , I remember a problem some guy on this forum has had just similar to this one, after a lengthy discussion he discovered a virus in System.Drawing.dll or something . So , you maybe have a virus .

  18. #18
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    which version of the software are u running? I don't know the specs off the top but I know the "standard" version is almost like a trial version.

    do u guys think this could the problem?

  19. #19
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by thephantom
    which version of the software are u running? I don't know the specs off the top but I know the "standard" version is almost like a trial version.

    do u guys think this could the problem?
    I don't believe so . Standard (limited version) can't make UC and can't connect to SQL db (from Server Explorer), if I'm not wrong , but it offers all the basic stuff like this one for example .

  20. #20
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    hmm. then it's strange one, that's for sure

  21. #21
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    Hi jpabich


    Did you try my suggestion to add another combobox on the errant machines"
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

  22. #22

    Thread Starter
    Junior Member
    Join Date
    Mar 2004
    Posts
    17
    I did add another combo box, but have the same results. I am also having other funny issues such as not being able to see scroll bars on text boxes when I set the multi line parameter and scroll bar parameter. I seem to be missing a good chunck of functionality. Seems a bit strange.

  23. #23
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    Originally posted by jpabich
    I did add another combo box, but have the same results. I am also having other funny issues such as not being able to see scroll bars on text boxes when I set the multi line parameter and scroll bar parameter. I seem to be missing a good chunck of functionality. Seems a bit strange.
    unless you have text that goes beyond the visibal vertical height of that box, you won't see bars. You have to set the scrollbars property to see them as 'ghosted' if you want to see them as being there.

  24. #24

    Thread Starter
    Junior Member
    Join Date
    Mar 2004
    Posts
    17
    I put six lines of text in the text box and saw that it was all on separate lines and I could scroll through it with arrow keys, but no scroll bars.

  25. #25
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    Hi

    Did you try creating a new solution and seeing what a combobox offers then?

    One other thought, did you create the combobox from the toolbox or in code?

    What level processing chip is your computor based on?
    Last edited by taxes; Mar 26th, 2004 at 11:00 AM.
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

  26. #26
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Dude , your framework screwed up .

  27. #27

    Thread Starter
    Junior Member
    Join Date
    Mar 2004
    Posts
    17
    I found the difference/issue. You all are using a Windows Application project and I am using a SmartDevice project. SmartDevice does not have all the same properties available that the windows forms do.

  28. #28
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by jpabich
    I found the difference/issue. You all are using a Windows Application project and I am using a SmartDevice project. SmartDevice does not have all the same properties available that the windows forms do.
    and you're testing us ?? Why didn't you say this since the beginning !!
    You deserve a kick in the butt .

  29. #29

    Thread Starter
    Junior Member
    Join Date
    Mar 2004
    Posts
    17
    Sorry, I didn't realize that there would be any difference since they are within the same application and framework. You would think Microsoft would have the same capabilities across all available projects. I guess not. Back to the drawing board for me.

  30. #30
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    that's interesting though. I plan on creating a project like that too and it's nice to know about that in advance!!

    That's the beauty of these forums

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