Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. VB.Net System Modal

VB.Net System Modal

Scheduled Pinned Locked Moved Visual Basic
csharpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hkinser9
    wrote on last edited by
    #1

    Hello, all. I've been working on a timer program that I can install on my sons computer in order to allow him a specific amount of time in the evenings/weekends. I've got the program all coded except for one feature: 1. When the timer completes it countdown, I'd like for it to take control of the operating system and pop up a password box that, until the correct psw is entered, essentially prevents the computer from being used (or something very close to that). I've searched extensively in many forums but have been unable to find anything that fits what I am looking for. Does anyone have information they can provide in order to code this in vb.net? Sincerely, Harold

    T 1 Reply Last reply
    0
    • H hkinser9

      Hello, all. I've been working on a timer program that I can install on my sons computer in order to allow him a specific amount of time in the evenings/weekends. I've got the program all coded except for one feature: 1. When the timer completes it countdown, I'd like for it to take control of the operating system and pop up a password box that, until the correct psw is entered, essentially prevents the computer from being used (or something very close to that). I've searched extensively in many forums but have been unable to find anything that fits what I am looking for. Does anyone have information they can provide in order to code this in vb.net? Sincerely, Harold

      T Offline
      T Offline
      The ANZAC
      wrote on last edited by
      #2

      I once made something similar, the way i resolved it was to make a form with no border, it was completely black and took up the whole screen, when i showed this form i said: form1.showdialog Then I had my password form popup in front of that also using showdialog. Showdialog means you can't do anything with the program until the dialog form has been taken away. This means, if the form blacked out the whole screen, you could not click the start button or anything. To find screen resolution height and width so it works on any resolution: My.Computer.Screen.Bounds.Width My.Computer.Screen.Bounds.Height Use these values to size your blackout form and set the password box to show centre screen. Make sure both forms have the topmost property set to true. Now, you will also need to block key combinations like Alt-Tab, Alt-F4, Control-F4, the start buttons and Control-Alt-Delete Right? Put these if statements in the keydown event for BOTH FORMS (the keypreview property should be true for both forms), these will block all common key combinations except control-alt-delete, these will not block the start buttons either: If e.Alt Then If e.KeyCode = Keys.Tab Then e.Handled = True End If If e.KeyCode = Keys.F4 Then e.Handled = True End If End If If e.Control Then If e.KeyCode = Keys.F4 Then e.Handled = True End If End If `As for blocking task manager i'm not sure, if your son has a limited account i think it can be blocked, for that account, not sure though. But this should get you started. To block the start buttons, i know there is a way to hide the start menu ro disable it, this may help. -- modified at 23:57 Friday 8th December, 2006 Posted by The ANZAC`

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups