Hide Or Disable Items In One Combobox?

Feb 25, 2009

how to hide or disable items in one combobox on the basis of selected item in another combobox in vb.net?

View 3 Replies


ADVERTISEMENT

Show/hide Another Combobox With Combobox Items?

Feb 3, 2012

i'm creating a simple search application which have a TEXT box and some combo boxes and radio buttons and a search button.radio button names "Videos", "Audios", "Pics" etc..when radiobutton of video is selected, a combobox is appear having options "DailyMotion", "Metacafe" etc I want that when i click "Metecafe" item in combobox of video, an other combo box appear having items Like "Entertainment", "How To", "+18" etc(categories of video search).

if combobox1.SelectedItem = "PAKISTAN" Then
combobox2.Visible = True
End if
if combobox1.SelectedItem = "INDIA" Then

[code]....

View 3 Replies

Disable Particular Items In A Combobox?

Nov 11, 2011

Is there any option to disable particular items in a combobox?? If No then how can i do that??

I have 4 items in Combobox. For each items( based on combobox selected index change) lots of other calculation is there. i need to display all items but in some cases second item should be disabled.

View 2 Replies

Disable Some Items In A Combobox?

Jan 27, 2009

Is it possible to disable some items in a combobox?Depending on the current mode that my application is in, certain items need to be enabled or disabled.I know that I could remove the items and rebuild the combobox but in this case I think that by showing the items greyed out it gives the user feedback as to what mode they are in and what options would be available to them if they decided to switch modes.

View 17 Replies

How To Disable ComboBox / ListBox Items

Nov 27, 2007

I need to extend a combobox to disable some listitems (i.e splits - "----------"). I reckon some APIs will be involved, and it could get complicated. That'll not put me off though. If anyone with usefull info on the subject could post it,

View 11 Replies

Enabled Propreties To Disable Editing Combobox Items?

Sep 27, 2011

i've tried the enabled propreties to disable editing combobox iteam but it make it gray and it become unreadable.so i changed the combobox style to simple (it looks like a texbox) and i want to know how can i prevent user from changing the content.

View 4 Replies

Hide/Show Items - Possible To Hide A Group Of Text Boxes From View In A Form

May 5, 2012

I'm curious if it is possible to hide a group of text boxes from view in a form until a particular condition is met, and to have a custom set of text boxes for that condition. To give an example; I want radio buttons offering choices for a manner of searching records, the user selects one and then a specific set of text boxes are displayed for the user to utilize, if a different option is chosen a different set of text boxes will be shown. Is this something that can be done?

View 7 Replies

How To Disable And Hide A Specified ListViewItem In ListView

Sep 17, 2010

I want to disable or hide a specified listview item in ListView control, how to do?

View 10 Replies

.net - C# Vb Notifyicon Disable Hide Configure Option?

Jun 28, 2011

How do I get rid of the configure icon shown in attached screenshot It opens up the windows taskbar area icon configure window where you config all the

icons shown in the taskbar. Cannot find any property to disable this.

What is this called so I can google for this ? Nothing on msdn.

View 1 Replies

Disable Or Hide Row/column In Detailsview When Inserting?

Aug 10, 2010

When in insert mode detailsview, there are some parameters that I would like to disable or hide. The columns are autogenerated.

Doesn't work:
DetailsView3.Rows(5).Visible = False
or

[code].....

View 1 Replies

Disable Ctrl Alt Delete Or Hide Task Manager?

Jun 6, 2011

I created a Security Log On that starts when i turn the computer On.Like the Windows Log On.
I managed to disable alt+F4, alt+tab, window key, ctrl+esc, but i have only one problem disabling the task manager or the CTRl+Alt+Delete Button, is there a way or any codes to disable this? im using VB.net 2005.

View 7 Replies

Hide Or Disable Only The X Button (left Upper Corner) In A Window?

Nov 30, 2006

I need to hide or disable only the X button (left upper corner) in a window

