VB6 Problem

5 posts / 0 new
Last post
SAS_Glock
Veteran
Veteran
Offline
Last seen: 11 years 4 months ago
VB6 Problem

Im quite new to programming. i do VB at collage and picking it up pretty fast. but ive come across a problem that i just cannot figure out.

When im in the design screen in VB 6, the menus i create are white. ive tried most of the options to try and get it normal but none have worked.

When i run the form, the menu is grey but looks like its flat. it has a line across the bottom of the menu which doesnt look very neat to me.

Its confused me because its not like that on the collage computers.

IMAGE(http://i31.photobucket.com/albums/c392/Rich-C/VBDesignScreen.jpg)
In the design its white

IMAGE(http://i31.photobucket.com/albums/c392/Rich-C/VBRunScreen.jpg)
Running it it looks either 3D or flat.

Can anyone help me out with this? Is it just a case of changing a property?

Thanks for any advice

-------------

SAS_Noah
Veteran
Veteran
Offline
Last seen: 11 months 1 week ago

Well VB is very picky so this could be caused by a number of things.

It could be a variable but I don't know which one you would have to keep doing what your doing with guess and check.

It is more likely a theme applied diffrently on your computers then the schools computers.

Lastly you may not have the most recent VBRuntimes,
http://www.microsoft.com/downloads/details.aspx?FamilyID=bf9a24f9-b5c5-48f4-8edd-cdf2d29a79d5&DisplayLang=en

SAS_Vet_Noah

SAS_Python
Veteran
Veteran
Offline
Last seen: 10 years 11 months ago

Unforuntately glock if you want it your own way your gonna have to code it because this is the default template for Visual Basic's main menu component. The same problem lies with the tabs because you cannot change the colour therefore they are always grey. I recommend just keeping it default than spending days writing the code to alter it.

Rand
Offline
Last seen: 11 years 3 months ago

It could be the instruction differences in your CPU, as opposed to the schools.

I would go with Noah's last suggestion, if that doesn't fix it, don't worry about it.

Nice job by the way, they both look good to me.

only those who will IMAGE(http://miniprofile.xfire.com/bg/co/type/2/sasrand.png)

SAS_Webmaster
Offline
Last seen: 4 weeks 2 hours ago

I can't directly solve the problem but I can add some information.

On my computer I have always found that a few applications display their menu bars incorrectly. I don't know if these are just the VB ones but it might make sense.

For example, Windows Messenger. The toolbar looks normal except for the background to the text (File, Edit etc) is white instead of beige. To begin with, that is only exactly behind the text. If I go into one of the menus, then that whole section of the toolbar goes white and stays white.

It's weird. I haven't bothered to try and fix it.

But I suggest that you take your program and run it on a different machine, to find out whether it is your program that has the problem or your VB installation.