[Sv] - Can i resize Form and other controls simultaneous?

Hi,
I want to scale the Form but provided that the controls proportional in that direction, how can I do it?

14 Replies

VS Vijayarasan Sivanandham Syncfusion Team May 4, 2020 02:07 PM UTC

Hi Khanh Dang,

Thanks you for contacting Syncfusion support.

We are unable to understand your query. Can you please provide the more information related to your query.
 
It will be helpful for us to check on it and provide you the solution at the earliest.

Regards,
Vijayarasan S

 



TG The GridLock May 4, 2020 02:30 PM UTC

Hi Vijayarasan,
Normally when I change the width, height of the Main form, some control (textbox, ...) doesn't change size accordingly.
Is it possible to link them into one block?



VS Vijayarasan Sivanandham Syncfusion Team May 5, 2020 03:57 PM UTC

Hi Khanh Dang, 
Thank you for your update.

Your requirement can be achieved by set the Anchor property to resizing control (Textbox,SfDataGrid,...)in form. Please refer the below code snippet,
 
this.sfDataGrid1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)  | System.Windows.Forms.AnchorStyles.Left)  
            | System.Windows.Forms.AnchorStyles.Right))); 
We hope this helps. Please let us know, if you require further assistance on this. 

Regards,
Vijayarasan S
 



TG The GridLock May 5, 2020 06:23 PM UTC

Hi Vijayarasan,
Thanks for the sample file. I will try it soon.


VS Vijayarasan Sivanandham Syncfusion Team May 6, 2020 05:37 AM UTC

Hi Khanh Dang

Thanks for the update.
 
 
We will wait to hear from you. 
 
Regards, 
Vijayarasan S 



TG The GridLock May 8, 2020 02:08 AM UTC

That's it ! Vijayarasan.




VS Vijayarasan Sivanandham Syncfusion Team May 8, 2020 05:45 AM UTC

Hi Khanh Dang,

We are glad to know that the reported issue has been resolved. Please get back to us if you have any other queries. As always, we will happy to assist you
😊

Regards,
Vijayarasan S




TG The GridLock June 12, 2020 03:26 PM UTC

Hi Vijayarasan,
If I set form.border = none, can I do this? I don't want the title to exist.
Update: can you explain more this?
when I resize the form, there is always a black color area. can i avoid it or can transparent everything inside!




VS Vijayarasan Sivanandham Syncfusion Team June 12, 2020 04:57 PM UTC

Hi Khanh Dang ,

Thanks for the update.

Please find answer for your queries below 
Queries 
Solutions 

If I set form.border = none, can I do this? I don't want the title to exist.
 

Your requirement can be achieved by set  Zero value to RowHeight Property in Titlebar. Please refer the below code snippet,

 
public  Form1() 
{ 
            InitializeComponent(); 
            this.Style.TitleBar.Height = 0; 
} 


 
 
when I resize the form, there is always a black color area. can i avoid it or can transparent everything inside! 
We could able to reproduce your reported issue “When I resize the form, there is always a black color area” from our end. Currently, we are checking the feasibility to fix this issue from our end. We will validate and update you details on June 16, 2020. 
 

Regards,
Vijayarasan S




TG The GridLock June 14, 2020 12:59 AM UTC

hi,
if I use resize, then hide and show the form, my background completely disappears (they are not redrawn) the sfcombobox and sflabel are also gone. 
(I have tried with sfform and the form has the same result.)
how to force all redraw after form show? (me.refresh didn't work).


VS Vijayarasan Sivanandham Syncfusion Team June 16, 2020 03:10 AM UTC

Hi Khanh Dang,

Thanks for the update.

Base don provided information we have try to replicate issue but issue not reproduced. Please refer the below screen shot for your reference,



Can you please share us below things?
       
        1. Brief replication procedure/video illustration of the reported issue

        2. Code snippet related to customization in form
       
It will help us to investigate further and provide appropriate solution at earlier.

Regards,
Vijayarasan S





VS Vijayarasan Sivanandham Syncfusion Team June 16, 2020 04:44 PM UTC

Hi Khanh Dang,

Thank you for your patience.

Query: when I resize the form, there is always a black color area. can i avoid it or can transparent everything inside?

We have checked the issue. If you resize a window it has to redraw. This takes some time and also we have made appearance change by overriding the MSDN form. So, this issue is unavoidable. And we have checked the possible ways to reduce the flickering, but it doesn’t helps. we have provided the link which we have referred.  
Regards,
Vijayarasan S




TG The GridLock June 16, 2020 08:45 PM UTC

Ok Vijayaraan , I got it.


SS Susmitha Sundar Syncfusion Team June 17, 2020 07:00 AM UTC

Hi khanh dang, 
 
Please let us know if you have any further queries on this. We are happy to help you. 
 
Regards, 
Susmitha S 


Loader.
Up arrow icon