Solved

Command Button invisible!!!!!

Posted on 2000-03-07
8
178 Views
Last Modified: 2010-05-02
I have a CommandButton in a Frame in a TabStrip. I run my pgm. and the button is in my frame; i change Tab and i come back on the Tab where the button was, it is disppear.
I check the visibility(debug.print cmdButton.visible) and it is True.
What can i check and how?
I can't put a breakpoint, the pgm. return where the sub was called.
0
Comment
Question by:dosyl
8 Comments
 
LVL 32

Expert Comment

by:Erick37
ID: 2591873
Is the frame visible?
Is the button behind another control?
Debug.Print Command1.Container
Debug.Print Command1.Top; Command1.Left
0
 
LVL 32

Expert Comment

by:Erick37
ID: 2591907
You may also try
Command1.ZOrder 0
0
 
LVL 2

Accepted Solution

by:
damienm earned 50 total points
ID: 2591950
I think (in design mode) you should click on the command button then use edit cut, then click on the frame and go to edit paste to put the command button inside the frame as I don't think the command button is within the frame.
0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 

Expert Comment

by:vbmeister
ID: 2591953
Yes I've got my money on the button is not IN the frame but behind it somehow you got them on the form separately such as adding it to the tab without the frame being selected to make it within the frame.  

If that isnt it you may have a problem with IE5 and NT4 where I installed SQL 7 and all of my toolbars and stuff dont redraw properly now known bug with this configuration I've seen/heard it elsewhere.  

Or the last chance longshot might be to check your video hardware acceleration to set it lower.  Some 2D graphics engines take shortcuts and assume certain objects wont need to be redrawn and they are wrong sometimes.  Lowering the acceleration in your advanced display preferences sometimes helps but like I said LONGSHOT.


0
 
LVL 1

Author Comment

by:dosyl
ID: 2591998
damienm , I believe, it is true but how to cut it and paste it in the Frame?
0
 
LVL 1

Author Comment

by:dosyl
ID: 2592024
Zorder=False always
0
 
LVL 2

Expert Comment

by:p_biggelaar
ID: 2592114
Very simple:

Select the button, then Cut
Select the frame, then Paste

btw: damienm deserves the credits (ie points) for this one!
0
 
LVL 1

Author Comment

by:dosyl
ID: 2592155
(Edited by Computer101) me, i surely didn't select the Frame right away.
Thank's to all of you. I don't know what i would do if EE doesn't exist.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Best way to parse out a json string in VB6? 10 163
Adding to a VBA? 6 69
Excel Automation VBA 19 68
converting visio 2010 to powerpoint 2010  - formatting issues 5 68
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question