سؤال

How can I Fill part of background color in Textbox C# Winforms.
Like this (this example create in Photoshop):

enter image description here

Can anyone help me...

هل كانت مفيدة؟

المحلول 2

You can increase and set color left border width in

Edit UI Elements > BorderPrimitive > Box

but be carefull that

set BoxStyle to FourBorders

نصائح أخرى

You should handle the Paint event, then perform your custom drawing in the event handler.

You could also use panels. Paint the background of the panels the color of your liking. Place them on top of each other. Or you could use a picture as background.

Crate a custom control, use group box with border, set its background, place a text box in it, set its border to none. You can create same as you wish.

In the Properties of the textbox you can change the backcolor under the following setting. http://prntscr.com/3hjyhl

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top