View 14 Replies

Dynamicaly Refresh Databound Combobox Items Based On Selected_index_changed Event Of Another Combobox?

Jan 27, 2010

I am using VB.NET together with ADO.NET to create a program. I have set my TableAdapters as needed and bound the correct tables-columns to my comboboxes.My problem though is this:My combobox2 item is bound to a datatable. The table adapter's Fill method (the select command basicaly) includes a public variable in the where clause to fetch the correct results. I ll put some code here to clarify it a bit more.Public Class Frm_inv

[Code]...

View 5 Replies

Get All Items From One Column Of Database Table To The Combobox Items

Apr 28, 2012

I want to get all items from one column of database table to the combobox items.

View 2 Replies

Hide A Value From Combobox

Dec 24, 2011

if i have list of names in a comboboxs ( mike , phlip , akon , roy),,, (( from database)) i have combobox1 , combobox2 ,combobox3 and combobox4 they all have the same list names if i chose mike in combobox1 in combobox2 , combobox3 and combobox4 the list will be ( phlip , akon , roy) then i chose akon in combobox2

View 6 Replies

Hide Some Items In Listbox?

Jun 8, 2011

I have trouble in finding a way to hide or let certain amounts of items be unable to see in a listbox.[code]...

View 4 Replies

Hide Some Items In The Listbox?

Sep 29, 2009

With the following code i am calling the FillListbox Function to fill Listbox1 with all file names in a folder.

Private Sub FillListbox1()
Dim objFS = CreateObject("Scripting.FileSystemObject")
Dim di As New IO.DirectoryInfo("c:MUSIC" )

[code].....

View 8 Replies

Combobox.items.add - Combobox To Have A List Of Choices From A Table In A Db

Jun 14, 2011

[Code]...

I'm making a combobox on a form. I want the combobox to have a list of choices from a table in a db. The two columns are a String and a Date. I want the date column to only show the year. I'm hoping I have the code right as it is above, but I'm not positive I've done the whole date thing right.

View 6 Replies

Hide Item In Combobox?

Jun 29, 2007

vs2005 -vbI have a combobox that gets its values from a call to the db. I have programatically added the list values for the box to match all the possible values that could be pulled from the DB. The user can update these values and update the db entry.I would like to be able to display any entries from the db, however, there is one value on the list that I don't want the user to be able to change the combobox's value to. I'm hoping there is some way to to 'hide' or '.visible=false' for just this one item when the list drops down so the user can't select that value.The box sits in a datagridview. I realize I could use the 'cellbeginedit' & 'cellendedit' events to prevent this action, but I consider that to be a last resort, as I think not showing it on dropdown is preferable code-wise.

View 9 Replies

Hide Unselected Items On A Checkboxlist?

Jan 25, 2012

I have a checkboxlist which gets the data from XML file. If a user selects an item on checkboxlist, i just want to show that item and hide everything else. And beneath that, I want to add clickable text to let the use to choose something else. So if the use click on that text, the user will see the checkboxlist again with the first item selected.

Basically look like this. So how do we achieve this?

require to use vb.net/and checkboxlist control as we will be databinding dynamically from database.

View 2 Replies

VS 2010 Hide ListView Items?

Nov 6, 2011

I have a listview in details mode with multiple columns. I want to be able to temporarily hide entries. I know the old Listview.Items(x).hide = true doesn't exist (from research).I'm wondering if there's a way to create a temporary list of every item NOT to display, remove them from the listview, then when I want them back, just re add them from the list

View 5 Replies

Select A Particular Value On A Combobox By Looping Through Combobox Items?

Jan 5, 2012

I have a form in my vb.net application used to take the data about the returned stock. The form contains two comboboxes. One, named combobox5, contains invoice numbers and the other, named combobox3, contains party codes. Both the comboboxes are pre_loaded using sqldataadapter.

