Window vs User Control

user360330 picture user360330 · Apr 24, 2011 · Viewed 20.1k times · Source

Is there a difference between window and user control? It seems to me that these two are exactly the same. So which one should I use and when? (I tried googling this phrase and I couldn't find anything)

Answer

H.B. picture H.B. · Apr 25, 2011

A Window is as the name suggests a window, it can be closed, minimized, resized etc. This should be quite intuitive.

A UserControl on the other hand is a composite component/module which can be placed inside other controls and is itself made up of controls (possibly even other UserControls), the main use for UserControls is reusability, encapsulation and loose coupling, some applications can be broken up into a set of UserControls of which each one provides a certain functionality.[citation needed]