[2005] Lock The PC Using .net?
Aug 7, 2007how to lock PC using VB.net? So that any user cannot do anything on my PC?
View 10 Replieshow to lock PC using VB.net? So that any user cannot do anything on my PC?
View 10 RepliesI want to lock the folder.[URL] Suppose mine foldername is sonia ,In the codeProject code,he is renaming the folder to sonia.{2559a1f2-21d7-11d4-bdaf-00c04f60b9f0} & password is set & that password is written to xml file in the folder sonia only...next time when we double click on folder sonia.{2559a1f2-21d7-11d4-bdaf-00c04f60b9f0}..form is dispayed it which we have to give the password.firstly i do not want to change the folder name.I want that it still remains sonia,even after locked...Secondly,If we rename that folder by right clicking the properties & remove .{2559a1f2-21d7-11d4-bdaf-00c04f60b9f0},I can view the contents of the folder..
View 3 Repliesis there a possible way using vb.net to lock and unlock PC Desktop? so that we will have restriction for each user? what code should i write?
View 4 RepliesI have been reading through lots of sample code and explainations regaurding the uses of Sync lock in multithreaded programs but still am a little fuzzy on this.
Am I correct in assuming that if I have two or more threads running the same procedure which has a sync lock on a shared resource that the first thread to call the lock will complete its update of the resource and any of the other threads to try and lock this object would just wait in line until it is released by the first object?
I am also a bit fuzzy on what is actually locked by the sync lock.
Lets say I have code that uses sync lock and the object specified is the current thread. Does that also lock the shared resources that are referenced within the sync lock block or would I need to use another method to do this?
What if my shared resourses were all in another class and I issue a sync lock on that class before I try to modify the resources would that be the proper way to go about it?
And last but not least is there any need to use sync lock when the shared resource is in effect read only [meaning the program will read the value but will not change it during runtime]
how can I check if an oracle tabel is lock in VB .NET?
View 3 RepliesIs there analogue of lock statement from c# in vb.net?
View 3 RepliesBasically,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 RepliesVB.net how to lock a computer screen using a form
View 3 RepliesHow 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 RepliesWrote 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?
I have a form and its filled from a VIEW of two tables on SQL server. When its opened i dont want other users opening that customers details from either table.I know SQL itself prevents writes if its opened but i want to stop people opening the record in the first place.[code]...
I then tried writing these values to the db on the form loading but it doesent work - it just sends back NULLs. I tried the same code in the on load event into a button and it works fine there. So im thinking i should do this as a Trigger on SQL itself, but im unsure how i could get the users computername or Windows Login name, or even username from the front end im building.
I am using XML files to store some iformation that are to be processed. I use this code to interact with the XML file:
Dim xmlDoc As New XmlDocumentxmlDoc.Load("theXMLFile")
Do XML stuff such as add elements...
xmlDoc.DocumentElement.AppendChild(oAlarm)xmlDoc.Save("theXMLFile")
What I want to do is to lock the file so that no other process can use the file. If a process wants to use the file, I also want it to wait and try again until file is available.
But not my application.A app i use refuses to be brought forward, so wondered if there was a way for a vb app to run in the bg that can force a specified application to stay on top, & even maybe set its screen position and lock it there???
View 6 RepliesIn my project i am using begin transaction commit or rollback changes. but this causes lock to the tables in that particular functionality.
So if the any other user does any other functionality those locked table are not available until the transaction is completed. I want to know if there is any alternative to transaction which insures data security but the tables are not locked out.
Dim bmi As New BitmapImage(New Uri(fiInfo.FullName, UriKind.Absolute))
bmi.CacheOption = BitmapCacheOption.OnLoad
this does not Use OnLoad
[code].....
how would i bypass the loader lock. I know there is a way to disable it but im not sure how
View 2 RepliesThis 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 RepliesI'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 RepliesI'm trying to detect the state of num lock but haven't had any luck. using a windows 7 x64 machine.
Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As System.Windows.Forms.Keys) As Short
'num lock check timer
[Code]....
How do I get the current state of Num Lock in VB.NET?
View 1 RepliesI have a windowsform in visual studio 2008, I connect to a ms sql-server.On my form I have a datagridview who I use to enter data etc and save them to the database. I then have textboxes who shows the sum of the columns etc in the table abd save that value back to the database. but for instance if i put the cursor in row 2 of the datagrid the values in theese textboxes dissapear.What I want to know is if there is apossibility to lock the textbox to ex. table test, clomn x and row 1??
View 2 RepliesI'm newbie in VB .Net.I do want to lock a textbox but I cannot supply the right code for it.
View 2 RepliesI am using vb.net framework 3.5. I want to lock input devices like keyboard and mouse from my application. Is their is anyway using sendkeys or any method to lock?
View 5 RepliesI need to lock label position. so, my label can't move at all.. now, i'm using label1.Enabled = False.. but, my label.forecolor become gray..
View 7 Repliescan anybody told me how to lock remote computer using Vb.Net2005
View 3 Replieshow do you lock a single file cuz people r accessing files that r private and help me with VB 2008 code
View 11 RepliesI am getting this right after I bind grid. I called the db multiple times (no more than 5.) and I bound those result to a datatable and it then throws this error. I was not getting this error yesterday when i was running this program. And there doesnt seem to be anything I have not done before.
View 1 Replies1. 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.
How to lock a folder from application .net?
View 3 RepliesHow to lock program.create count number at file or registry,i want to high security.
View 6 Replies