If you click the button1 label1 = mytext and green text

Welcome to CPAElites - the original incentive CPA affiliate marketing forum online, solely based on "Cost Per Action".

Be a part of something great, join today! Learn CPA marketing with CPAElites, we will teach you everything such as the best CPA networks, CPA offers with highest payouts and best conversion rates, unsaturated CPA niches, most effective traffic sources and more.

Rival

Well-known member
VIP Legends CPAElites Classic (1.0)
VIP Elites CPAElites Classic (1.0)
Joined
August 10, 2013
Messages
186
Reaction score
0
Age
35
Location
NY
TheLastCard said:
can it be done!!? help me pls it is really very very simple.

im assuming your talking about VB right if so can you please clarify a little better on what you want and I will help you
 

TheLastCard

Banned
Banned
Banned, please read member profile -> "About"
Joined
June 14, 2013
Messages
69
Reaction score
0
RivalOfGod said:
TheLastCard said:
can it be done!!? help me pls it is really very very simple.

im assuming your talking about VB right if so can you please clarify a little better on what you want and I will help you

im is works like this:
1. you click on button1
2. after you click on button1 label1 show my text[i will write the text].
* and the text will be green[color green]
 

Rival

Well-known member
VIP Legends CPAElites Classic (1.0)
VIP Elites CPAElites Classic (1.0)
Joined
August 10, 2013
Messages
186
Reaction score
0
Age
35
Location
NY
TheLastCard said:
RivalOfGod said:
TheLastCard said:
can it be done!!? help me pls it is really very very simple.

im assuming your talking about VB right if so can you please clarify a little better on what you want and I will help you

im is works like this:
1. you click on button1
2. after you click on button1 label1 show my text[i will write the text].
* and the text will be green[color green]

I think this is what you mean

Code:
  If Button1.Enabled = True Then
            Label1.ForeColor = Color.Green
            Label1.Text = "Hello"

        End If

thats all the code for that really
 

rinor4ever

Well-known member
Joined
September 4, 2013
Messages
124
Reaction score
0
You don't need to put on form load or to put if statement
Just on button click add the code that RivalOfGod mentioned:
Code:
Label1.Text = "Put you text here"
Label1.ForeColor = Color.Green
 

LinX

Banned
Well-known member
VIP Legends CPAElites Classic (1.0)
VIP Elites CPAElites Classic (1.0)
Joined
May 12, 2013
Messages
1,411
Reaction score
0
Location
Sweden
Website
www.youtube.com
If you want the label to become green when it changes text to the text you want then I would do this:

Code:
If
Label1.Text = "Your text that the button changes to and want to become green here"
Label1.Forecolor = Color.Lime -- Lime looks better than green, if you want the "Hi-Tech Activated" color.

Else
Label1.Text = "Put some text here that you want the label to be if the user for an example inputs wrong password etc"
Label1.Forecolor = Color.Red -- Changes the color to red if wrong password is input.

If you want to have a text to appear when you click a button then I would do this:
Code:
Label1.Enabled = True
Label1.Forecolor = Color.Lime
Label1.Text = "Your Text Here - LinX"
If you do the above make sure you put your label to not enabled, so when the button is clicked it becomes visible with the properties you want.

Regards
LinX
 
Top Bottom