User | Post |
Kenny3900
Posts: 1/9 |
Originally posted by HyperHacker It's nice, but there seems to be some problems with frames. Things don't draw right on them. I might have to remove all manner of frames. Damn.
After adding a frame, also add a PictureBox in the frame, and add the controls you originally want to put inside the frame in the PictureBox. Like this:
_____________________________ | Frame | | ________________________ | | | PictureBox | | | | [Controls] | | | | [Controls] | | | | [Controls] | | | | [etc.] | | | |________________________| | |_____________________________|
If you cancel out the border of the pic.box, you'll see the controls looks normally "inside" the frame. |
HyperLamer
Posts: 53/8210 |
Hmm, I tricked VB into using themes and now I can at least see how it looks. It's nice, but there seems to be some problems with frames. Things don't draw right on them. I might have to remove all manner of frames. Damn. But I think I know why it wasn't starting up, and hopefully fixed it. (Haven't tried it compiled tho.) |
dan
Posts: 6/782 |
XP theming Visual Basic applications is a waste of time really. Some controls don't get themed properly, and it's never going to get a fix from Microsoft. I found a page on how to (probably) fix your crash:
http://www.vbaccelerator.com/home/VB/Code/Libraries/XP_Visual_Styles/index.asp |
Jesper
Posts: 46/2390 |
I think there's an article on this on vbcity.com, in their FAQs section. |
HyperLamer
Posts: 45/8210 |
Well I wrote up a VB program, and couldn't help noticing its interface was ugly. So I figured why not add XP's themed ontrols? So I did all that InitCommonControls() junk, made a manifest file, etc. All it does now is make that error sound and close. WTF? |