cancel
Showing results for 
Search instead for 
Did you mean: 

Using InitialFocus Property to Get Rid of Dotted Margin Border

ido_millet
Active Contributor
0 Kudos

In my testing, none of the possible values for the InitialFocus property of the .NET Crystal Viewer Control can get rid of the initial dotted gray border indicating the page margins (see image below). The user has to manually click inside the page to select another object or click outside on a different control to get rid of that border.

That property was added (thanks to Don Williams) in response to a similar question years ago.
Has anyone managed to get rid of that border on initial preview? If so, how?

View Entire Topic
ido_millet
Active Contributor
0 Kudos

Thanks, Don.
Since it works for you, I'll mark it as solved.

Perhaps it's a question of method call timing the calls but for me even that variation doesn't work.
Also, it makes no sense that a control property exposed through the designer for the control has to be called in code in unexpected places. It should work either by simply setting the property in the designer or by setting it once in the parent form load event.