Hi, I have some textboxes in pageHeader which may have grown. If they have grown I need to expand the pageHeader.Height accordingly. But at runtime I can only see the initial height for a textbox. How can I find the correct height for a textbox?
The textbox is populated in the .ctor for the report.
public myReport(object[] params){
InitializeComponent();
if(.... some params checks)
txtHeader.Value += "Filter1" + Environment.NewLine
//Here I want to add the height of the pageHeader... something like
pageHeader.Height = txtHeader.Height + new Unit("2cm"); //does not work since txtHeader.Height always equals the height set in designtime...
rgds
john even pedersen
The textbox is populated in the .ctor for the report.
public myReport(object[] params){
InitializeComponent();
if(.... some params checks)
txtHeader.Value += "Filter1" + Environment.NewLine
//Here I want to add the height of the pageHeader... something like
pageHeader.Height = txtHeader.Height + new Unit("2cm"); //does not work since txtHeader.Height always equals the height set in designtime...
rgds
john even pedersen