Quantcast

Jump to content


Photo

Visual Basic 6 Programming Help Topic


  • This topic is locked This topic is locked
35 replies to this topic

#26 Taook

Taook
  • 90 posts

Posted 27 February 2005 - 02:06 PM

thank you, mumei, yours worked

I already tried something like that from a different site, but it didn't work

[EDIT] New Question:
I want lblPercent to change ForeColor during runti'me.
This is what I have.

Private Sub ti'm3_Ti'mer()
    ti'm2.Enabled = False
    lblMain.Caption = "Starting . . ."
    lblPercent.Caption = "75%"

    lblPercent.ForeColor = ???
    shp1.Visible = True
    shp1.Width = 3615
    ti'm4.Enabled = True
End Sub


I want the ForeColor to be white.
I already tried this.

lblPercent.ForeColor = &H00FFFFFF&

But it changes to:

lblPercent.ForeColor = &HFFFFFF

What should I put and why does it change?

Edited by Taook, 27 February 2005 - 02:39 PM.


#27 Mumei

Mumei
  • 3545 posts

Posted 27 February 2005 - 02:45 PM

&H00FFFFFF
and
&HFFFFFF
are the same number

the &H means the number is in Hex
and 00FFFFFF = FFFFFF
(in the same way 0001100 = 1100)


anyone with more than 2 ti'mers in your programs should at least look at this si'mple example
Attached File  Timer_Playing.zip   2.88KB   17 downloads

it may be a little too complicated for you - if so, just ignore it, but if not it's a great way to handle events :D

#28 Taook

Taook
  • 90 posts

Posted 27 February 2005 - 03:01 PM

Thanks, but what should I put as the code to change the ForeColor?

#29 Mumei

Mumei
  • 3545 posts

Posted 27 February 2005 - 03:37 PM

lblPercent.ForeColor = &HFFFFFF

the other one just gets changed to this anyway :D

it's just a number afterall, you could have put

lblPercent.ForeColor = 16777215
that's just the same thing

#30 414de7fe6

414de7fe6
  • 2559 posts

Posted 27 February 2005 - 09:00 PM

Can you not use vbWhite? :)

Noiti - have I not proven my worth for releasing vIII? come on :p be a pal.

#31 haku_jin

haku_jin
  • 419 posts

Posted 18 January 2006 - 10:32 PM

Ok, so Im new at working with VB6 and am having to take it in college. Can someone explain in simple english about calculate buttons and the functions that go with them? I understood everything up to that. The prof never explained where she got the function formulas from. Like pulled it out of a magic hat or something.

#32 Guest_Xth Cannon_*

Guest_Xth Cannon_*

Posted 18 January 2006 - 10:35 PM

Woah. Noboduy had posted in this thread for about a year. Woah :p And uhm, what you mean? Calculater or what?

This really should be in the programming help and chat area.

#33 haku_jin

haku_jin
  • 419 posts

Posted 18 January 2006 - 10:40 PM

My mistake. I just saw the thread here and figured I would ask. I suppose I could ask in the other thread though.

#34 Guest_Xth Cannon_*

Guest_Xth Cannon_*

Posted 18 January 2006 - 10:42 PM

If you want better results start a new thread in the Programming Help & Chat Area :)

#35 haku_jin

haku_jin
  • 419 posts

Posted 18 January 2006 - 11:03 PM

Took me a while to find the thread. Thanks for the help x.

#36 ShadowLink64

ShadowLink64
  • 16735 posts


Users Awards

Posted 19 January 2006 - 06:58 PM

:closed:


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users