Code To Lock Workstation?

Feb 23, 2012

I'm working on a small program to activate winlogon,and to automatically log out of my account, but I'm unsure how to implement this in code.

View 2 Replies


ADVERTISEMENT

Dll For .Net To Com Works On Dev Workstation But Not On Remote Workstation?

Jan 20, 2012

I created a simple dll in VB2008 on my development workstation (uses a GUID and Implements an Interface,It is a basic "Hello World" & someInputValue. I reference this dll in a MS Access code module and works fine on dev machine. I run Debug.Print testDll.HelloWorld("xyz") and I get I then copy the mdb and dll, tlb files to the remote workstation (where I am also running all versions of the .Net framework) and try this on the remote workstation -- Everything compiles fine within the Access code module on the remote workstation, but I get an error message that the ActiveX control cannot be created when I try to run the procedure. I tried to register the dll regsvr32.exe "C:myDirmyTestDll.dll"and get the message that the dll is loaded but the DllRegisterServer entry point was not found. This file cannot be registered. I know that I have tested other custom dlls on this remote workstation before, and everything worked fine.

View 4 Replies

Code Snippet To Lock PC

May 15, 2010

This is a part of my project, my project basically uses a motion sensor to detect any intrusion. So one of the modules is to lock the PC on detection of an intruder. Is there a way to lock the PC using Visual Basic?(Because most of the other modules have been programmed in Visual Basic.) I am basically looking for source code that can implement something similar to "Windows button + L".

View 1 Replies

How To Lock A Textbox Using Code

Jan 24, 2012

I'm newbie in VB .Net.I do want to lock a textbox but I cannot supply the right code for it.

View 2 Replies

Lock A Table Via Code

Mar 9, 2009

1. I have to select the next invoice number from one table.

2. Then i have to insert this invoice number as it is in three other tables.

3. Then once i have done so i have to go and update the invoice number by +1 (increment by

1). And i have to do this for each row in the datatable.

During this whole period i do not want anyone to access (read or change) that invoice number. We can lock the table or row. Does not matter. How can i do it? I am not suppose to use store procedure. Lock table ... does not work. It is not an T-SQL stmet select invoice number with (readlock) ....... only works while this stement is runned. I want to have the table or row locked until i have done 1,2 and 3rd steps. I have seaching for a stamt in sql which will do this for me! But didnt find anything. All results point me to SP which i cannot use.

View 7 Replies

Lock Msaccess Database From .net Code?

Feb 24, 2009

i want to access locked databse from my vb.net code, i really dont have code for that,

View 1 Replies

Windows Lock/unlock (with Code)?

Mar 5, 2009

i'm trying to Handle the Micosoft.Win32.SessionSwitch Event, so when Windows is going to be locked by the user, i will simply write a line to the console.When it's going to be unlocked, the same.

Here's the code:

Sub Main()
AddHandler Microsoft.Win32.SystemEvents.SessionSwitch,
_ SystemEvents_Sessionswitch()
Console.ReadLine()

[code]....

View 6 Replies

Locking Multiple Sections Of Code With Same Lock?

May 30, 2011

I have 3 web methods in a WCF, called 'DeleteGroup', 'AddGroup', 'ModifyGroup'.Each method has its own code. I want to place a lock on code within each method, so that only one method executes at a time. For example, if 'DeleteMethod' is being executed then no request for 'AddGroup' or 'ModifyGroup' can be executed. So may be I could use something like what is below, but not very sure ? Also, where in the WCF would I declare the locker object, and would it be private, public or static (i.e. shared)?

SyncLock locker
--Delete Method Body
End SyncLock

[code].....

View 3 Replies

Lock / Prevent The User From Opening The Perl File / Code

Dec 15, 2011

i want to create an exe in vb.net by packaging few perl files along with it. when i am packaging those files i am able to hide those files by making the hide option true. but if the 'show hidden files' is selected those files will be visible. I want to lock/prevent the user from opening the perl file/code. want to know if there is any way to do it.

View 1 Replies

Html - Removing "Design-time-lock" Attribute From Legacy Code

Apr 4, 2011

I'm converting a project from .net 1.1 to 3.5, and everywhere the following is used in the markup:

Design_Time_Lock: true

e.g.

<asp:linkbutton id="lbRun" style="Z-INDEX: 111; Design_Time_Lock: True" runat="server">Run</asp:linkbutton>

[Code]....

I've read up about the Design_Time_Lock attribute, and I can see when it will and won't be generated. However I don't really understand the point of it. And- more importantly- can all instances of it be safely removed throughout the code?

View 1 Replies

ActiveX DLL Not Working On Different Workstation

Mar 30, 2010

I have created a VB ActiveX Control. I embed the DLL using the following semantics. It appears to be working fine in my local machine. However, it does not in other's workstation. But I was not able to generate the LPK file using the LPK_tool.exe since the ActiveX control did not show up in the list.

<object id="printUtil" name="printUtil" classid="CLSID:440616e0-8d63-47b8-b16d-4fd281dc652b" >
</object>

View 1 Replies

Local Administrator On A Workstation To Run VB6?

Sep 22, 2010

I would like to know if it is necessary to be Local Administrator on a Workstation to run VB6 I mean, just run VB6, write code and compile it.I do not mean to register DLLs, write in registry, etc.My question is just asked at the VB6 application level.

View 8 Replies

Check Which User Last Logged In To Workstation?

Jan 18, 2012

I need to create a spreadsheet of which kit is assigned to which person, within the company.

We have desktops & laptops, for the purpose of this post, we'll say desktops are named DESKTOP then a random 3 digit number (DESKTOP001, DESKTOP002 etc.) and laptops are named LAPTOP then a random 3 digit number (LAPTOP001, LAPTOP002 etc.)

I'm presuming the best way of checking which user uses each workstation would be to check who last logged in to it. doing this for ALL computers in a certain OU (lets say DESKTOP_OU for desktops and LAPTOP_OU for laptops in this example) (either with VB Script or PowerShell I would presume) and to export it to Excel.

View 1 Replies

Creating Executable File That Can Be Used On Any Other Workstation?

Dec 16, 2009

i need some help in creating vb.net executable file that can be used on any other workstation

View 1 Replies

VS 2008 Locking A Remote Workstation?

Sep 30, 2009

how can i lock a remote workstation?

View 1 Replies

Apply A Security Template To Stand Alone XP Workstation Using VBS?

Aug 26, 2009

Apply a security template to stand alone XP workstation using VBS?

View 4 Replies

How To Know If MS Chart Controls Installed On Client Workstation

Oct 14, 2011

I developed a ClickOnce application using MS Chart Controls. It works fine for the charting part. But, as Chart Control needs to be installed beforehand (with admin rights and not with classic ClickOnce deployment), I need to detect if the component is available on the machine. So I tried to create a new Chart and to handle the possible Exception but it seems it is not possible to catch it (too low level Exception?) :

Try
Dim oChart as New Chart
Catch
' Some user-friendly message to ask the user to contact the helpdesk
End Try

This code is never executed: I get a unhandled Exception as soon as I enter the event this code is in. See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

***** Exception Text ******* System.IO.FileNotFoundException: Could not load file or assembly
'System.Windows.Forms.DataVisualization, Version=3.5.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35'
or one of its dependencies. The system cannot find the file specified. File name:
'System.Windows.Forms.DataVisualization, Version=3.5.0.0,
[Code] .....

View 1 Replies

VS 2008 : Install A Class Library On A Workstation

Apr 17, 2009

Is there anyway to install a class library on a workstation so any application can call it without it being bundled with that app?

View 6 Replies

.net - Automation Scripting Tool Boston Workstation Alternatives

Dec 14, 2011

I been using Boston workstation for a project but the version i have is about 8 years old and it only works with terminal not GUI apps. what alternatives are out there for automation scripting Gui apps in visual studio.

View 2 Replies

C# - Deploy SMO Application To Workstation Without SQL Server 2008 Installed?

Jun 15, 2010

I am trying to deploy an application that uses SMO on a workstation without SQL Server installed on it. The instance the app is connecting to is SQL Server 2008. The application is failing with:Could not load file or assembly 'Microsoft.SqlServer.Replication, Version 10.0.0.0, Culture=neutral,PublicKeyToken=89845cdc8080cc91' or one of its dependencies. An attempt was made to load a program with an incorrect format.

The assembly in question is in the same path as my application as well as system32. I am running this on a Windows 7 64 bit box. I have run SQL Native Client, CLR, and SMO MSIs from the 2008 SMO redist download page.This app worked fine when connecting to SQL Server 2005.

View 1 Replies

Copy Image Files From VM SQL Server To Folder On Workstation?

Jun 5, 2011

A user scans a series of documents which are sent through a program that places a .tif or .pdf of each document into a folder on a remote VM Server and sends the image location to a VM instance of SQL Server(along with other OCR extracted data).

It is my job to create a program that will:

1. Allow another user to see the filenames on a form, chose which files need to be processed (either by typing them into two textboxes {ie. start and end filenames} or by clicking on a start and end filename on the form {from a databound SQL container maybe?}.

2. The program then must show the images in a picture box as it is copying them to the destination folder.

3. Then the software must somehow be able to regonize which documents were processed, and not include them in new searches.

[code]...

View 3 Replies

Create A VBA Script That Can Be Used To Input A List Of Workstation Names?

Feb 5, 2009

I need to create a VBA script that can be used to input a list of workstation names and display the memberOf, Home Server and OU for that workstation?

View 9 Replies

Enumerating List Of Drives On A Remote Domain Workstation

Jun 29, 2011

I am trying to come up with a good way to enumerate hard disks on remote workstations, possibly including administrative shares, so I can audit key files on them without having to access them via sneakernet.I have domain administrator rights. Security policy prohibits using WMI which would be a great solution.I can retrieve a list of computers using Active Directory, but I need some way to determine what drives are available on each system. Is such a thing feasible? A fellow developer offered some VB6 code from years ago that used WNetOpenEnum, but I was hoping that since we are at .NET framework 4, maybe there's a more elegant / managed way of working with this. I'm keen to use technologies that are more generally supported, such as standard APIs etc. WMI is a great solution but apparently is blocked by default by Windows Firewall, so its availability is not guaranteed.

View 2 Replies

Networking - Getting A Path To Public Documents On Server In .net App When Run From A Workstation?

Jun 2, 2011

In our VB.Net application, we need to get the path to our data folder in Public Documents. In our standalone application this is straighforward using the SHGetFolderPath function. However, for our network application, we run into a problem when we load the application on a Win 7 server and run it from a Win XP workstation. From the workstations, SHGetFolderPath returns the workstation's public documents folder instead of the what we want, which is the server's public documents path.Is there any way within the application to query the public documents path on the server?

View 1 Replies

VS 2008 32-bit UserControl In HTML Page Does Not Load On 64-bit Workstation

Sep 21, 2011

I built a specialized userControl using VB2008 (on XP 32-bit) to embed in HTML (not ASP!) and compiled it, pointing to x86 CPUs. I added the necessary keys to the registry (see attachment) to declare a classId in a HTML 'object' tag. This scheme works OK on all 32-bit OS I could put my hands on, but fails to load on 64-bit: I could test only on XP and Win 2003. No error message and Fiddler does not even know something happened... I installed VS2008 on the XP 64-bit machine and ported the code to a fresh userControl (to check the code). I got the userControl running on this workstation without any trouble. I copied this new DLL on another workstation and added the necessary keys to the register, but to no avail. I checked the registry and the 'Wow64' keys are there allright. As a check (and to provide you with a 'working' example), I:

- built a very simple userControl on the 32-bit environment (label, textbox and button to display the text in a mMessage box),
- on the 32-bit workstation:
+ copied the file to a 'program files' folder,

[Code].....

View 1 Replies

C# - Lock Statement In VB

May 27, 2009

Is there analogue of lock statement from c# in vb.net?

View 3 Replies

How To Lock Form

Jan 23, 2009

Basically,I had a button in my form1,when I click it,then form2 will be display...Now I would like to lock form2 until a button in form2 had been clicked,then only I can do anything in other forms...I means form2 must be closed before I can remain to form1.

View 1 Replies

How To Lock Screen

Dec 15, 2011

VB.net how to lock a computer screen using a form

View 3 Replies

Lock A Row In MySQL?

Aug 23, 2010

How do I lock a row in MySQL and then only allow the app that locked it to change the values of that row?

View 7 Replies

Lock Down A Function?

Dec 28, 2009

Wrote this code:
Function ReadRegistry(ByVal regType As String, ByVal RegPath As String, ByVal KeyName As String)
Dim regKey As RegistryKey

[Code].....

What I want to do is raise an error if I get passed a value that isn't listed in the case statement.. or it there a way to define it better?

View 7 Replies







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