Now what i want is to change the party code in combobox3 when the invoice number is changed in combobox5. Elaborating it further, When Stock is issued the party code is stored along with the invoice number to keep track of to which party was the stock issued. Now when stock is returned i want to keep track that which party has returned the stock and i want that the party code should be automatically selected when the invoice number is changed and it should be what is stored in the database against that particular invoice number....

I'm using the following code for doing so:

Private Sub ComboBox5_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ComboBox5.SelectedIndexChanged
' defines a new connection to the database
Dim con As New SqlConnection("Data Source=TAHA;Initial Catalog=ADT;Integrated Security=True")

[Code].....

View 1 Replies

Forms :: ComboBox - How To Hide Label

Jan 13, 2012

I am successfully hiding a combobox, based on the selection of another combobox. However, I can not get the label of the combobox to hide as well. The code I am using, which is basically the same code for hiding the combobox itself returns the following error:
Error 1 'DOCUMENT_EVALLabel' is not a member of 'WindowsApplication1.Form1'
Here is the code I am using for the label:
Me.DOCUMENT_EVALLabel.Visible = (EVALUATIONComboBox.Text = "Text")

View 1 Replies

Hide Dropdown Icon Of Combobox?

Jun 17, 2011

I have an application using ComboBox with ComboBox.DropDownStyle = DropDown, I want to hide the dropdown button of it, and dropdownitems will be displayed programmatically, when required.

View 1 Replies

Hide Items Within A Datalist If Values Are NULL?

Jan 3, 2011

For example in my datalist if Eval("OptionJ").Tostring = Null I would like the function GetVisible to set visibility of the radio button to false like so:

<input name="Q<%#Eval("ID")%>" type="radio" value="J" visible="<%# GetVisible(Eval("OptionJ").ToString()) %>">
<%#Server.HtmlEncode(Eval("OptionJ").ToString())%>

[Code]....

View 1 Replies

Manually Disable All The Items?

Mar 13, 2009

when running a process in a backgroundworker, do i need to manually disable all the items in my form to stop the user from any transactions while the backgroundworker is doing something and then enable them after

View 3 Replies

Loop Through DetailsView To Hide Dynamic BulletedList Items?

Feb 2, 2012

I need to be able to hide 2 options that are displayed from my dynamic bulletedlist (which is built inside of a DetailsView). Every time I try writing a loop through the BulletedList, I get an error saying that it is not a collection type, so I thought I could loop through the DetailsView to find the items I want to hide.

I can't change the SQL because this particular bulleted list gets used on 2 different pages, it's just that on one, I only need to show 2 of the 4 items that are associated with the ID.[code]...

View 1 Replies

Combobox - Disable The Contextmenu?

Sep 20, 2010

I have a combobox and I want to disable to contextmenu. I tryed button1.focus() when the right mouse button is pressed on the combo but it doesn't work (it makes the focus and then the menustrip appears), I also put a msgbox but that's not a solution.Maybe something when the form is loaded? or globally disable the right click ability....

View 1 Replies

Disable Multiple Items From DropDownList?

Jun 6, 2011

I would like to disable a specific items from DropDownList. I have below code but it does not working. DropDownList have 5 items.And,I'm getting error:Index was out of range. Must be non-negative and less than the size of the collection.Parameter name: index

Protected Sub CheckBox1_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
Dim X As Integer = 0 <> 1
DropDownList1.Items(X).Enabled = False
End Sub

But, if I add a different value for X, then it disable 1st and 2nd item.

Protected Sub CheckBox1_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
Dim X As Integer = 0 or 1
DropDownList1.Items(X).Enabled = False
End Sub

My goal is if I would have a 365 items in DropwDownList to disable items for example between 120 and 150.

View 1 Replies

How To Enable And Disable Items Of Menu

Feb 6, 2010

In VB 6 I enabled and it incapacitated the items of the menu with the following expression. And in VB.net how to do to substitute this expression in my project?

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved