Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)

Hi there.

 I  am now coding a program in C# and I am facing a problem.

I want to create dynamic windows form, getting the information for those form a xml file.  In the form  just want to have as many textboxes and description as the fields of the desired report.

 In normal C# I use the TableLayoutPanel, and its far easy, its just have 1 or 2 more row´s or line, but in the mobile there is no TableLayoutPanel. And i can declare textboxes in a for cycle for example.

 

What´s the best alternative? 

 

Best Regards 

Gonçalo Batista

Posted
Updated 25-Nov-09 5:39am
v2

I have done a similar thing few years back when I was working with Compact Environment.

I dont think any layout panel is available in Compact Winforms. So you need to calculate the postion programmatically yourself.

Rather if you are making the UI from an xml file, why dont you store the exact location where the textbox will appear on the screen as well.

Whatever you do, just create one general function (like public Label getLabel()) for each control, which will return the control for you, so that it is easier to manage the UI.

 
Share this answer
 

thanks for  the help

 Best Regards 

Gonçalo Batista

 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900