How to select one control, fix hostform size and change default control size when create new by code on form DesignerHost RRS feed

  • Question

  • Hi all,

    On Visual stidio 2010 C#, i use IDesignerHost interface to create form can design control at runtime. I have 3 question:

    Question 1: On this form, i can select all control by use MenuService with parameter is StandardCommands.SelectAll. But i can not select one control by code when i have control name or index(by click a button).

    Question 2: Can I fix form size by code then the user can not resize by drag on the age of form ?

    Question 3: When I create a control by click on Listbox then click on host form, the control was created on form but it have default size. Can I change this default size when create control.

    Can you have me!
    Thanks you very much.
    Best regard.

    Friday, October 20, 2017 9:23 AM