简体   繁体   中英

How to lock a form in Panel Control of existing form in DevExpress?

Am developing a small project in MS Visual Studio, I used Tool called Dev Express. In that I need to place a form in Panel Control. I placed using this code

        panelControl1.Controls.Clear();
        var myForm = new newform();
        myForm.TopLevel = false;
        myForm.AutoScroll = true;
        myForm.Anchor = panelControl1.Anchor;
        panelControl1.Controls.Add(myForm);
        myForm.Show();

but that form is drag'able I want to fix it ? How to complete my task. Help me

Thank you Hans

Form -> Properties -> FormBorderStyle -> None

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM