Dear all,
I am sure that my question or problem is really strange but this it:
I am writing program in c# which has the right to left layout (Arabic language). I am then adding the pictureBox control to be background image in the form. I have set the dock of the pictureBox to be fill so it will be all the form.
Since the picture has some design that involves more than one color, I want to make the label as transparent so it not have any color and it will take the color from the pictureBox it self. Here is how I make the label transparent:
label_customer_name.Parent = pictureBox1;
label_customer_name.BackColor =Color.Transparent;This method works fine with me to change the color to transparent but there is problem. When I set the parent of the label to be the pictureBox, the location of it changed and reflected in the other side. For example, if the location is set to be X after theexecution, the location will be the form width - x. Any Idea how to get red if this problem?
What I am looking for in brief is:
1- Is there any other way to make the label transparent without setting the parent to the container control? Or
2- How to change the layout of PictureBox and force it to be from left to right.
Just as hint and the funny thing is that: if I the pictureBox in tab control and set the tab control to be right to left, the problem disappears as it seems that the pictureBox will get the layout from the tab control but it did not get it from the form it self.
Please help me in this regard.
Thank you and regards.
BR//Hussain