VS 2008 2 Comboboxe's Disable 1 If Other One Is In Use?
Sep 8, 2009I have 2 comboboxes and what I want is if user is using lets say combobox1 then combobox2 becomes unavailable and same the other way around.
View 14 RepliesI have 2 comboboxes and what I want is if user is using lets say combobox1 then combobox2 becomes unavailable and same the other way around.
View 14 RepliesI 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.
to disable right click and to disable the start button and task bar?
View 4 Replieshow i can disable right clicking in vb.net 2008?i have a form with a webbrowser control in it if the user right clicks they can do things like view source and i dont want that so how could i stop them?
View 1 RepliesWhat im trying to do, is have my program run full screen on the primary screen, and diable all other screens. I have it 'full screen' and constantly on top of everything with this
Dim b As Boolean = _
SetWindowPos( _
Me.Handle, _
[code]....
It is in a timer, so its always on top. how do i turn off, or disable all other monitors, besides the primary screen. (How do i check if they have other monitors, and if they do, how many, and disable them all, with exception to the primary screen.)
In my project I have a DataGridView with only one row. See here:
But I have to change something. When the datagridview appears, the first cell is highlighted what I dont want, because, in this case, this is confusing. Is there any possibility to disable this highlight?
When I use anything that connects to the internet I keep on getting "An error has occurred on the scripts in this page". How do I disable those? It happens for some reason when the web browser loads up a page it detects small errors that normal browser wouldn't. IT'S EXTREMELY ANNOYING and I can't publish my web browser until I find out how to disable this.
View 1 RepliesI am working VB.NET 08 Access Database. I have Two "DateTimePicker" controls one is "StartDate" and one is "Enddate". Now I am selecting Startdate like May 1st OK. Now when I select Enddate control this calender shows only Equal or Greater than dates should be Enable. EndDate should be Always Greater than Equal Date. That's why when ever user selects the Enddate Before May 1st dates should be disable..
View 2 RepliesI have a form thats got a lot of buttons and functionality on it. I want some users to be able to view the form, but not have any of the functionality.
[Code]....
I have some code that executes in several keydown procedures.Trouble is, how do I keep these procedures from running?
Private Sub Form1_KeyUp1(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyUp
If e.KeyCode = Keys.D1 Then
PictureBox1.Visible = False
[code]....
When I'm elsewhere in the program (it has different "modes" when operating), I DON'T want lowbit0 true.How do I ignore these subs in code? Also -- from what I've seen, you can only use the key events from within a procedure?Like If KEYX.event = true then do this?
How do I disable the sound in a WebBrowser?
View 1 Replieshow i can Disable button after first click
View 14 RepliesHow can i disable a user from dragging a form , with using form border style (None). I want to use a fixed singl border style.
View 3 RepliesIs it possible to disable editing a combobox. With a textbox you have the option readonly. Is there something like that for the combobox?
View 7 Repliesi would like to write a function that when i click a button, the monitor will go in to standby mode, and then when i press the keyboard, it will wake up, but i do not the mouse wake up my monitor, how can i prevent my mouse wake up my monitor or how can i disable the mouse move?
View 2 RepliesI'm currently using the following code to set a proxy:
Public Structure Struct_PROXY
Public dwAccessType As Integer
Public proxy As IntPtr
[Code]....
I want to disable the shadow underneath the standard tool tip ... is this possible?
I want to do this as i want to owner draw it ... and not have it square (as the shadow is ... even when owner drawing )
Is it possible to disable some scripts in a webbrowser, but not all?
View 2 RepliesI have two forms -form1 and -form2When from the form1 window, i call to open the form2 window, i want the form1 window to lose its focus-not to be accessible.
View 2 Repliesi tried: Me.Button1.disable=trueit doesn't work..
View 4 RepliesWhat VB code do you use to disable active scripting in a web browser? I've been getting web browser errors that been halting my script. When I disable the active scripting in IE8, everything works fine. I'd like to do this using a VB code and not using IE8.
View 9 RepliesVersion: Visual Basics 2008
How do I disable the border when clicking a button?
When the form is opened:
[URL]
When a button is pressed:
[URL]
I have done some reasearch on disabling the mouse and keyboard both on Google and on the forum and what ever i find can not get to work. What I'm trying to do is on a click of a button it will disable the mouse and keyboard. It must work in W
View 4 RepliesIs there a way to disable a user from dragging a form other than setting the form border style to "None" ?
View 8 Replieshow 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 RepliesIs 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
Finishing off my control, but I now found a nasty problem. When the user holds the 'Ctrl' key and scrolls the mouse scrollwheel, the control is scaled. I do not want that, since it would make the Font size fail.
I previously made it reset the scale on Control up, but that is just not a very elegant way:
Me.ZoomFactor = 1 I do not want the text scaled at any time, not even while the user is scrolling and it resets afterwards. I got to overriding the 'ProcessCmdKey' but no idea how to catch a scroll or zoom event.
Any way of disabling the RichTextBox scaling (or zooming) so it does not even occur? I have a control that inherits from the RichTextBox.
How do you disable additional checkbox selections/deselections without sacrificing the functionality of the ListView? I know you can call: ListView.Enabled = False, but that also disables any scrolling within it.
For example: I have a timer that starts a backup based on the Listview items that are checked. After a certain time, I don't want the end-user to be able to click on any of the checkboxes within the listview (so I have a set number of items to backup), but I do want them to be able to scroll the list while the backup is being performed. I tried this[code]...
Can you temporarily disable a radio buttons CheckChanged Sub? I have a set of radio buttons in a groupbox and when the user selects one, I need to check if it's a valid selection. If not, I need to reset it to the previous button that was pressed. Below is an example of my
Private Sub rbGame_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles rbGame.CheckedChanged
t_indextype = m_indextype
m_indextype = "1"
[CODE]..................
In the above example, ResetButtons() changes the checked value of the radiio button selected to false and changes the checked value of the previous radio button to true. The problem is that when radio button rbGame gets changed, it causes the CheckChanged sub above to run again from the top. Is there a way to temporarily disable it from running while I make my changes and then re-enable it?
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