|
-
Mar 23rd, 2004, 03:49 PM
#1
Thread Starter
Junior Member
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?
-
Mar 23rd, 2004, 04:47 PM
#2
Sleep mode
Combobox1.Items.Add(TextBox.Text)
-
Mar 23rd, 2004, 04:52 PM
#3
PowerPoster
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.
-
Mar 23rd, 2004, 04:55 PM
#4
PowerPoster
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.
-
Mar 23rd, 2004, 06:08 PM
#5
Sleep mode
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 .....
-
Mar 24th, 2004, 08:48 AM
#6
Thread Starter
Junior Member
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.
-
Mar 24th, 2004, 09:03 AM
#7
Sleep mode
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 .
-
Mar 24th, 2004, 09:59 AM
#8
Thread Starter
Junior Member
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?
-
Mar 24th, 2004, 10:13 AM
#9
Sleep mode
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
-
Mar 24th, 2004, 12:07 PM
#10
Thread Starter
Junior Member
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.
-
Mar 24th, 2004, 12:16 PM
#11
Sleep mode
There must be wrong with the .NET Framework or the desinger (IDE) . Can suggest anything else . probably last one ...Format C: ..
-
Mar 24th, 2004, 01:10 PM
#12
PowerPoster
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.
-
Mar 24th, 2004, 02:05 PM
#13
Thread Starter
Junior Member
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.
-
Mar 25th, 2004, 12:53 PM
#14
PowerPoster
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.
-
Mar 25th, 2004, 01:03 PM
#15
PowerPoster
"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.
-
Mar 25th, 2004, 01:32 PM
#16
Thread Starter
Junior Member
No, it says:
"DropDown is not a member of System.Windows.Forms.ComboBoxStyle"
It does not say ComboBox.Style
I just double checked.
-
Mar 25th, 2004, 08:33 PM
#17
Sleep mode
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 .
-
Mar 25th, 2004, 09:03 PM
#18
Frenzied Member
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?
-
Mar 25th, 2004, 09:27 PM
#19
Sleep mode
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 .
-
Mar 25th, 2004, 09:34 PM
#20
Frenzied Member
hmm. then it's strange one, that's for sure
-
Mar 26th, 2004, 04:01 AM
#21
PowerPoster
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.
-
Mar 26th, 2004, 08:17 AM
#22
Thread Starter
Junior Member
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.
-
Mar 26th, 2004, 09:03 AM
#23
Frenzied Member
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.
-
Mar 26th, 2004, 09:06 AM
#24
Thread Starter
Junior Member
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.
-
Mar 26th, 2004, 10:56 AM
#25
PowerPoster
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.
-
Mar 26th, 2004, 11:01 AM
#26
Sleep mode
Dude , your framework screwed up .
-
Mar 30th, 2004, 08:20 AM
#27
Thread Starter
Junior Member
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.
-
Mar 30th, 2004, 08:27 AM
#28
Sleep mode
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 .
-
Mar 30th, 2004, 08:29 AM
#29
Thread Starter
Junior Member
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.
-
Mar 30th, 2004, 08:45 AM
#30
Frenzied Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|