How to modify Window Size ?

MarioBros

Client
Регистрация
19.03.2013
Сообщения
55
Благодарностей
6
Баллы
8
Hello Zenno Guys !

Since youtube do some updates, my clicks by coordinates or pictures dont work good because Youtube put new header toolbar when we are connected ... (i think it's that but maybe not)

Anyway, i found a simple trick to solve my problem, i would like change the size to the windows instance but i dont know how to do.

I read this post : http://zennolab.com/discussion/threads/start-the-instance-maximized.10793/

But i dont know where i must write that and i must change the values "Width" and "height" by the number of pixels i want?

Please, someone can tell me more details about that?

Thant you so much :-)
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
C#

Код:
instance.SetWindowSize(1680,1050);
 
  • Спасибо
Реакции: SHILY и MarioBros

MarioBros

Client
Регистрация
19.03.2013
Сообщения
55
Благодарностей
6
Баллы
8
C#

Код:
instance.SetWindowSize(1680,1050);
Thank you for your fast replay :-)

So i add new bloc with "C# code" to my project and i put this part of code in
But after i must put a variable in the bloc and where i call this variable?

Sorry if my questions look like stupid but i never used "C# Code" bloc.

Thanks you :-)
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
You just add C# action and put this code there.
1680 - width
1050 - height
 
  • Спасибо
Реакции: MarioBros

MarioBros

Client
Регистрация
19.03.2013
Сообщения
55
Благодарностей
6
Баллы
8

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
Yep)
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)