Help with What to Use in this scenarioI don't know what to use - I'm new please be patient with me.
Page 1 of 1
11 Replies - 871 Views - Last Post: 08 November 2009 - 06:23 PM
#1
Help with What to Use in this scenario
Posted 04 November 2009 - 09:20 PM
Here's the project...
Main computer has this Form with a button that should send a command to an "Agent" that is installed in another computer (both computers connected via LAN)
Main computer clicks the button, value is passed (txt1.text = "GoAhead") via the network, the "Agent" picks it up. confirms the command (if txtFromMain = "GoAhead" then .....) then do something.
-------------
I'm a newbie, and i only got this vb2008 for dummies book as reference. i can do simple things w/ vb2008 now, problem is, i don't know what to search for with regards to the project i have.
If you could post a code - Great, Appreciate the Help.
or please give me what to study and some tutorial links.
Thanks.
Replies To: Help with What to Use in this scenario
#2
Re: Help with What to Use in this scenario
Posted 04 November 2009 - 09:23 PM
#3
Re: Help with What to Use in this scenario
Posted 04 November 2009 - 09:29 PM
Sethro117, on 4 Nov, 2009 - 08:23 PM, said:
WOW!! that was fast! Thanks Mr. Hall will look into it.
#4
Re: Help with What to Use in this scenario
Posted 05 November 2009 - 02:17 AM
what i intend to do is pass a string to the other computer. the string is checked in computer2. if ok.. computer 2 will be locked. (not the windows lock thing)
i used the blockinput method, however, this can be bypassed by CTRL+ALT+DEL
next, i disabled taskManager... looks good, since my form was maximized, the user won't be able to access anything... until... i tried CTRL+ALT+DEL > Cancel the 'Windows Security' box and tried WIN + D which displays the desktop, now the user can freely select opened apps from the taskbar, they can also use ALT+TAB...etc,
how can i truly block any input, both mouse & keyboard?
This post has been edited by octane: 05 November 2009 - 02:26 AM
#5
Re: Help with What to Use in this scenario
Posted 05 November 2009 - 02:30 AM
http://www.google.co...07896c868034d90
#6
Re: Help with What to Use in this scenario
Posted 05 November 2009 - 02:35 AM
Searock, on 5 Nov, 2009 - 01:30 AM, said:
http://www.google.co...07896c868034d90
Hi searock, Thanks.. but how about if they can still select open apps from the taskbar? (with mouse)
#7
Re: Help with What to Use in this scenario
Posted 05 November 2009 - 11:14 AM
What is registry?
http://en.wikipedia....indows_Registry
Accessing Registry From Vb.net
http://www.dreaminco...wtopic31219.htm
Registry Value for Disabling Task Manager
http://www.google.co...07896c868034d90
Registry value for disabling Run
http://www.google.co...07896c868034d90
Or
You can kill task manager at particular interval using a timer and using a process class [not recommended]
http://www.google.co...07896c868034d90
This post has been edited by Searock: 05 November 2009 - 02:57 PM
#8
Re: Help with What to Use in this scenario
Posted 05 November 2009 - 05:13 PM
i already did the "disable Taskmanager" however, i forgot to disable 'RUN' thanks for reminding me.
luv ur animated Sig.. too bad naruto ain't there :-D
will try to work things out, so far i think fooling Windows that the app is a screensaver will work (prompt user for password if any input was detected) - well.., i don't know if this is possible.
Searock, on 5 Nov, 2009 - 10:14 AM, said:
What is registry?
http://en.wikipedia....indows_Registry
Accessing Registry From Vb.net
http://www.dreaminco...wtopic31219.htm
Registry Value for Disabling Task Manager
http://www.google.co...07896c868034d90
Registry value for disabling Run
http://www.google.co...07896c868034d90
Or
You can kill task manager at particular interval using a timer and using a process class [not recommended]
http://www.google.co...07896c868034d90
#9
Re: Help with What to Use in this scenario
Posted 05 November 2009 - 05:58 PM
octane, on 5 Nov, 2009 - 04:13 PM, said:
Why do you need to fool windows, you simply can pop up a maximized black form to cover the whole screen and then ask for a password, but don't forget to disable Ctrl + Esc, Alt + Tab, Win + D keys
#10
Re: Help with What to Use in this scenario
Posted 05 November 2009 - 07:55 PM
Searock, on 5 Nov, 2009 - 04:58 PM, said:
octane, on 5 Nov, 2009 - 04:13 PM, said:
Why do you need to fool windows, you simply can pop up a maximized black form to cover the whole screen and then ask for a password, but don't forget to disable Ctrl + Esc, Alt + Tab, Win + D keys
ok.. thanks.. now i'm banging my head..
i tried capturing Ctrl+esc to no avail...
Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
If e.KeyCode = Keys.controlkey And e.Modifiers = Keys.Escape Then
e.Handled = True
MsgBox("you use CTRL+ESC")
End If
End Sub
i got rid of alt+tab & Win+D with having the form ONTOP (dirty solution)
#11
Re: Help with What to Use in this scenario
Posted 08 November 2009 - 12:02 AM
octane, on 5 Nov, 2009 - 06:55 PM, said:
Sorry for the late reply.
if you find my solution bad then lets go by your solution.
Public Partial Class MainForm Public Declare Function apiBlockInput Lib "user32" Alias "BlockInput" (ByVal fBlock As Integer) As Integer End Class
To block the input use apiBlockInput(1).
To unblock the input use apiBlockInput(0)
first you have to create a registry key.
lets say we create a key HKEY_CURRENT_USER\mysoftwate\lock.
Now in that key create a REG_SZ value called Locked and set its data to false.
This might come in handy if a user restarts his computer, specially when his computer is locked and if he restarts his computer then he will gain access to the programs.
One thing you have to do is make your form invisible and add Me.ShowInTaskbar=false in your form load event so that
your application will be invisible in the Task manager Application tab.
In the form load event you have to check for the registry value locked, if it is true then block the system and if it is false then do nothing.
#12
Re: Help with What to Use in this scenario
Posted 08 November 2009 - 06:23 PM
I didn't mean that your solution is bad.. what i meant was, MY soultion was bad by just blocking the screen and not trapping or disabling the keys, hence, a dirty solution
thank you, for this post.. i'll try to work it out after do some errands first.
thanks!
Searock, on 7 Nov, 2009 - 11:02 PM, said:
octane, on 5 Nov, 2009 - 06:55 PM, said:
Sorry for the late reply.
if you find my solution bad then lets go by your solution.
Public Partial Class MainForm Public Declare Function apiBlockInput Lib "user32" Alias "BlockInput" (ByVal fBlock As Integer) As Integer End Class
To block the input use apiBlockInput(1).
To unblock the input use apiBlockInput(0)
first you have to create a registry key.
lets say we create a key HKEY_CURRENT_USER\mysoftwate\lock.
Now in that key create a REG_SZ value called Locked and set its data to false.
This might come in handy if a user restarts his computer, specially when his computer is locked and if he restarts his computer then he will gain access to the programs.
One thing you have to do is make your form invisible and add Me.ShowInTaskbar=false in your form load event so that
your application will be invisible in the Task manager Application tab.
In the form load event you have to check for the registry value locked, if it is true then block the system and if it is false then do nothing.
|
|

New Topic/Question
Reply




MultiQuote




|