Page 1 of 1

Embedded designer changing form display name

Posted: Mon Jun 22, 2009 11:07 am
by robinpearce
Sorry if this is a dumn question.

In c#, if I have a form with an imbedded StiDesignerControl it appears that the designer control is taking over the Text of the form.

For example, I create a simple project, containing one form with a Text property of "Test" and containing a stiDesigner control. As soon as I launch the application the Forms text property (i.e the name shown next to the icon in the form header) is showing "Designer". If I then open TestReport.mrt the text of the form reads "TestReport.mrp - Designer". Can I stop it doing this so it just displays "Test" when I run the application.


Thanks
Robin






Embedded designer changing form display name

Posted: Tue Jun 23, 2009 6:52 am
by Jan
Hello Robin,

Please use following code:

Code: Select all

StiOptions.Designer.DesignerTitle = "Test";

Thank you.

Embedded designer changing form display name

Posted: Tue Jun 23, 2009 7:22 am
by robinpearce
I can do that but if I open TestReport.mrt the title changes to

TestReport.mrt - Designer

Surely putting a component onto a form should not effect the Text property of the form.

Thanks
Robin

Embedded designer changing form display name

Posted: Wed Jun 24, 2009 8:36 am
by Jan
Hello,

Please use following expression instead previous:

Code: Select all

StiOptions.Designer.DesignerTitleText = "Test";
Or get next prerelease build.

Thank you.

Embedded designer changing form display name

Posted: Thu Jun 25, 2009 4:15 am
by robinpearce
Thank you very much Jan