How To Enable Windows Script

Apr 8, 2010

I keep getting a error message that says my windows script host is disabled.

View 5 Replies


ADVERTISEMENT

.net - Disable And Enable Screen Saver In Windows 7?

Jan 18, 2010

I have an application than disables the screen saver temporarily in order to run a slide show. I use this to turn it on or off:

i = SystemParametersInfo(SPI_SETSCREENSAVEACTIVE, active, Nothing, SPIF_SENDWININICHANGE)

This works fine in XP. In Windows 7, it disables the screen saver properly. However, when it is enabled again, at the normal time for the screen saver to come on, the system asks for a password instead of showing the screen saver.From this time on until the screen saver settings are adjusted in the control panel, the password screen is displayed in place of the screen saver.Is there something else I should be doing for Windows 7? I understand that SPI_GETSCREENSAVEACTIVE is not supported in Windows 7, but SPI_SETSCREENSAVEACTIVE is supposed to be.

View 2 Replies

Enable And Start Windows Form Timer?

Jun 16, 2011

In my Windows Form's application, I enable and start a Windows Form's Timer for a state machine which interacts with various User Controls. In one part of the state machine where an external device is being rebooted, I need to disable the User Interface (a User Control's UI) for the time it takes the device to reboot. The problem exists in that once I use System.Threading.Sleep, the timer that fires the State Machine stops and never restarts. I even re-enabled the Timer and re-started it after the Sleep command but to no avail. Is this expected operation or should a Windows Form's Timer be able to restart after a Sleep?

Snippet of code from a step in the state machine below:
Cursor.Current = Cursors.WaitCursor
MainForm.Enabled = False
System.Threading.Thread.Sleep(8000)
MainForm.Enabled = True
Cursor.Current = Cursors.Default
MainForm.t1.Enabled = True
MainForm.t1.Start()

View 4 Replies

Enable The Windows Default  Hot-Track In Listview?

Oct 4, 2011

Im using a listview item in visual basic to display items. How to enable the Windows Default Hot-Track in listview??

View 3 Replies

Enable/Disable Screen Saver In Windows 7

Jan 18, 2010

I have an application than disables the screen saver temporarily in order to run a slide show. I use this to turn it on or off:

i = SystemParametersInfo(SPI_SETSCREENSAVEACTIVE, active, Nothing, SPIF_SENDWININICHANGE) This works fine in XP. In Windows 7, it disables the screen saver properly. However, when it is enabled again, at the normal time for the screen saver to come on, the system asks for a password instead of showing the screen saver.

Is there something else I should be doing for Windows 7? I understand that SPI_GETSCREENSAVEACTIVE is not supported in Windows 7, but SPI_SETSCREENSAVEACTIVE is supposed to be.

View 3 Replies

Windows - Enable Control Of Another Application With User32

Sep 5, 2009

I was wondering if there was a function in user32 that could enable a hwnd control if it is disabled (grayed out) If I know the handle then can I do this? Also, if it is a menuitem, can it be done too?

View 1 Replies

C# - Windows Media Player - Enable Play Button Without OpenFileDialog?

Oct 23, 2009

this is probably pretty simple, but I've noticed that when trying to start the Windows Media Player (AxWMPLib), it takes the "player.url = path", and only then does the player's Play-button get activated. Thing is, I want to play sound files taken from the URL of a column in a database. And when clicking on that row, the mediaplayer should update, making it's play-button clickable.

View 1 Replies

Allow The User To Enable Or Disable A Textbox By Clicking Either A Button (enable) Or The Reverse?

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

Enable IE Add-ons For Webbrowser

Mar 11, 2011

I was wondering if it is possible to allow the add-ons that were developed for IE to work with webbrowser control.

I am working on a browser that uses the webbrowser control. I need to add certain features like ad-block to it. I noticed that these features are available as add-ons already for IE. Since webbrowser control is IE-based, I was wondering if it was possible to enable the webbrowser control to access these add-ons?

View 5 Replies

Enable Or Disable LAN?

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

Enable Registry In An App?

Mar 30, 2009

I have been working on my application for quite a long time, and now that I get to the closing stages I have hit a wall that I cannot quite get over (or work out how to get over ). My problem is that my application needs to be able to; edit registry keys, create them, and eventually delete them. Thats fine I have the code for it. The problem occurs because my app does not have the required security settings. I have been looking at this and came up with an idea

In the my project tab there is a tab called settings and I have enabled custom security with everything ticked but the problem is, is that my application still does not have the required permissions to edit the registry . So my question is... How Can you enable a program to edit the registry?

View 7 Replies

Enable/disable Nic In XP?

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

How To Enable Ctrl + S

Mar 12, 2010

I am creating a notepad-like application and I want to enable when the user press Ctrl + S that it will save.I already have the code to make it save through a menu option, but I don't understand how to enable it via Ctrl + S. Can someone guide me in the right direction

View 3 Replies

How To Enable Tab Key In A Richtextbox

Jul 23, 2011

I am crating a text editor, I have a richtextbox named RTB. I want to enable the tab key inside the my RTB. Like in the MS word, when I presses the tab key, the cursor move to five spaces.the problem withe that is that when i presses tab tab key in my program, the focus is going to other controls

View 2 Replies

How To Enable The Grid

Nov 11, 2010

Is it possible to enable the design grid in vb.net?

View 3 Replies

How To Enable TLS On FTP Upload

Jan 11, 2011

I've created a software where i can upload screenshots instantly from my screen and up to my FTP Server. After a server-maintenance, the FTPserver now require you to have TLS enabled. Is this possible in vb.net? If then, how?

View 1 Replies

VS 2005 Enable DEP?

Nov 6, 2009

I'm attempting to enable DEP on Windows Server 2003 systems remotely using WMI.

View 1 Replies

Way To Enable Cookies

Sep 26, 2011

[code]...

and When i check thorugh fiddler i got this error

"Your cookies seem to be disabled. Setting preferences will not work until you enable cookies in your browser."

View 2 Replies

Add Refrence That Enable To Program Using MD5

Oct 23, 2009

how can i add the refrence that enable me to programe using MD5 so i can secure my data if any one has sample code or to show me how to use please let me know

View 7 Replies

Automatically Disable And Enable The Usb?

Aug 18, 2009

i have to make a program that could automatically disable and enable the usb..

View 2 Replies

Button Disable And Enable?

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

Can't Enable Net.tcp Port Sharing

Jul 13, 2011

I'm doing my dev work on a Window 7 x64 machine, deploying to a Windows 2008 x32 server. At the moment I'm adding WCF services to some internal apps so that we can build smaller clients using net.tcp bindings that report to the user what the server is doing without running multiple instances of the server. To cut back on how much administration the apps will require, I tried enabling port sharing on my first server app. I'm using the app to self-host the WCF service so they can be easily moved from one server to another if necessary. Here's the code starting the server:

Dim _service_host As ServiceHost
Dim active_server_address As Uri = New UriBuilder("net.tcp", "localhost", CInt(My.Settings.ServerPort)).Uri

[Code].....

I get the following error when I put a breakpoint at the last line: Unable to automatically step into the server. Connecting to the server machine 'nettcpportsharing' failed. The requested name is valid, but no data of the requested type was found. The Try...Catch block housing that code says the exception type is AddressAlreadyInUseException...but when I run netstat I don't see anything else listening on that address. There's no occurrence of 'nettcpportsharing' anywhere in my solution. I've checked to make sure that the Net.Tcp Port Sharing service is started.

View 1 Replies

Disable / Enable USB Port?

Mar 14, 2011

how to enable or disable USB port of a system with windows-07 or XP

View 3 Replies

Disable And Enable Button?

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

Enable (permanent) DEP In Program?

Sep 27, 2011

I would like to enable (permanent) DEP in my program, does anyone know which line(s) of code I need to insert ?

View 8 Replies

Enable A Button After Clicking Another?

Feb 17, 2010

As the title says how can i enable a button after clicking another?

View 2 Replies

Enable A Button On Another Form?

Nov 4, 2010

I have 4 forms. I have a button on form2 that when pressed, I want it to enable a button on form1.What I've tried is this:

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Form1.Button3.Enabled
End Sub

but its telling me that the property access must assign to the property or use it's value.

View 1 Replies

Enable Effects On SecondaryBuffer?

May 11, 2012

According to this article, to clone a secondaryBuffer you need to disable the EffectCaps.

"Initially, the duplicate buffer will have the same parameters as the original buffer. However, the application can change the parameters of each buffer independently, and each can be played or stopped without affecting the other."

How can i re-enable the EffectCaps on the cloned SecondaryBuffer?

View 7 Replies

Enable Flash In Web Browser

Mar 17, 2010

I've seen that flash works right away on the webbrowser option... BUT, how do I enable it on the tabcontrol option?

View 18 Replies

Enable On BindingNavigator The AddNewItem?

Dec 3, 2011

I'm trying to bind the BindingNavigator to a BindingSource. It works very good, but the problem is the yellow plus icon is disabled. How can I make it enabled?

I created manually with code the dataset, tableadapters and the bindingsource, but when I bind it on the bindingnavigator it shows the records but it doesn't enable "Delete" and "Add Item".

Code from comment:

Dim connstr As String = "Data Source=" + Application.StartupPath + "Prueba.sdf"
Dim conn As New SqlCeConnection(connstr)
Dim cmd As New SqlCeCommand("SELECT * FROM datos", conn)

[Code]....

View 1 Replies







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