VS 2010 Disabling All, Though Leaving A Few Enabled?

Aug 17, 2011

The simple line:

Enabled = False

Leaves the user no options to do anything with the program.What I want is to disable everything using the given line (or if anything else), but leave a Menustrip enabled.

View 3 Replies


ADVERTISEMENT

Disable The Local Area Connection While Leaving The Wireless Connection Enabled

Jun 21, 2010

I am attempting to write a program that will disable the Local Area Connection while leaving the Wireless connection enabled. My company is using net-books in our stores to demo air-cards and we need to keep them off of the LAN. I'm new to VB and VB.net, and it's been a while since I did any type of programming. I've gathered some code that others have posted in forums and tutorials and I'm working through a tutorial book, but I finally believe that I am stuck.

[Code]...

View 4 Replies

VS 2010 Run Code When Leaving Text Box

Sep 12, 2011

I'm trying to update an old code that I don't have the source code for. In this code, the user enters an integer in a textbox as part of a form. Once they move to the next textbox a new form opens to input the number of files that the user chose (in the textbox).I have created all of the forms, but I can't figure out how to get the code to open the new form once the integer has been entered in the textbox and the cursor has moved to the next textbox. I would prefer this to happen automatically and not involve a button.

View 13 Replies

VS 2010 Parsing Html Leaving Only Flash Movie?

Jun 14, 2010

i am having trouble getting this to parse and remove the html and only leave the flash applet here is my code so far:

WebBrowser1.Document.Body.InnerHtml = WebBrowser1.Document.All.Item("object").OuterHtml

View 1 Replies

VS 2010 Disabling A Keyboard Key

Jun 3, 2012

I'm wondering if anyone knows how to disable a keyboard key. This is because I am working on a space invaders game. In the game I have ammo. So after the ammo = 0 I want to make sure that the player cannot continue to keep shooting (using the keyboard) even though there is no ammo left.

View 1 Replies

VS 2010 Creating Directories While UAC Is Enabled

Jun 6, 2011

I'm creating a program that creates new directories and subdirectories in the "C:Program Files" folder, and the operation fails if the user has the User Account Controls enabled in both Windows Vista and Windows 7. Is there a way I can give my application permission to automatically create these directories without requiring the user to turn off the User Account Controls?

View 2 Replies

VS 2010 Enabled Button On Web Form?

Oct 31, 2011

I try to send a email by a website but the send button become enabled only when I press a keyword on my keyboard, the app insert the text in the form but the button remains disabled.

I think I need activate the textbox in the website also send a key for activate the button but I don't know how do this.

For example when the app insert the text into the subject box and into the message box the button remains disable. But if I enter a letter by my keyboard button becomes enabled.

I am using this code for insert text:
For Each Unit As HtmlElement In main.wbrowser.Document.All
If Unit.GetAttribute("title") = "Subject" Then

[Code].....

View 4 Replies

VB 2010 - Disabling Taskbar, Start Menu And Alt+F4

Oct 3, 2011

I'm making a security program that locks the users screen. I have already figured out how to disable task manager but now I need to disable the task bar from showing and the start menu. Also, trying to do an event on alt+F4 doesn't seem to stop the program from exiting. Any other solutions? This program is intended for security reasons and I am not using it for any viruses.

View 6 Replies

VS 2010 Disabling Exit ( X ) Button In A Form?

Jan 26, 2012

In the project I am doing at the moment I want to disable the Exit ( X ) buttons in the top right corner of all my forms. So I found out this code which I�m using and is working fine:

Protected Overrides ReadOnly Property CreateParams() As CreateParams
Get
Dim cp As CreateParams = MyBase.CreateParams

[Code]....

View 13 Replies

VS 2010 Disabling Line Items In A Combobox?

May 24, 2012

I am disabling line items in a combobox I have based on various test conditions (see code below). The problem is that when I first open the combobox my method below isn't getting called. It only gets called when the mouse hovers over each line item.

This is resulting in the list looking very different before/after a hover (see png file for a before/after picture).

how to show the list disabled on open?

Private Sub ComboBox31_DrawItem(ByVal sender As Object, ByVal e As System.Windows.Forms.DrawItemEventArgs) Handles ComboBox31.DrawItem
Try

[Code]......

View 1 Replies

