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?
Printable View
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?
Combobox1.Items.Add(TextBox.Text)
Hi,
Set the DropDownStyle property to
"DropDown"
Not "DropDownList"
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 .....:DQuote:
Originally posted by taxes
Hey Pirate,
"Combobox1.Items.Add(TextBox.Text)"
What on Earth are you talking about? What question are you answering?
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 .Quote:
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.
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?
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:
Me.ComboBox1.DropDownStyle = ComboBoxStyle.DropDownList
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.
There must be wrong with the .NET Framework or the desinger (IDE) . Can suggest anything else . probably last one ...Format C: ..:D
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.
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.
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.
"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!)
No, it says:
"DropDown is not a member of System.Windows.Forms.ComboBoxStyle"
It does not say ComboBox.Style
I just double checked.
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 .
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 .Quote:
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?
hmm. then it's strange one, that's for sure :p
Hi jpabich
Did you try my suggestion to add another combobox on the errant machines"
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.Quote:
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.
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.
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?
Dude , your framework screwed up . :)
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 !!:confused:Quote:
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.
You deserve a kick in the butt . :bigyello:
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.
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 :) :D ;) :p :rolleyes: :cool: :bigyello: :wave: :lol: