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
ADVERTISEMENT
Jun 21, 2010
I have figured out how to populate the comboboxes for an app I'm making from a database this is not the actual code but is basically the way I'm populating them for i = 0 to maxrows - 1 cbobox.items.add(dataset.tables("datatablename").Rows(i).Item(x))next i need either to be able to manually assign an index value to each added item or at least figure out how vb.net manually assigns index values to these.
View 1 Replies
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
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
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
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
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
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
Dec 21, 2010
if booking closed column values is equal or more than textbox1 text then the book button in gridview will be disabled for each gridview item whose booking closed time is greater and equal to textbox1 time ..
How to do that ?
M using VS 2008 and vb
View 1 Replies
Jul 22, 2011
is it possible to disable validation of all items inside a panel programatically in vb.net?
i can't seem to figure it out.
i disabled all fields inside a panel, but they still cause the page to validate on submit.
this is what i have now:
Public Sub DisableControls(ByVal parent As Control)
Dim cCon As Control
For Each cCon In parent.Controls
[Code]....
View 1 Replies
Apr 30, 2011
How to disable other controls when an item is selected from a different combo box. When someone selects a specific item from the combo box provided, It should automatically disable other controls specified to be disable.
View 2 Replies
Jun 26, 2010
I am creating a user rights access to a menu. for example an administrtor account can access a sales report while a limited account cannot. What i mean is a customize menu for an administrator and limited user....
ex. administrator
Sales Report--->Daily sales-enable
limited account
Sales Report--->Daily Sales-disable
View 2 Replies
Feb 16, 2012
How do I disable buttons while there are less than 2 items in a listbox? I can't figure out how to do it. I'm a newbie in Visual Basic(programming at all)
View 7 Replies
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
Feb 27, 2010
I have a DB table with the names of my Menus and a User names. After a User is logging succesfully I go through the table with the Menuitem names and enable /disable the menuitems accordingly.
Can anybody kindly show me a workaround on how to do this. For example i have this table below and after succesfully loging in as username "aaaaa". Menustrip items with name accounts and finance should be enabled and the rest like billing will be disable.
Table Name
UserAndMenu
[code]....
View 4 Replies
May 15, 2011
I would like to disable a specific items from DropDownList. I have below code but it does not working. So, need someone to told me what I'm doing wrong. 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 2 Replies
May 3, 2012
As far as I know, there is no way to grey out/disable specific items in the ListBox control? I want to make a list of surveys that need to be answered, but grey out/disable those that the user has already answered.Or is there some way to do it with ListBox?
View 1 Replies
Aug 27, 2009
I can't seem to figure out how to use databindings to enable/disable a button when a listbox contains 0/1+ items?
Button1.DataBindings.Add("Enabled", ListBox1, "Items.Count")
Button1.DataBindings.Add("Enabled", ListBox1.Items, "Count")
Result = ArgumentException: Cannot bind to the property or column Count on the DataSource. Parameter name: dataMember
Button1.DataBindings.Add("Enabled", TextBox1, "Text.Length") ' This works?
View 2 Replies
Feb 15, 2011
each of the ToolStripMenuItems has more than 20 ChildItems and each of these ChildItems have more than 30 ChildItems.In my form I havea login form and each user must log in.I want to know that how can I check my UserAccess Table with these MenuItems and ChildItems names and if the user does not have the MenuItem or ChildItem name in UserAccess Table, the MenuItem or ChildItem must be disabled.
View 16 Replies
Nov 23, 2009
How to enable / disable menu items based on allowed security roles specified for an item.
View 6 Replies
Dec 22, 2011
I am confused what will happen, when I disable a timer. Will it finish the process and then disable or will it immediately disable without completing process? for example
[Code]....
I want to run getMessage from somewhere else, so I need to disable timer during that time to be asured not to override anything and also before timer disable it should complete that function code.
View 3 Replies
Dec 7, 2011
I have a combobox that retrieves data from a database. Occassionally i have to disable some items from the table by setting a value in the table so that item is not available in the dropdown for users. I do this through my SQL query i.e.SELECT * FROM TABLE WHERE ADDITEMTODROPDOWN=1
When i have the DropDownStyle set to normal (dropdown) and the application loads the dropdown shows the item from the database which is no longer available for users to select (the item is set to disabled or this is fine and is what im after. I then change the DropDownStyle to DropDownList to make it look like a button so users cannot enter their own items. As soon as i load the form with the combobox the item that i disabled no longer appears as the original text.
View 1 Replies
May 16, 2009
to disable right click and to disable the start button and task bar?
View 4 Replies
Feb 10, 2012
I'm developing an application and I need to know how I can to import a DLL with code and not with "Add reference" because path will be change when I connect to other computer.The library I need to import is ADOX but Maybe it will be used by me with another dlls .
View 4 Replies
Jun 10, 2011
I am copying sample.csv file's content into the new.csv file. But I need to add additional column in new.csv file which holds the default value as "Yes" for each row that exists in old file. Here is the code I have written.
Dim ioFile As New System.IO.StreamReader("C:sample.csv")
Dim ioLine As String
Dim ioLines As String[code].....
The first four columns ID,Name,Number,Amount are present in sample.csv.I am adding additional column Copied which should be "Yes" for each row.
View 3 Replies
Mar 1, 2011
TaskScheduler on Windows xp, does anyone know a API used to select a certain task to Run? or do I have to go through that darn COM ITASK interface, I think that might have a method?
View 6 Replies
Jun 4, 2011
i want to start my coding immediately about linking the database in vb...but i dnt knew how...hw i can lnk my database...
View 11 Replies
Dec 23, 2009
How do I manually add new rows to a datagrid?
View 1 Replies
Mar 21, 2011
Currently I am working on VB.Net 3.5 Win Forms. I have few queries about datagridview
[Code]...
View 8 Replies
Jun 10, 2009
Historically I used Tek-Tips for stuff like this but I can no longer access my account there and they do not respond to form based mail. Maybe they got tired of the questions too :-)
I am not a student. I manage a 'large' network. Every now and then I need to roll up something for a specific task. Most of the stuff I write only sees my desktop so neatness and originality are not an issue.My current 'project' is throttling back a few of my users disk storage. I am not allowed to implement Quota's (Server 2003 infrastructure) so I thought the next best thing would be a duplicate file report. I purchased Folder Sized 4 which is a beautiful product (I have used it since it's humble beginnings as Bullet Proof Folders). The end users claim that the filename and date checks are not enough to prove a duplicate. Enter my idea.
I have cobbled together a MD5 hash generator from a function found out on the web. Now I want to send the results to a datagridview instead of my current disk files.I has thought that I could access the rows & columns like dgv.row(x).column(x) = "strFile", dgv.row(x).column(y) = "strMD5"Nope, hunting through the available properties did not point me to any likely candidates.
Again, if this is not the place for questions of this nature please let me know. I am not a programmer, nor am I in training to be one. I just toss little things like this together when needed. Importing a CSV file into Excell is working, but it seems rather lame to be taking so many steps.
View 1 Replies