Home > database >  Duplicate text in label to make it like 3d in c#. net framework
Duplicate text in label to make it like 3d in c#. net framework

Time:12-14

I am doing a menu like the following in c# for a school small game.

enter image description here

I am using the labels to create this, but how can I do that orange color behind it? The only solution I see, is exporting that text as png and use it as image instead of label. Is there a better way to do it?

CodePudding user response:

You can export that text as a png and use it as an image, or you can style it with a label. But using labels will be very troublesome. First you need to add a label at the appropriate position. Set the label's AutoSize to false so that you can adjust the shape and size of the label arbitrarily. Then adjust the BackColor and ForeColor of the label to orange. Finally, place these labels on the edges of the letters to achieve a 3D effect. Such as “o”: enter image description here

CodePudding user response:

So the best option is creating a class to manage this text labels?

  • Related