Saturday, May 22, 2010

How I can resize or move a component in runtime (C#.Net)?

to change the size of a component for ex:Textbox





declare two variables





Htextbox and Wtextbox :height-width textbox





then set property to those variables for ex:





Htextbox=textbox1.size.height


Wtextbox=textbox1.size.width





then send value to those variables





Htextbox=200


Wtextbox=200





then run your project,you can change your textboxs' size at runtime





Good Luck

How I can resize or move a component in runtime (C#.Net)?
you can change a components properties from a code behind page.





client side you can use javascripting for certain things, so a postback won't be required.





keep in mind javascript won't have access to the C# objects - that's only possible in the code behind


No comments:

Post a Comment