VS 2010 Disabling Specific Kinds Of Warnings?

Apr 21, 2010

I have a freshly initialized array that's being passed to a sub routine ByRef to be populated. The array is always empty when passed to the sub routine, which ReDims it as necessary.However, VS complains about this in a Warning:

Quote:

Warning1Variable 'MyArr' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.

Dim MyArr() As Integer
Dim AnotherArr() As String
Call MySub(MyArr, AnotherArr)

The MySub routine populates both arrays. This Warning is meaningless because I very specifically want to pass the arrays to the sub routine BEFORE assigning values because those values will be assigned by the sub routine.Can I disable this type of Warning? No null reference exception will occur because that is being handled by the sub routine.

View 2 Replies

VS 2010 Disabling The Button Until A CheckBox Is Checked

Aug 18, 2011

I have 2 DatagridViewChecKboxColumn. What I want to happen is that a(Submit)button will be disabled until the checkbox2 will be checked. How will I do this if my checkboxes are DataGridViewCheckboxColumn? What loop will I do,because there's a possibility that I'll be checking the last checkbox?

I found this, but it's not working.

If (DataGridView1.Columns(e.ColumnIndex).Name = "Child") = True Then
btnConso.Enabled = True
ElseIf (DataGridView1.Columns(e.ColumnIndex).Name = "Child") = False Then

[Code]....

View 6 Replies

VS 2010 Button To Be Enabled Only If The User Has Selected An Item From The ListBox?

Nov 11, 2011

I have a ListBox and a button. I want the button to be enabled only if the user has selected an item from the ListBox... How do I do this?

View 9 Replies

VS 2010 Anyway To Make Button That Makes All Enabled Timers Turn Off

May 24, 2010

i was just wondering is there was anyway to make a button that makes all enabled timers turn off. Because at the moment i am going to end up with loads of lines basically repeating this.. [code]

View 4 Replies

Hypothetical Controls - Options Checked As Enabled In FrmConfig Effects - Controls (like Buttons/menu Options) Are Enabled In FrmMain

Nov 26, 2010

As i'm learning more and more about developing ive just got my head around creating classes and modules, i started wondering about something to do with configuration of applications where deployment is in a more diverse environment say in a company where different branches dont need access to all parts of a program, so i thought id throw the question out there in a basic sense and get some feedback. so i can go off and do some more reading and learning.

So the scenario in my head is like this.

So we have for arguments sake FrmConfig which is the master configuration form, then we have FrmMain which is the root menu our application general user interfaces with. So here based on what options are checked as enabled in FrmConfig effects what controls (like buttons/menu options) are enabled in FrmMain.

View 2 Replies

C# - ASP.NET - Get A Root Leaving Routing?

Dec 1, 2011

I have already managed to get friendly urls working with my cms; however, what i want to know is: with asp.net 4.0 routes options, how do i get a root leaving routing? When user types in www.mysite.com/page_name, which is aboutus, it goes to the page cms.aspx but leaves the other routes intact:

[code]...

View 1 Replies

Code When Leaving A TextBox?

Oct 6, 2010

When a user leaves a TextBox on the form I execute a format and save to a variable. This is saved to a database by clicking on a ToolStrip button.

The problem occurs if the user moves the mouse directly from the TextBox to the Button. Neither the Leave event or the Lost Focus event is triggered, the variable is not created and, of course not saved.

If I put the code in the Save Button and the User moves to another control, the formatting(data type Double to currency format in the TextBox) that I want to show is not executed.

View 13 Replies

ConfirmationBox While Leaving Form

May 9, 2012

My
vb.net
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Closing

[Code].....

How to stop form closing?

View 9 Replies

Leaving A For Loop When A Condition Is Met?

Jul 20, 2011

So I have a few variables in an array a I want to compare another variable to each of them, if it is the same do something, AND STOP THE FOR LOOP. else carry on the for loop. So...

for i = 0 to 4
if variable = a(i) then
do some stuff

[code]....

how do i end the for loop from within an if statement that is in the for loop

View 2 Replies

.net - Leaving Time Delay - Freezing The UI

Apr 9, 2011

this is urgent. i have a form in which i need to give timedelay of 3 seconds before each line executes. But when i try system.threading.thread.sleep its freezing the UI and furthermore all delays are executing as one single delay. that is

