Hello,

This is my first post on DaniWeb, so I hope I did it OK.

Anyway, you'll notice that in the top of every window you have standard close button (the x in the red box).

I was wondering if it was possible to remove at this runtime, using VB6, so all I can see is the title bar?

Thanks

Hi,

Set this property for the form :
ControlBox = False

Regards
Veena

What Veena said will work just fine, but you could also completely remove the entire border including the X at runtime by simply going to the BorderStyle property when your form is chosen and setting it to 0-None. This would also achieve the same result and then some...

Good luck.

Ah yes - that is a very good idea, except I needed a border.

Out of interest, is it possible to set this style using code at runtime?

Yes. Just set Form1.controlbox = false