My first program?

Hello, I have just downloaded this new Visual Basic Beta thing, I have made a window containing some words, and was wondering how I could

1. Hide the window from the ctrl alt del list.

2. When i press the button it opens another window (a duplicate)

3. Be not able to close the window (remove the X)

4. And do anything else which would disable you from closing the box (disable Alt+F4 or something)


This is my first program, it's just for fun to see if it would work

Thanks guys :)




Answer this question

My first program?

  • mohasad

    That one helped out so much! Thanks!
  • Mekon2

    Hi,

    In addition to that, the property that would remove the "x" button would be setting the ControlBox property to false. To disable the Alt-f4 from closing your form, in the Form_Closing event, include this code:

       if (e.CloseReason = CloseReason.UserClosing) {
        e.Cancel = true;
       }

     

    cheers,

    Paul June A. Domag



  • Deasun

    Here are some properties for the form that may help:

    To get rid of the title bar you can change the Form's border style to "None"
    The property is named "FormBorderStyle"
    http://msdn2.microsoft.com/en-us/library/9ta810dw

    To make the form not show up in the taskbar there is another property named "ShowInTaskbar", if you set this to "False" it will not be displayed in the taskbar


  • My first program?