Embedded designer changing form display name

Сonversation on different topics
Post Reply
robinpearce
Posts: 38
Joined: Thu Apr 02, 2009 5:54 am

Embedded designer changing form display name

Post 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





Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Embedded designer changing form display name

Post by Jan »

Hello Robin,

Please use following code:

Code: Select all

StiOptions.Designer.DesignerTitle = "Test";

Thank you.
robinpearce
Posts: 38
Joined: Thu Apr 02, 2009 5:54 am

Embedded designer changing form display name

Post 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
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Embedded designer changing form display name

Post by Jan »

Hello,

Please use following expression instead previous:

Code: Select all

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

Thank you.
robinpearce
Posts: 38
Joined: Thu Apr 02, 2009 5:54 am

Embedded designer changing form display name

Post by robinpearce »

Thank you very much Jan
Post Reply