I am new to this so bear with me.
I have a set of combo boxes. Lets call them ComboBox1 and ComboBox2.
ComboBox1 items are pulled from a table. When a user selects a certain item
I want to disable ComboBox2. i can make this work in Visual Web Developer,
but have been unsuccessful in Visual Basic 2005. 10 2075
Can you show it how you would do it in aspnet, maybe is that the best
traject to show it you in VBNet.
Did you know by the way that the most active VB newsgroup is
microsoft.publi c.dotnet.langua ges.vb
Cor
"news.microsoft .com" <re***@cox.ne t> schreef in bericht
news:%2******** ********@TK2MSF TNGP04.phx.gbl. .. I am new to this so bear with me.
I have a set of combo boxes. Lets call them ComboBox1 and ComboBox2.
ComboBox1 items are pulled from a table. When a user selects a certain item I want to disable ComboBox2. i can make this work in Visual Web Developer, but have been unsuccessful in Visual Basic 2005.
I can make it work in Visual Web Developer 2005 with the following syntax:
If DropDownBox1.Se lectedItem.Text = "Normal" Then
DropDownBox6.En abled = False
Else
DropDownBox6.En abled = True
EndIF
I was hoping that the following would work in VB 2005 but so far I have been
unsuccessful in making it work.
If ComboBox.Select edItem.Text = "Normal" but there is no Text child object
for Selected Item.
"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message
news:ef******** ******@TK2MSFTN GP04.phx.gbl... Can you show it how you would do it in aspnet, maybe is that the best traject to show it you in VBNet.
Did you know by the way that the most active VB newsgroup is
microsoft.publi c.dotnet.langua ges.vb
Cor
"news.microsoft .com" <re***@cox.ne t> schreef in bericht news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..I am new to this so bear with me.
I have a set of combo boxes. Lets call them ComboBox1 and ComboBox2.
ComboBox1 items are pulled from a table. When a user selects a certain item I want to disable ComboBox2. i can make this work in Visual Web Developer, but have been unsuccessful in Visual Basic 2005.
DJ,
In my idea is the currenttext in a combobox is always the selectedtext.
Combobox1.text = normal
What do I miss?
Cor
"DJ" <re***@cox.ne t> schreef in bericht
news:%2******** ********@TK2MSF TNGP02.phx.gbl. .. I can make it work in Visual Web Developer 2005 with the following syntax:
If DropDownBox1.Se lectedItem.Text = "Normal" Then DropDownBox6.En abled = False Else DropDownBox6.En abled = True EndIF
I was hoping that the following would work in VB 2005 but so far I have been unsuccessful in making it work.
If ComboBox.Select edItem.Text = "Normal" but there is no Text child object for Selected Item.
"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message news:ef******** ******@TK2MSFTN GP04.phx.gbl... Can you show it how you would do it in aspnet, maybe is that the best traject to show it you in VBNet.
Did you know by the way that the most active VB newsgroup is
microsoft.publi c.dotnet.langua ges.vb
Cor
"news.microsoft .com" <re***@cox.ne t> schreef in bericht news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..I am new to this so bear with me.
I have a set of combo boxes. Lets call them ComboBox1 and ComboBox2.
ComboBox1 items are pulled from a table. When a user selects a certain item I want to disable ComboBox2. i can make this work in Visual Web Developer, but have been unsuccessful in Visual Basic 2005.
Correct me if I am wrong but ComboBox1.Text = "Normal" would set the text in
the box to Normal.
What I am trying to do is return the text value of whatever item is selected
so that when one imparticular item (Normal) is selected, ComboBox6 will be
disabled.
"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message
news:%2******** *********@TK2MS FTNGP03.phx.gbl ... DJ,
In my idea is the currenttext in a combobox is always the selectedtext. Combobox1.text = normal
What do I miss?
Cor
"DJ" <re***@cox.ne t> schreef in bericht news:%2******** ********@TK2MSF TNGP02.phx.gbl. ..I can make it work in Visual Web Developer 2005 with the following syntax:
If DropDownBox1.Se lectedItem.Text = "Normal" Then DropDownBox6.En abled = False Else DropDownBox6.En abled = True EndIF
I was hoping that the following would work in VB 2005 but so far I have been unsuccessful in making it work.
If ComboBox.Select edItem.Text = "Normal" but there is no Text child object for Selected Item.
"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message news:ef******** ******@TK2MSFTN GP04.phx.gbl... Can you show it how you would do it in aspnet, maybe is that the best traject to show it you in VBNet.
Did you know by the way that the most active VB newsgroup is
microsoft.publi c.dotnet.langua ges.vb
Cor
"news.microsoft .com" <re***@cox.ne t> schreef in bericht news:%2******** ********@TK2MSF TNGP04.phx.gbl. .. I am new to this so bear with me.
I have a set of combo boxes. Lets call them ComboBox1 and ComboBox2.
ComboBox1 items are pulled from a table. When a user selects a certain item I want to disable ComboBox2. i can make this work in Visual Web Developer, but have been unsuccessful in Visual Basic 2005.
DJ,
I mean
If Combobox1.Text ="Normal" then instead of your code
If DropDownBox1.Se lectedItem.Text = "Normal" Then
Cor
"DJ" <re***@cox.ne t> schreef in bericht
news:%2******** ********@TK2MSF TNGP04.phx.gbl. .. Correct me if I am wrong but ComboBox1.Text = "Normal" would set the text in the box to Normal.
What I am trying to do is return the text value of whatever item is selected so that when one imparticular item (Normal) is selected, ComboBox6 will be disabled.
"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message news:%2******** *********@TK2MS FTNGP03.phx.gbl ... DJ,
In my idea is the currenttext in a combobox is always the selectedtext. Combobox1.text = normal
What do I miss?
Cor
"DJ" <re***@cox.ne t> schreef in bericht news:%2******** ********@TK2MSF TNGP02.phx.gbl. ..I can make it work in Visual Web Developer 2005 with the following syntax:
If DropDownBox1.Se lectedItem.Text = "Normal" Then DropDownBox6.En abled = False Else DropDownBox6.En abled = True EndIF
I was hoping that the following would work in VB 2005 but so far I have been unsuccessful in making it work.
If ComboBox.Select edItem.Text = "Normal" but there is no Text child object for Selected Item.
"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message news:ef******** ******@TK2MSFTN GP04.phx.gbl... Can you show it how you would do it in aspnet, maybe is that the best traject to show it you in VBNet.
Did you know by the way that the most active VB newsgroup is
microsoft.publi c.dotnet.langua ges.vb
Cor
"news.microsoft .com" <re***@cox.ne t> schreef in bericht news:%2******** ********@TK2MSF TNGP04.phx.gbl. .. >I am new to this so bear with me. > > I have a set of combo boxes. Lets call them ComboBox1 and ComboBox2. > > ComboBox1 items are pulled from a table. When a user selects a certain > item I want to disable ComboBox2. i can make this work in Visual Web > Developer, but have been unsuccessful in Visual Basic 2005. > >
Cor,
Thanks for the suggestion. Unfortunately it doesn't work either.
Any other ideas?
"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message
news:Om******** ******@TK2MSFTN GP04.phx.gbl... DJ,
I mean
If Combobox1.Text ="Normal" then instead of your code
If DropDownBox1.Se lectedItem.Text = "Normal" Then
Cor
"DJ" <re***@cox.ne t> schreef in bericht news:%2******** ********@TK2MSF TNGP04.phx.gbl. .. Correct me if I am wrong but ComboBox1.Text = "Normal" would set the text in the box to Normal.
What I am trying to do is return the text value of whatever item is selected so that when one imparticular item (Normal) is selected, ComboBox6 will be disabled.
"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message news:%2******** *********@TK2MS FTNGP03.phx.gbl ... DJ,
In my idea is the currenttext in a combobox is always the selectedtext. Combobox1.text = normal
What do I miss?
Cor
"DJ" <re***@cox.ne t> schreef in bericht news:%2******** ********@TK2MSF TNGP02.phx.gbl. .. I can make it work in Visual Web Developer 2005 with the following syntax:
If DropDownBox1.Se lectedItem.Text = "Normal" Then DropDownBox6.En abled = False Else DropDownBox6.En abled = True EndIF
I was hoping that the following would work in VB 2005 but so far I have been unsuccessful in making it work.
If ComboBox.Select edItem.Text = "Normal" but there is no Text child object for Selected Item.
"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message news:ef******** ******@TK2MSFTN GP04.phx.gbl... > Can you show it how you would do it in aspnet, maybe is that the best > traject to show it you in VBNet. > > Did you know by the way that the most active VB newsgroup is > > microsoft.publi c.dotnet.langua ges.vb > > Cor > > "news.microsoft .com" <re***@cox.ne t> schreef in bericht > news:%2******** ********@TK2MSF TNGP04.phx.gbl. .. >>I am new to this so bear with me. >> >> I have a set of combo boxes. Lets call them ComboBox1 and ComboBox2. >> >> ComboBox1 items are pulled from a table. When a user selects a >> certain item I want to disable ComboBox2. i can make this work in >> Visual Web Developer, but have been unsuccessful in Visual Basic >> 2005. >> >> > >
DJ,
Yes show the code that you are curently using to set the binding to the
datasource, it seems you have something very special.
Cor
"DJ" <re***@cox.ne t> schreef in bericht
news:OQ******** ******@TK2MSFTN GP03.phx.gbl... Cor, Thanks for the suggestion. Unfortunately it doesn't work either.
Any other ideas?
"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message news:Om******** ******@TK2MSFTN GP04.phx.gbl... DJ,
I mean
If Combobox1.Text ="Normal" then instead of your code
If DropDownBox1.Se lectedItem.Text = "Normal" Then
Cor
"DJ" <re***@cox.ne t> schreef in bericht news:%2******** ********@TK2MSF TNGP04.phx.gbl. .. Correct me if I am wrong but ComboBox1.Text = "Normal" would set the text in the box to Normal.
What I am trying to do is return the text value of whatever item is selected so that when one imparticular item (Normal) is selected, ComboBox6 will be disabled.
"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message news:%2******** *********@TK2MS FTNGP03.phx.gbl ... DJ,
In my idea is the currenttext in a combobox is always the selectedtext. Combobox1.text = normal
What do I miss?
Cor
"DJ" <re***@cox.ne t> schreef in bericht news:%2******** ********@TK2MSF TNGP02.phx.gbl. .. >I can make it work in Visual Web Developer 2005 with the following >syntax: > > If DropDownBox1.Se lectedItem.Text = "Normal" Then > DropDownBox6.En abled = False > Else > DropDownBox6.En abled = True > EndIF > > I was hoping that the following would work in VB 2005 but so far I > have been unsuccessful in making it work. > > If ComboBox.Select edItem.Text = "Normal" but there is no Text child > object for Selected Item. > > "Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message > news:ef******** ******@TK2MSFTN GP04.phx.gbl... >> Can you show it how you would do it in aspnet, maybe is that the best >> traject to show it you in VBNet. >> >> Did you know by the way that the most active VB newsgroup is >> >> microsoft.publi c.dotnet.langua ges.vb >> >> Cor >> >> "news.microsoft .com" <re***@cox.ne t> schreef in bericht >> news:%2******** ********@TK2MSF TNGP04.phx.gbl. .. >>>I am new to this so bear with me. >>> >>> I have a set of combo boxes. Lets call them ComboBox1 and ComboBox2. >>> >>> ComboBox1 items are pulled from a table. When a user selects a >>> certain item I want to disable ComboBox2. i can make this work in >>> Visual Web Developer, but have been unsuccessful in Visual Basic >>> 2005. >>> >>> >> >> > >
I am using Microsoft Visual Basic 2005 Express Edition. I selected the
ComboBox and checked "Use Data Bound Items". Data Source is set to the SQL
Table. I believe the underlying code is
NewProjectDataS et.Morph.Fill,G etData()
"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message
news:ew******** ******@TK2MSFTN GP04.phx.gbl... DJ,
Yes show the code that you are curently using to set the binding to the datasource, it seems you have something very special.
Cor
"DJ" <re***@cox.ne t> schreef in bericht news:OQ******** ******@TK2MSFTN GP03.phx.gbl... Cor, Thanks for the suggestion. Unfortunately it doesn't work either.
Any other ideas?
"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message news:Om******** ******@TK2MSFTN GP04.phx.gbl... DJ,
I mean
If Combobox1.Text ="Normal" then instead of your code
If DropDownBox1.Se lectedItem.Text = "Normal" Then
Cor
"DJ" <re***@cox.ne t> schreef in bericht news:%2******** ********@TK2MSF TNGP04.phx.gbl. .. Correct me if I am wrong but ComboBox1.Text = "Normal" would set the text in the box to Normal.
What I am trying to do is return the text value of whatever item is selected so that when one imparticular item (Normal) is selected, ComboBox6 will be disabled.
"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message news:%2******** *********@TK2MS FTNGP03.phx.gbl ... > DJ, > > In my idea is the currenttext in a combobox is always the > selectedtext. > Combobox1.text = normal > > What do I miss? > > Cor > > "DJ" <re***@cox.ne t> schreef in bericht > news:%2******** ********@TK2MSF TNGP02.phx.gbl. .. >>I can make it work in Visual Web Developer 2005 with the following >>syntax: >> >> If DropDownBox1.Se lectedItem.Text = "Normal" Then >> DropDownBox6.En abled = False >> Else >> DropDownBox6.En abled = True >> EndIF >> >> I was hoping that the following would work in VB 2005 but so far I >> have been unsuccessful in making it work. >> >> If ComboBox.Select edItem.Text = "Normal" but there is no Text child >> object for Selected Item. >> >> "Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message >> news:ef******** ******@TK2MSFTN GP04.phx.gbl... >>> Can you show it how you would do it in aspnet, maybe is that the >>> best traject to show it you in VBNet. >>> >>> Did you know by the way that the most active VB newsgroup is >>> >>> microsoft.publi c.dotnet.langua ges.vb >>> >>> Cor >>> >>> "news.microsoft .com" <re***@cox.ne t> schreef in bericht >>> news:%2******** ********@TK2MSF TNGP04.phx.gbl. .. >>>>I am new to this so bear with me. >>>> >>>> I have a set of combo boxes. Lets call them ComboBox1 and >>>> ComboBox2. >>>> >>>> ComboBox1 items are pulled from a table. When a user selects a >>>> certain item I want to disable ComboBox2. i can make this work in >>>> Visual Web Developer, but have been unsuccessful in Visual Basic >>>> 2005. >>>> >>>> >>> >>> >> >> > >
Hello news.microsoft. com,
Set a breakpoint on your Combobox1.Selec tedIndexChanged event. Then set
a watch on Combobox1 and Combobox1.Selec tedItem.
The watch window will tell you all you need to know.
-Boo I am new to this so bear with me.
I have a set of combo boxes. Lets call them ComboBox1 and ComboBox2.
ComboBox1 items are pulled from a table. When a user selects a certain item I want to disable ComboBox2. i can make this work in Visual Web Developer, but have been unsuccessful in Visual Basic 2005. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: ross kerr |
last post by:
Hi all,
I have a control that extends the ComboBox object. It
updates the selected item based on what the user enters in
the text area.
In the OnLeave event of the combobox, the selected index
is set to the proper item. However, when accessing its
selectedindex later it has reverted to the previous
value. The selectedindex value is...
|
by: Beeeeeeeeeeeeves |
last post by:
I have an ownerdrawn combo box which I am drawing with an image and some text, this is all working beautifully apart from the difference in the Brush I have to draw the background and the text with if the item is the currently selected one.
I have selected a blue (SystemColors.Highlight) background brush and white (SystemColors.HighlightText)...
|
by: PeterZ |
last post by:
G'day,
After doing much searching and pinching bits of ideas from here there and
everywhere I came up with a fairly 'clean' solution of including a comboBox
into a dataGrid column.
You can download a fully working C# sample with the Northwind.mdb here:
www.insightgis.com.au/web/stuff/DataGridCombo.zip
|
by: Doug |
last post by:
This is a repost of an item that I still cannot resolve.
I have 3 combo boxes. The first leads to the second to the third.
When I have selected a value in the second box, the third box shows the
available information based on the second combo box selection. But if I
change my mind and select a different item in the second box, after the...
|
by: pmcguire |
last post by:
OK. So I've been to http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp and learned a lot about what I might do with a datagrid. But I'm STILL not able to do what I want to do. I want to be able be able to enter data into my grid cell using a combobox. I want the combobox to display items based on my selected DisplayMember and update the...
| |
by: Brian |
last post by:
I've setup a custom combobox control that allows a multikey selections. This
lets the user enter key presses and the combo scrolls to the matching
selection. I run into a bug when the user opens the dropdown and enters a
new character which the box auto scrolls to. The combobox displays the
selected value but when I reference the text and...
|
by: Don |
last post by:
I've looked high and low for some code that will allow me to have a combobox
with a flat borderstyle. I found a few examples, but nothing that was
really usable for me. I had the following criteria that I wanted to meet,
but nothing did:
- No reliance on a separate library
- No unmanaged code
- Easy subclassing of...
|
by: Jerad Rose |
last post by:
I'm baffled by this -- is there not a typed object used for ComboBox Items?
Best I can tell, all of the methods for ComboBox that accept an Item are of
type Object. Why in the world is a common/standard .NET control accepting
an Object as a parameter type?
In Web Forms, there is a ListItem object that can be passed in to
add/retrieve...
|
by: =?Utf-8?B?RyBIdXN0aXM=?= |
last post by:
This is the 2nd time posting so sorry for duplications.
I am using VB.NT 2005 & a standard Combobox.
I've been wracking my brain over this problem for a over a month & cannot
seem to find a way to trap the pressing of a Tab Key when the focus is in a
Combobox. The KeyDown or KeyUp event for a combobox will not fire when the
tab key is...
|
by: Gerrit |
last post by:
Hi,
I try to learn programming in c# with databinding controls. Now I have a
problem with a ComboBox with the advanced properties for databinding, I
want to set the DataSourceUpdateMode to OnPropertyChanged, but then the
combobox does not display the right displaymember.
Below is my sample code (it is working, when you paste it in a new...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |