There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
Cmd button disappears


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
wes peters's Avatar
Junior Member with 29 posts.
 
Join Date: Nov 2002
Location: west coast
11-Mar-2003, 10:38 PM #1
Cool Cmd button disappears
I just ran across another problem.
When I load up a form from another form the second time, one of my command buttons disappears.
When I do it again it's back.
It only does it every other time.

Any suggestions.

Thanks again for the help
Mosaic1's Avatar
Distinguished Member with 7,498 posts.
 
Join Date: Aug 2001
11-Mar-2003, 11:24 PM #2
I am very new to this. But I think having a look at your code may help. Someone will be along to check it out.
wes peters's Avatar
Junior Member with 29 posts.
 
Join Date: Nov 2002
Location: west coast
13-Mar-2003, 01:56 PM #3
Cool Cmd button disappears
Cmd button disappears
--------------------------------------------------------------------------------

So far I have traced it down to a problem (I think) with the Style property. When I choose graphical my problem appears and when I change back standard my problem goes away. There are 5 cmd buttons on my form and this is the only one giving me this problem.
I have compared all the settings in properties with each button and they are all set the same.

Could this be a bug in vb6?

Thanks again for any and all help.

ps. If need be I can live with it.
__________________
wes
Mosaic1's Avatar
Distinguished Member with 7,498 posts.
 
Join Date: Aug 2001
13-Mar-2003, 02:09 PM #4
I don't know why that would be. I created two forms, using Graphical for an options button on the second form. Using Form2.Show I tried to duplicate the problem, but couldn't.

There is another option for the command button. Setting the command button Style to graphical. Then creating a bitmap with the text you want to display and using the bitmap as the picture for that command button.
wes peters's Avatar
Junior Member with 29 posts.
 
Join Date: Nov 2002
Location: west coast
13-Mar-2003, 09:06 PM #5
Cool Cmd button disappears
That's my problem, when I select graphical, that's when my cmd button disappears.

Mosaic1, I sent you my project. you'll have to make a "saves" folder, that's where my app. saves the files.

Thanks again for the help.
wes peters's Avatar
Junior Member with 29 posts.
 
Join Date: Nov 2002
Location: west coast
13-Mar-2003, 09:16 PM #6
Cool Cmd button disappears
Sorry Mosaic1 I sent my project to another buddy.

I'll try to attch it here. It's a zip file, so I don't think it'll work.

Sorry I can;t seem to send it.

I'll email it to you if you wish, let me know.

my email address is wespeters@telus.net
__________________
wes
Mosaic1's Avatar
Distinguished Member with 7,498 posts.
 
Join Date: Aug 2001
13-Mar-2003, 10:42 PM #7
If you post your code here, that should do it. Although I am not sure what help I can be. Maybe someone else will pop in.

Tell me how many forms and what exactly to put on them, etc and I'll see if I have the same problems you are having.
wes peters's Avatar
Junior Member with 29 posts.
 
Join Date: Nov 2002
Location: west coast
14-Mar-2003, 03:48 PM #8
Cmd button disappears
Hi All

Got my program working.

In my cmdDone code I had Unload me and the next line I had frmWindow.Hide.

I removed the frmWindow.Hide and everything works Great.

I didn't relize that with Unload I didn't need to hide the frm.

It seems the frm was reloading itself again and thus my problem.

Thanks for all your help.

You guys are great.
__________________
wes
Mosaic1's Avatar
Distinguished Member with 7,498 posts.
 
Join Date: Aug 2001
14-Mar-2003, 04:09 PM #9
Hey Wes,

Glad it's fixed. I just saw your post over at the General Visual Basic Board.


Mo
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 05:43 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.