Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 136,385 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 2,366 people online right now. Registration is fast and FREE... Join Now!




Button Display Problem

 
Reply to this topicStart new topic

Button Display Problem

newguy13
29 Aug, 2008 - 02:10 AM
Post #1

New D.I.C Head
*

Joined: 24 Aug, 2008
Posts: 5

In an application I am developing ,out of 15 command buttons ,14 of them do not appear at runtime in their respective positions and in there place I find parts of the previous screen or window. When i move the mouse pointer over the respective positions, the pointer changes just as it should and on clicking the areas the buttons appear.This not only occurs in the VB IDE but also in the exe. Although I have compared each and every property of the 14 buttons to the one button which appears properly I cannot find any problem/difference.

One of these buttons is also an exit button so I am always forced to close the application just to make it look right.
All the buttons work properly after they appear and so does the application.

I have tried to make many new simple applications but they all work fine.

I have checked and rechecked the code but I can find no problem with it.
The code has nothing to do with the display of the buttons.
I do not understand where have I gone wrong.
User is offlineProfile CardPM
+Quote Post

Ken Halter
RE: Button Display Problem
29 Aug, 2008 - 09:31 PM
Post #2

New D.I.C Head
*

Joined: 18 Nov, 2007
Posts: 35



Thanked: 5 times
My Contributions
Sounds like there's a problem with a loop somewhere.

Is the app responsive? iow, once the buttons appear, everything works perfectly?

Is there any code in the Resize event handler? A fast timer doing something tricky? Can you duplicate the problem by copy/pasting all controls and code to a new project? (you can run several instances of the VB IDE if you want)

It's really hard to tell what's going on without looking at some code.
User is offlineProfile CardPM
+Quote Post

Reverand Dave
RE: Button Display Problem
30 Aug, 2008 - 01:24 AM
Post #3

D.I.C Regular
Group Icon

Joined: 27 Jul, 2008
Posts: 373



Thanked: 2 times
Dream Kudos: 50
My Contributions
If you are using a frame or something like that, your buttons may be unintentionally sitting behind it. Make sure that your Zorder is correct. A little code will go a long way towards helping us help you though.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 10:28AM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month