VB.NET 2008: Hide and/or disable Start Menu onLoad
-
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
-
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
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.
-
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.
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)?