VS 2008 Disabling CTR+C?

Aug 26, 2009

How do I disable CTR+C in a richtextbox?

View 1 Replies


ADVERTISEMENT

VS 2008 Disabling A Program?

Apr 19, 2009

i 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 Replies

VS 2008 Disabling A Checkbox On Listview

May 4, 2009

In 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]....

View 2 Replies

VS 2008 Disabling Ctrl+alt+delete?

Jan 11, 2010

Is it possible to disable ctrl+alt+delete in code? Can anyone post an example?

View 15 Replies

VS 2008 Enabling / Disabling The Controls?

Apr 28, 2009

i 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.

View 11 Replies

VS 2008 Enabling And Disabling Buttons?

Sep 11, 2009

MessageBox.Show("Disabled")
Button1.Enabled = False
Button2.Enabled = True

[code].....

View 5 Replies

VS 2008 Enabling/Disabling A Textbox?

Jan 31, 2010

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 Replies

VS 2008 Propertygrid Enabling / Disabling

Jan 13, 2011

how 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 Replies

VS 2008 Disabling Text Entering In Combo Box?

Dec 14, 2009

How do I stop the user from typing into a combo box and only allow them choose from the options available?

View 2 Replies

VS 2008 - Activating / Disabling Controls Based On Date

Mar 19, 2009

I 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.

View 20 Replies

VS 2008 Disabling Home/End/Next/Prev Keyboard Keys?

Apr 10, 2010

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 Replies

VS 2008 Disabling Safe Mode And System Restore?

Oct 25, 2009

Is it possible to prevent my program from being ran in Safe Mode and System Restored?

View 5 Replies

VS 2008 Disabling Start Menu - Code Not Working?

Oct 10, 2011

So 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.

View 3 Replies

VS 2008 Disabling ATL+F4 - Error1'KeyCode' Is Not A Member Of 'System.EventArgs'

Aug 20, 2009

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

View 8 Replies

VS 2008 : Stopping A User From Entering Text Or Changing Text In A Textbox Without Disabling It?

Apr 26, 2009

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?

View 5 Replies

Disabling The Visual Basic Background Compiler In Visual Studio 2008

Mar 20, 2009

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.

View 1 Replies

Disabling The Windows Key?

Apr 12, 2009

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].....

View 13 Replies

Asp.net - Disabling Button After Click

Nov 5, 2011

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

View 3 Replies

Asp.net - Disabling Viewstate Of Whole Page

Dec 31, 2010

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 Replies

Disabling A Button Without Changing The Look?

Apr 7, 2010

I'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?

View 7 Replies

Disabling A Toolstripmenu Item

Apr 14, 2009

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]...

View 5 Replies

Disabling An Item In The CheckedListBox?

Sep 11, 2010

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.

View 1 Replies

Disabling Button After Click?

Mar 1, 2009

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?

View 19 Replies

Disabling Images In Webbrowser?

May 9, 2009

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 Replies

Disabling Item In Checklistbox?

Sep 13, 2010

Busy with a checklistbox we want to know how to disble an item.

View 4 Replies

Disabling Items In The Combobox?

Mar 5, 2009

I want to disable some items in the Combobox. Is there a way to do that ?

View 1 Replies

Disabling Keys In Application?

Sep 8, 2008

is there a way to disable keys on a keyboard?

like the windows key?

View 9 Replies

Disabling Mouse Without A Timer?

Jul 12, 2011

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 Replies

Disabling The Close Option?

Mar 1, 2010

how 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 Replies

Disabling The Text Boxes?

Apr 28, 2010

The 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]....

View 8 Replies







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