VS 2008 Enable/Disable A Control With TabIndex?
Jan 31, 2010
Is there a way to set the enabled property of a combo box using the tab index?
In my program I have two combo boxes next to eachother. When a certain option is selected in the first combo box, I want the second to enable itself. Obviously this is easy to do by using combobox2.enabled = true but I have 10 rows of boxes that need to do this and I want to put all the functionality into one sub. It's possible to read the tabindex into a variable by using VAR = sender.tabindex and then add 10 to that variable (The box that needs to be enabled will always have a tab index of sender + 10) but I can't figure out how I'd use the tab index to enable it. If only I could just type sender.tabindex(+10).enabled = true
View 3 Replies
ADVERTISEMENT
Apr 21, 2009
I have a usercontrol that contains a datagridview and a toolstrip. When creating a windows form that contains 2 of the mentioned usercontrol i gate for example c1 and c2 where both contains for sure the datagridview and the toolstrip hving the same control name for example G and t. in my case i want to apply the security on each form, i do this by reading the access of each control inside the windows form and if the control on the form was a user control then i dont consider it as one entity instead but as a grid alone and a toolstrip alone in order to be able to apply its security accordingly. but in ma case, if i want to disable the first grid and enable the 2nd i wont be able to do so since both grids have the same name. is there any solution for the above.
View 2 Replies
Aug 16, 2010
I am wanting to enable scrolling via Page Up/down keys, arrow keys etc as well as using a multi-touch touch screen (just need to drag your finger any where on the web browser control), but I do not want to be able to see the scrollbars. All of this works when:
WebBrowser1.ScrollBarsEnabled = (True)
But if I set to false it disables not just the scroll bars but also scrolling. Does anyone know a work around to this?
View 1 Replies
Jun 19, 2009
I want to allow the user to enable or disable a textbox by clicking either a button (enable) or the reverse. (disable) if the user clicks the enable button the textbox should receive the focus.
View 4 Replies
Mar 28, 2010
how to enable /disable the timer with a button and how enable /disable the timer with a checkbox? and the opposite how to enable /disable a button with a timer and how to enable /disable a checkbox with a timer
View 5 Replies
Feb 4, 2010
I am building a basic web browser that I would like to not have any scroll bars (I can do this by setting the "ScrollBarsEnabled" button to False) but also still be able to have the scroll fulction via keyboard shortcuts.
IE when you press page up and down the page scrolls, but when they are disabled you can no longer use the page up and down keys to scroll.
Is there any "scroll function" in the browser like WebBrowser1.scrolldown etc that I could use? that I can have key strokes trigger?
A bit of an over view, the web browser is hosted in other software that has customizable buttons, these buttons can be set to send key strokes to the hosted app in this case my web browser.
Example of what I do for my home button
Private Sub browser_homebutton(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PreviewKeyDownEventArgs) Handles browser.PreviewKeyDown
If e.KeyCode = Keys.H And e.Modifiers = Keys.Control Then
[Code]....
Is there something similar I can do for scroll up and scroll down?
View 1 Replies
Feb 6, 2010
one button on/off disable, enable any button like Handles Button1.Click i want to disable or enable part of the program?
View 8 Replies
Jul 9, 2009
Lets say i have 2 button, button1 and button2 , and and tabindex of 1 and 2 respectively . So my problem is , how can i access to particular button and set the button.enable = false by using tabindex?
For example , i have an integer of 2 , then it matches the integer with the tabindex , then it will disable the button2 .
View 1 Replies
May 16, 2010
The script is used to enable or disable LAN. I would like to run it from a VB application by integrating it.
View 2 Replies
Apr 29, 2010
I am writing a small network configuration utility that allows the user to setup proxies and configure their Nic for static/Dhcp etc.My problem is this: I need to force the card to refresh its TCP/IP settings from the system. In Vista and above the Win32_NetworkAdapter enable/disable methods achieve what i want nicely but XP and all win5 systems do not support this.
View 4 Replies
Oct 30, 2011
I have a RichText control on my form. In the control when running, the tab key does not do anything. I would like to enable it and set the size of the tab. How can I do this?
View 1 Replies
Aug 18, 2009
i have to make a program that could automatically disable and enable the usb..
View 2 Replies
Jan 23, 2012
I have a vb.net based windows application, where when "GO" button is clicked a bunch of data is loaded into DB. So in my application as soon as "GO" button is clicked I want to just disable it and would like to enable it back when the uploading has completed.Now in my specific method for btnGo_Click() I have:
btnGo.Enabled = False
as first line and
btnGo.Enabled = True
[code]....
View 4 Replies
Mar 14, 2011
how to enable or disable USB port of a system with windows-07 or XP
View 3 Replies
Jun 6, 2011
How can i disable a button after i click it and shows another form, and enable it after i close the form that was opened.
View 3 Replies
Jul 23, 2009
How to enable or disable the tabpages in the vb.net
View 1 Replies
Nov 23, 2010
How to enable / disable any record in gridview ?
[Code]...
when i click on enable then record will be displayed in gridview and the enable button will convert into text disable... and when i click on disable then the record will be disable in gridview and enable button will appear ... I want to use vb.net, asp.net (vb) to do that ...
View 1 Replies
Aug 2, 2010
We need to use VB.NET or command line to enable Network Adapters.OS: Windows XP Pro SP3User: Limited User Account which has been added to Network Configuration Operators, has the privilege to Disable / Enable when we right click on the Network AdapterRight Clicking on one of the Network Adapters has the Enable / Disable function that we want to use from VB.NET Code or Comand Line Function and works exactly as required.
View 1 Replies
Jun 28, 2009
Im new here and i want learn more about visualbasic8..so my friend and me working on RAT ( most of work he coded ) so i want only to know a source codes to disable/enable task manager so im asking can someone post it here & thank you !
View 4 Replies
Jun 1, 2009
I populate a DataGridView during a sub routine. Later in my code I have a RowEnter event for that DataGridView when the user is assessing it after it has been populated during the main procedure. However this RowEnter event gets fired while the DGV is being populate. I only want it to file AFTER its populated. Is it possible to disable this specific event while the DGV is being populated? I really want the user to have the ability to cursor up/down the DGV and see affects of the RowEnter Event. I know I can also use the CellEnter event but it does not have the same effect.
View 4 Replies
Mar 31, 2010
How can I disabel and enabel a specific adapter?(restart a specific adapter by vb code)
View 2 Replies
Jul 10, 2009
How can I Disable/Enable Services in VB2008?
View 1 Replies
Oct 29, 2010
I have a toolStrip with several buttons. Each button opens a new form.
With some forms I disable just its button, but with others I disable three buttons.
After I close any form, I re-enable the button.
As it isn't always the same amount of buttons, I'd like to do a routine to re-enable the buttons after I close any form. I've tried with:
[Code]...
View 12 Replies
Oct 2, 2009
I need to enable /disable Nic I have a system with two nic cards "Local Area Connection" and Local Area Connection 2" my code will enable and disable the second nic no problem but when I try to disable /Enable "Local Area Connection" it sees the nic but disables "Local Area Connection 2" code to the Enable NIC.[code]...
View 5 Replies
Jul 22, 2009
i want to make a button who have two function like xyz.visible=true if i press this button again then Visible function make false and it autometicly renamed enable or disable
View 4 Replies
Aug 9, 2011
I want to write a small program to just enable/disable two network adapters. I searched over google and I found a few C# codes but didn't understand anything. I heard something called WMI. It seems they are other ways like enabling registry (which sounds wierd for me) or using command lines.
I really don't know which way should be used althought I didn't find any code to those either. something that works in win xp & vista & seven.
Because user want two switch between two NIC by enable one and disabling another one, I think I should first get a list of network adapters, then let user specify. I know It can be done easily by going to the network settings directly and do it by right clicking. But they want to do it through a program with single click.
Edit: I was able to get a list of adapters using WMI, Here is the page If someone wanted to take a look.
View 1 Replies
Mar 6, 2009
how can i enable/disable screen saver by vb.net?i have found only samples to do this with vb6 with a api but in vb.net there is some way to call the same api?
View 1 Replies
Aug 18, 2009
How do I go about enabling or disabling a system device as its done in Device Manager?On the right click / Properties menu there is the option " Device Usage "
View 3 Replies
Feb 1, 2012
I'am using vb 2005.me a hint how can i disable/enable my mouse click at runtime
View 14 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