Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I want to print all properties of a textbox in separate file.
control may change to butoon or listbox or checkbox from textbox.
so, I want to print all control properties in separate file.

Thanks in advance.
Posted

Well, you need to design a UI where all the needed properties will be shown based on selected control. You can give print feature of this UI then.

OR

Loop through all the properties of a given control, probably add one by one to them to a table and then print that table - all by code internally.

Try!
 
Share this answer
 
To add to Sandeep's answer, you can automate this using Reflection. Just fetch all the public properties along with their values.
 
Share this answer
 

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