Forecolor won't show

Anders Damkjær 1 Reputation point
2022-01-31T19:20:05.903+00:00

Hi there,

I am new to Visual Basic, but I am developing a windows form app .NET and I have a problem.

I insert a textbox, label or button in the form and change the text and forecolor, and it displays the color that I chose.

Then when I run the program (press the start icon at the top) the forecolor (the font color) is just black...
What am I doing wrong here?

Please help!

Thanks

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,569 questions
{count} votes

2 answers

Sort by: Most helpful
  1. LesHay 7,126 Reputation points
    2022-01-31T21:58:04.083+00:00

    Hi
    You need to say how you 'change the text and forecolor'. Is that done in the Designer by changing the Forecolor property?
    Do you have any code in the Form1_Load Event Handler, or the Form1_Shown Event Handler?

    0 comments No comments

  2. Anders Damkjær 1 Reputation point
    2022-02-01T08:25:54.983+00:00

    Thank you for your answer, LesHay-2099, but I managed to solve the issue :)

    It turns out that I had a panel with the enable-property set to FALSE, underneath the labels and textboxes.

    0 comments No comments