Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Problem facing with transparent background of TextBox?

$
0
0

Sorry for my bad English skills to explain my problem.

I am working on a drag n drop control application in which user can place the controls like Picture Box and TextBox to a Canvas. I want to when user place a TextBox over any PictureBox, then TextBox should be transparent. I did this by setting TextBox's parent to PictureBox and It works fine. But Now a requirement that If TextBox's Text is larger than PictureBox's width, then It should be overflow to right outside the picturebox. i.e. half of text on PictureBox and remaining on Canvas. But TextBox is now child of PictureBox so that Text is not growing outside the pictureBox. How it is possible? 

NOTE: please note that my canvas is also a PictureBox which is parent of all controls placed in it.



Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>