User Control and Custom Controls in .NET world

Discussion in 'Programming' started by m.iqbalkh, Dec 15, 2009.

  1. #1
    What is major difference between User Control and Custom Controls in .NET world. What is the difference for their configuration. In how many way we can configure them. Will be better if explain with code samples.
     
    m.iqbalkh, Dec 15, 2009 IP
  2. NeoCambell

    NeoCambell Peon

    Messages:
    456
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    There are two types of controls:

    Custom Controls: Controls that display UI by making calls to a Graphics object in the paint event. Custom controls typically derive from RichControl. A Chart control is an example of a custom control. There is limited design time support for creating custom controls.

    User or Composite Controls: Controls that are composed of other controls. User Controls derive from UserControl. A control that displays a customer address using TextBox controls is an example of a User Control. There is full design time support for creating user controls using the WinDes application.

    check http://support.microsoft.com/kb/893667 for more details.
     
    NeoCambell, Dec 16, 2009 IP
  3. m.iqbalkh

    m.iqbalkh Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks Neo. nice explanation
     
    m.iqbalkh, Dec 16, 2009 IP