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 2008: Hide and/or disable Start Menu onLoad

VB.NET 2008: Hide and/or disable Start Menu onLoad

Scheduled Pinned Locked Moved Visual Basic
csharpsalesquestion
3 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.
  • D Offline
    D Offline
    Dimitri Backaert
    wrote on last edited by
    #1

    Hi, I have a Windows Form application that runs TopMost. In this application, there is a print function, which silently prints out a PDF file to the default printer. At the load of the Form, since the TopMost property is set to True, the Start Menu is hidden, which is exactly what I want. However, when the printing action is launched, the Start Menu pops up. This is triggered by the Taskbar (a little print icon is shown upon printing). Is there a way to prevent this? This application needs to run at an exposition, and will be launched on a touchscreen computer. The idea behind this, is that a customer can print a brochure of a product he's interested in. Secondly, I want to disable all the default shortcut keys to close the application (like ALT + F4, CTRL + ALT + DEL, etc.). Any ideas anyone? Kindly yours

    T 1 Reply Last reply
    0
    • D Dimitri Backaert

      Hi, I have a Windows Form application that runs TopMost. In this application, there is a print function, which silently prints out a PDF file to the default printer. At the load of the Form, since the TopMost property is set to True, the Start Menu is hidden, which is exactly what I want. However, when the printing action is launched, the Start Menu pops up. This is triggered by the Taskbar (a little print icon is shown upon printing). Is there a way to prevent this? This application needs to run at an exposition, and will be launched on a touchscreen computer. The idea behind this, is that a customer can print a brochure of a product he's interested in. Secondly, I want to disable all the default shortcut keys to close the application (like ALT + F4, CTRL + ALT + DEL, etc.). Any ideas anyone? Kindly yours

      T Offline
      T Offline
      Tom Deketelaere
      wrote on last edited by
      #2

      To prevent closing of your application just put e.cancel = true in the formclosing event of your main form. You can't prevent it from being closed in the taskmanager. As to keeping the taskbar hidden you can try to put me.bringtofront after the print code but I doubt that it will work. I don't think there is much you can do against it.

      D 1 Reply Last reply
      0
      • T Tom Deketelaere

        To prevent closing of your application just put e.cancel = true in the formclosing event of your main form. You can't prevent it from being closed in the taskmanager. As to keeping the taskbar hidden you can try to put me.bringtofront after the print code but I doubt that it will work. I don't think there is much you can do against it.

        D Offline
        D Offline
        Dimitri Backaert
        wrote on last edited by
        #3

        Isn't there another way around? Like, an auto closing MessageBox, displaying for example the text "Please wait. Your information is being printed", and when closing the MessageBox, returning to the startup page (which is also defined as TopMost)?

        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