new to pc development

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hello,

what is the difference between coding in a class item versus a component
item? This is where you add a new item to a project.

thanks,
mattie
 
mattie said:
what is the difference between coding in a class item versus a component
item? This is where you add a new item to a project.

The simple answer would be that a class can have a user interface (UI), like
a form, or a textbox are examples of classes. A component usually does
not have the UI, like a dataset, or timer....

LFS
 
mattie said:
what is the difference between coding in a class item versus a component
item? This is where you add a new item to a project.

Components are classes too. They only inherit from a special base class
('System.ComponentModel.Component'). Components are placed in the
components tray in the Windows Forms designer when being dragged onto a form
in design view. They don't provide an UI, for example, Timer,
FileSystemWatcher, ...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top