| |

VerySource

 Forgot password?
 Register
Search
View: 1140|Reply: 8

What is a component? What are controls?

[Copy link]

2

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-1-27 13:20:01
| Show all posts |Read mode
What is a component? What are controls? What is the difference between the two?

Thank you
Reply

Use magic Report

0

Threads

29

Posts

23.00

Credits

Newbie

Rank: 1

Credits
23.00

 China

Post time: 2020-2-20 22:45:01
| Show all posts
One has an interface, one does not, ^ _ ^
Reply

Use magic Report

0

Threads

58

Posts

32.00

Credits

Newbie

Rank: 1

Credits
32.00

 China

Post time: 2020-2-21 07:45:02
| Show all posts
Don't slap these two words, look at specific things, what you want to say is what it is.
Reply

Use magic Report

0

Threads

43

Posts

29.00

Credits

Newbie

Rank: 1

Credits
29.00

 China

Post time: 2020-2-21 10:45:01
| Show all posts
Component = 1 group of controls
Don't understand
Reply

Use magic Report

0

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-2-23 00:15:01
| Show all posts
Component refers to some dynamic link libraries. The code we usually write can directly compile and produce .exe executable files. At the same time, it can also generate dll components. The advantage of producing dll components is that they can call the functions in dll in another program. This is useful for implementing modular software Great help in development

Controls (for ASP.net) Controls in asp.net can be understood as some powerful web page elements such as: text input boxes, buttons, tables, etc. Asp.net is divided into html controls and web controls.
  htmlspaces (htmlcontrols) are mainly executed in the foreground and webcontrols (webcontrols) are mainly executed in the background
 Several controls can be combined together to form a user-defined control with its own functions
Reply

Use magic Report

0

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-3-1 14:15:02
| Show all posts
A component is a class that implements an interface or a class derived directly or indirectly. It is usually used for reusable objects and can interact with other objects.
Controls are components that provide (or implement) user interface (UI) functionality.
Each control is a component, but not every component is a control.
Reply

Use magic Report

0

Threads

64

Posts

35.00

Credits

Newbie

Rank: 1

Credits
35.00

 China

Post time: 2020-3-1 20:30:01
| Show all posts
Basically understandable on asp.net:

Component. The main emphasis is on features rather than interfaces. Page is also a component, often used in HttpHandler.ProcessRequst, HttpServer.Execute and other places.

Controls-webControl, htmlControl, userControl, or component with a more obvious interface performance at runtime.

A control is a special component.
Reply

Use magic Report

0

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-3-4 08:30:01
| Show all posts
A control is a special component. -----error
Component = 1 group of controls --------------- too general

A control is a component, not special, every control is a component
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-26 19:45:01
| Show all posts
If the class you develop is called a component according to everyone's standards, it can be called a component. This is the same no matter which language.

A control is actually a component. In my impression, it should refer to a component with an interface. As for whether it is a special component, it's up to you. I don't think it is special or not. The key is whether you understand it.

In my opinion, when you think components and controls can be mixed, you understand it.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list