[Code]...

View 5 Replies

INSERT Statement Leaving Out One Piece

Aug 24, 2011

I have a modal pop up that is supposed to upload documents. It does that just fine, except that it doesn't give them a title, therefore nothing shows up on my page since Title is how they show up in the list. What should I replace LinkTitle.Text with to get this to work?I am trying to fix this guys code because none of it worked right. I added a comment below that has new code in it that is parameterized. This is in ASP.net 4.0 VB using Microsoft SQL Server.[code]

View 1 Replies

Valid Methods For Leaving Form?

Jan 7, 2009

I find that if I do me.close and then reopen the form with showDialog later, things are as they were before I closed it. If I use me.dispose and then later open the form again, its as if it was never opened before. Are these two both valid methods for leaving a form?

View 6 Replies

.net - ADOX Leaving File Handles Open?

Apr 27, 2011

I am experiencing a strange issue with a VB6 -> VB.Net conversion. There is a function that uses ADOX to look through the tables in a given database, and reset the seed values of any columns in said tables with the auto increment property set to true.I tracked the issue down to a call of "col.Properties("Autoincrement").Value". If this line of code is commented out, then the file handle properly terminates when I close both the ADO and the ADOX connections at the end of the function. If I leave that line in, the handle stays open despite the closing calls and forcing garbage collection.Here's how I am closing the objects:

System.Runtime.InteropServices.Marshal.ReleaseComObject(adoConn)
Dim connection As ADODB.Connection = cat.ActiveConnection
If Not connection Is Nothing Then

[code]....

View 1 Replies

Find Where This Code Might Be Leaving Old Connections Open

Jan 11, 2010

I'm trying to find where this code might be leaving old connections open, and I found this code that might be the cullprit. It is in a function. I'm wondering if this connection would close, if an exception occured from within the USING statement?

[Code]...

View 3 Replies

Game Programming :: Keep Picture Box From Leaving The Form?

Feb 9, 2011

How do I keep my picture box from leaving the form screen and how do I make it 'bounce off the walls" when it hits one edge of the form?

View 4 Replies

Moving Shape Leaving A Trail Of Copies Of Itself?

Mar 7, 2012

Using a timer, am making a rectangle platform move from left to right. The problem is that it leaves a trail of itself and I believe this is down to refreshing or something. here is the timer code if your interested:

If shaperet = False Then
Timer2.Start()
platform.Left -= 4

[Code]......

View 17 Replies

Process .Text Data Before Leaving Control?

Mar 16, 2009

I'm looking for a way to process the text entered into a textbox, before the the focus is lost from the control. Or a way to pass a reference to the control to a function/sub when the control has lost focus. In Access I would be able to use the AfterUpdate event. I have tried the following events, but have not figured out how to get what I want from either of these events:

- TextChanged (tried to capture the Tab key, didn't work)

- Validating (when fired for Text1, the ActiveControl name is Text2 which is the next TextBox control)

View 4 Replies

Remove If/endif Leaving Contents Intact

Mar 7, 2012

I have a situation like this:

if <some test> then
do lots of stuff
endif

I'm refactoring the code getting ready for some major work. I want to remove the if/endif pair but leave the contents (do lots of stuff) intact and in place.

In Visual Studio 2008, what is the easiest way to do that without making a mess

View 4 Replies

Get An Event When A DGVCB Selection Is Made (without Leaving The Cell)?

Feb 26, 2010

I have a DGV with a CB column in VS2008. I would like an event when a DGVCB selection is made (without leaving the cell). It will probably have to be a DGV cell or row event but I can't find one that fires as soon as a DGVCB selection is made.

View 3 Replies

Program Hangs After Leaving Screen Saver Or Locking Computer?

Nov 15, 2011

Our program works fine, until someone locks the computer or the screen-saver pops up (but not ctrl+alt+delete). Once the computer is unlocked/the screen saver is closed, the application stops drawing everything except the title bar, and stops responding to input - it displays a mostly-white window which can't be moved or closed.(Example of application freezing - the mountains are from my desktop background)If we let it sit for about 5~10 minutes, it comes back to life, and doesn't hang again (even after locking the computer/screen saver popup) until the application is restarted.

View 9 Replies







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