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 :)

[505 byte] By [Ruiner1111] at [2007-12-16]
# 1

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

MosheGutman at 2007-9-8 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 2

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

PaulDomag at 2007-9-8 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 3
That one helped out so much! Thanks!
CPTK at 2007-9-8 > top of Msdn Tech,Visual Basic,Visual Basic General...