VS 2008 Disabling CTR+C?
Aug 26, 2009How do I disable CTR+C in a richtextbox?
View 1 RepliesHow do I disable CTR+C in a richtextbox?
View 1 Repliesi did a program on VB 2008 Express Edition but id like to add a feature.Id like that my program could be only accessed if you had an internet conection and if i allowed it. Id like to disable my program whenever I like for the ones who have it cant use it if i dont enable it
View 20 RepliesIn my code i check listview1 values, whether they contain a "Yes" or a "No" if they contain a"No" i was trying to disable the checkbox on listview2 that corresponds to that value so far i have:
If formMain.ListView1.Items(Index).SubItems(2).Text = "No" Then
'// We need to disable all the checkboxes on listview2 that contain "No"
'// And also color code the background
[Code]....
Is it possible to disable ctrl+alt+delete in code? Can anyone post an example?
View 15 Repliesi have this function to enable disable the controls on a form....
Private Sub EnableDisableAll(ByVal xType As Boolean)
Dim ctl As Control
For Each ctl In Me.Controls
If TypeOf ctl Is TextBox Then
ctl.Enabled = xType
[Code]...
everything fine ...but when the controls r disabled it shows in the dull color. can i change the color ? as u can see i have given the command to change the forcolor to red to textbox but it still shows in dull greay... i dont want it to be enabled as i am using this to just give a view of records....the back color is changing to white but not the forecolor.....is there any thing more to be done...or any better way so as the items remain enabled but i dont allow the changes to be done.
MessageBox.Show("Disabled")
Button1.Enabled = False
Button2.Enabled = True
[code].....
I'm trying to make a program where when textbox1 doesn't have a value, textbox2 is disabled but when a value is entered to textbox1, textbox2 will be enabled.
View 13 Replieshow can i selectively disable propertygrid items, or even categories based on the value of another property? i read somewhere about a typedescriptor but i couldn't find a good example.
View 6 RepliesHow do I stop the user from typing into a combo box and only allow them choose from the options available?
View 2 RepliesI have this form with a bunch of input controls. I have code working that will disable them all like I want, but need to work with the if/then statement portion. Basically, it's a "History" form for patients. There's a date field for each entry, and if that date doesn't match the date you're accessing the form I want it to disable all controls so you can't edit the form. So it would have to check the current date with the date that is on the form. Then I also want to have an override button that will ask you if you want to enable all controls anyway, which I can probably figure out. There is some older VB6 code (I think) but I know nothing about VB6 or how it translates.
I think this is the portion that does what I want in VB6:
Private Sub DATE_DblClick(Cancel As Integer)
Call Setdate
Exit Sub
Dim sysDate As Date, Response
sysDate = VBA.Date
[Code] .....
How to have the program check the current date with the date in this form. From there it's probably just a simple if/then statement to fire off either sub. This date control on the form is a DateTimePicker. Maybe I just have to compare that to the system date but I still don't know what to call for that.
how can i disable the Home, End, and the arrow keys Next and Previous?All i need is having all those four keyboard keys disable while my application is running so the app do nothing if one of those is pressed.
View 4 RepliesIs it possible to prevent my program from being ran in Safe Mode and System Restored?
View 5 RepliesSo I need to disable to start menu and have found a code on a website but it doesn't seem to work. Heres the
Dim TFlag As Boolean
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (byval hWnd1 as Long, byval hWnd2 as Long, byval lpsz1 asstring, byval lpsz2 asstring as Long
Private Declare Function EnableWindow Lib "user32" (ByVal hwnd As Long, ByVal fEnable As Long) As Long
[code]....
Edit: I'm creating a program for places like schools or library where the password for all users are the same. I already made the program go to full screen and always on top and have disabled the user from using taskbar but I can't stop the start menu from appearing.
A program cant be exited thu Alt+F4
[Code]...
Edit2: I want it to be in the form so that the form cant be closed unless they press button with Close() command or task manager ends the process
A] Is there any way of stopping a user from entering text or changing text in a textbox without disabling it or
B] Is there a way of changing the texboxes back and fore color whilst it is disabled?
How do I disable the background compiler for Visual Basic in Visual Studio 2008?
For my sins, I have to work on a large VB.NET project and it often locks up for 20 seconds at a time whilst doing the very helpful background compilation
I'd rather work blind between compiles and be able to do some work.
I'm having a problem when i try to disable the windows key in my (VB.Net 2008) App. I tried to use
If e.KeyData = Keys.LWin Then
MsgBox("Incorrect key pressed", MsgBoxStyle.Exclamation)
e.Handled = True
[code].....
Private Function StoreCouponCode() As String
Dim con As New SqlConnection(ConfigurationManager.ConnectionStrings("DBConnectionString").ConnectionString)
[Code]....
When the user clicks on the CmdGetCoupon it takes some time to redirect..so the user clicks on the CmdGetCoupon more than once,which results in multiple coupon generation from a single user account.
I want to display a message "Please Wait While Your Coupon Is Being Generated" and disable the CmdGetCoupon so that the user cannot click multiple times
Is it possible to make the viewstate false of whole page including all controls at a time.I mean I don't want to set enableviewstate="false" for all controls..In the page directive of the aspx page I have made enableviewstate="false" but still viewstate of all the controls of the is enabled.. And what the EnableViewState="False"actually works within Page directive.
View 3 RepliesI've used (buttonName).enabled = false to disable buttons when the user clicks on them but I don't like how the button becomes faded.
Is it possible to disable a button without changing the look of the button?
I have got my login form set up for my inventory system. User(admin) with access level 1 will be directed to form 1 and user(normal user) with access level 2 will be directed to form2.
[Code]...
Working the first time with a CheckedListBox.
Question: is it possible to disable an item of the box so you can't change the value of the checkbox.
Take the following fundamental code:
Private Sub btnStop_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnStop.Click
btnStop.Enabled = False
'Lengthy code procedure
btnStop.Enabled = True
End Sub
I've just notice that when I click on a button, and try to disable it in order to avoid the user clicking on it several times during process (or disable the entire form for that matter), the application somehow records the subsequent clicks and processes them after the button has been re-enabled. But that's not the behavior that I want at all. I just want to disable any user interaction with the button (or the form perhaps) until processing of the Button_Click event is completed. How can I do this?
I am attempting to make a web browser But I want it so it will not download any images And just show text and forms to save time on loading. I have found some things on how to do this but its all in C#
View 3 RepliesBusy with a checklistbox we want to know how to disble an item.
View 4 RepliesI want to disable some items in the Combobox. Is there a way to do that ?
View 1 Repliesis there a way to disable keys on a keyboard?
like the windows key?
I want to add something to my project and i want to disable mouse but without a timer. I want to enable it back again with press to keyboard. Is there code to do it so?
View 6 Replieshow u can disable the X(close) option on a form in VB?? i dont want the user to be able to close the form that will be running and need to disable the X to be able to do this.
View 5 RepliesThe instructions I'm following indicate that when user clicks the Add This Item menu item for a new order, the customer information should be disabled so that the state cannot be changed until the next customer.I've tried to validate that all the customer information fields are filled when user clicks Add This Item menu item. The trouble I was having was that even when you were alerted that you didn't fill one of the fields, you clicked on the message alert and then the customer fields were disabled before you could fill the empty one.
I've tried to make an if statement which checks if some are empty to alert else if they are filled then disable. This doesn't work either. I get Conversion from string "" to type 'Boolean' is not valid. I'm not advanced enough to understand this. I just know boolean means true or false or yes or no. I'm not sure the best way to handle this situation. I don't even know if locking the user out is wise since they might have wanted to correct something wrongly entered but my instructions are to validate that the fields are filled and then disable the customer information. I need to follow the instructions exactly.
This is what it looks like:
Private Sub AddThisItemToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AddThisItemToolStripMenuItem.Click
'Declare local level variables.
Dim Quantity_Decimal As Decimal
[code]....