Click here to Skip to main content
15,891,567 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In the vb.net I am using following code for access another forms control

VB
dim rrview as new frmReportViewer
rrview.CrystalReport1.DisplayGroupTree = False
rrview.MdiParent = MyBase.MdiParent
rrview.Show()
rview.CRViewer.Zoom(90)


Like this I want access another webform controls in asp.net with C#. How to do it..

Please help me.

Thank you
Posted

1 solution

Don't. It is a bad idea as it ties the two forms internal design together - you cannot change one without considering the affects of any changes on the other (possibly unknown) form. Use public properties and methods to expose only those parts of the form that it needs to - not a CrystalReport object, but a method ShowReport(false) or a ShowReport = false property instead.
 
Share this answer
 
Comments
ProEnggSoft 29-Mar-12 5:20am    
Good advice. 5!

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