I want to make border for label and panel in Compact Framework 3.5 but there is no such property like BorderStyle. I search and google but i don’t know how can i make border for label and Panel in compact framework.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
senzacionale, try to use the panel Paint event to draw your border. In this little example I painted a blue border around the panel:
This example was written in WinForms/.net 4.0/VS2010, but the principle is the same, and the Paint event is available in the Compact Framework. There are a few tricks to redraw things properly in the Paint event, like creating a copy of e.Graphics to work with, but the main idea is presented.