170k views
4 votes
Different between form & panel control in vb.net.

\\
Thanks !​

1 Answer

5 votes

Answer

below is short explanation Different between form & panel control in vb.net:

  • functionality: form is the primary container for a GUI application, and it is used to create and manage the main window of the application. A form provides various properties and events that enable the developer to customize its appearance, behavior, and functionality. On the other hand, a panel control is used to group related controls within a form or another container control. It provides a background area on which other controls can be placed.
  • appearance: form control has a title bar and system buttons for minimizing, maximizing, and closing the window. It can also have a border and a background image. In contrast, a panel control has no title bar or system buttons. It is just a rectangular area with a background color or image.
  • placement: form control can be placed anywhere on the screen, and it can also be resized and moved at runtime. It can also be opened and closed as a modal or modeless dialog. In contrast, a panel control is always placed within a form or another container control. It cannot be opened or closed independently of its container.
  • events: both form and panel controls provide events that can be used to handle user actions and other events. However, the events provided by a form control are related to the window, such as resizing, moving, closing, or activating. The events provided by a panel control are related to the controls placed on it, such as mouse click, mouse hover, or scroll.

User Nick Roz
by
8.4k points