Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Help With Text.Align

tman11580tman11580 Member Posts: 8
I want to make it so when you click button1 it makes the text align of a label move. not sure whats wrong with my code can anyone help?

Button1_Click = Label1.TextAlign.MiddleLeft()

thats what i have and its not working, what am i doing wrong?

And also i want a radio button to change the color of the label, this is my code so far,

RadioButton1_CheckedChanged = ForeColor(red)

also not working please helpppp

Comments

  • BitByBit_ThorBitByBit_Thor Member Posts: 2,444
    : I want to make it so when you click button1 it makes the text align
    : of a label move. not sure whats wrong with my code can anyone help?
    :
    : Button1_Click = Label1.TextAlign.MiddleLeft()
    :

    Are you using VB.NET? Try a code like Label1.TextAlign = MiddleLeft (sorry, but I do not have a copy of VB.NET installed here)

    : thats what i have and its not working, what am i doing wrong?
    :
    : And also i want a radio button to change the color of the label,
    : this is my code so far,
    :
    : RadioButton1_CheckedChanged = ForeColor(red)
    :
    : also not working please helpppp
    :

    Try RadioButton1.ForeColor = vbRed or something analagous (again, don't have VB.NET copy to check it)

    Best Regards,
    Richard

    The way I see it... Well, it's all pretty blurry
  • tman11580tman11580 Member Posts: 8
    : : I want to make it so when you click button1 it makes the text align
    : : of a label move. not sure whats wrong with my code can anyone help?
    : :
    : : Button1_Click = Label1.TextAlign.MiddleLeft()
    : :
    :
    : Are you using VB.NET? Try a code like Label1.TextAlign = MiddleLeft
    : (sorry, but I do not have a copy of VB.NET installed here)
    :
    : : thats what i have and its not working, what am i doing wrong?
    : :
    : : And also i want a radio button to change the color of the label,
    : : this is my code so far,
    : :
    : : RadioButton1_CheckedChanged = ForeColor(red)
    : :
    : : also not working please helpppp
    : :
    :
    : Try RadioButton1.ForeColor = vbRed or something analagous (again,
    : don't have VB.NET copy to check it)
    :
    : Best Regards,
    : Richard
    :
    : The way I see it... Well, it's all pretty blurry


    i use VB express 2008..and thanks for the help i got it to work

Sign In or Register to comment.