BASIC/Visual Basic >> Brain.Freeze(Centering forms in VB)
Posted by themaximus on 04:48:00 06-25-2003
I am having a brain freeze. Does anyone know how to center a MDI Child? [addsig]
Posted by dxprog on 05:43:00 06-25-2003
mdiChild.Left = (mdiParent.Width - mdiChild.Width) / 2
mdiChild.Top = (mdiParent.Height - mdiChild.Height) / 2 [addsig]
Posted by themaximus on 01:31:00 06-26-2003
Thanks! Sorry about the brain freeze. Do I actually put in the ()'s or leave 'em out?

_________________
I am a VB Programmer, so get over it!

[ This Message was edited by: themaximus on 2003-06-26 01:33 ]
Posted by dxprog on 02:33:00 06-26-2003
No, you need to keep them. [addsig]
Posted by themaximus on 02:36:00 06-26-2003
I already figured that out. I am trying to create a miniOs called ViTrex. Code bits would be greatly appreciated.

_________________
I am a VB Programmer, so get over it!


[ This Message was edited by: themaximus on 2003-06-26 02:38 ]
Posted by dxprog on 05:09:00 06-26-2003
Unless I read that wrong, you're not going to be able to make much of an OS out of VB. ASM is about the only way to go with that (at least for the core). [addsig]
Posted by themaximus on 07:19:00 06-26-2003
I know. I'm doing it just for fun.

_________________
I am a VB Programmer, so get over it!

[ This Message was edited by: themaximus on 2003-06-26 07:19 ]
Posted by themaximus on 07:21:00 06-26-2003
One thing. What's a good site for ASM. Do you need any special software?

_________________
I am a VB Programmer, so get over it!

[ This Message was edited by: themaximus on 2003-06-26 07:22 ]
Posted by dxprog on 07:59:00 06-26-2003
Yeah, you'll need an assembler and linker. I would recommend NASM. Otherwise, I haven't seen any good ASM sites yet. [addsig]
Posted by themaximus on 10:31:00 06-26-2003
Thanks! [addsig]
Posted by dxprog on 11:56:00 06-26-2003
No prob, and good luck! [addsig]