Label and Textbox Controls
Sr. No. |
Labels |
Textbox |
1) |
Labels usually used to display text that cannot be edited by user at runtime | Textbox used to display & edit the text at runtime |
2) |
A label is a text field that displays static text. A label helps the user understand what type of information they should enter. | We can actually enter text(data) and modify it in textbox at runtime |
3) |
A label is meant to be used beside a text box to make a user understand what is to be entered in that text box. | Textbox is used normally for user input. |
4) |
The contents of a label is not to be directly modified. | The contents of a text box is for the user to modify. |
List box and Combo box
Sr.No. |
List box |
Combo box |
1) |
The list box control displays a list of values or choices. Simple view like text box | The combo box control provides a more compact way to present a list of choices. View like dropdown list. |
2) |
Read & Select only. | Provides Read & Select & Write. A Combo Box is a combination of list box and edit control. |
3) |
Provides Single / Multiple selection | Only one selection |
4) |
Occupies more space but shows more than one value. | Occupies less space but shows only one value for visibility. |
5) |
The list box contains rows of data, and is usually sized so that several rows are visible at all times. | The list is hidden until you click the drop-down arrow. |
6) |
The user is limited to the choices given in the list box; it is not possible to type a value into a list box. | A combo box also gives you the ability to enter a value that is not in the list. |
Radio Buttons and Check box
Sr.No. | Radio Buttons | Checkbox |
1) | Used to accept value by providing list of choices | Used to accept data / input by providing list of options |
2) | Radio button will result in single value. It is used when you want to limit the users choice to just one option from the range provided. | Result is in multiple values. It is used when you want to allow user to select multiple choices. |
3) | Having only two states check or uncheck | Having three states check / uncheck / interminant |
4) | Radio button are intended to work in groups | CB work independently |
5) | When we select a Radio button in a group other are automatically deselected | This is not done, all remains same state |
Textbox and Rich Text box
Sr. No. | Textbox | Rich Text box |
1) | The Textbox control is an input control, which allows a user to enter text to an application at runtime. | This is same but having formatting features. A RichTextBox mainly used if you want more control over styling the text color, type, font, alignment… |
2) | A Textbox requires less system resources. | A RichTextBox and it is ideal when only plain text needs to be edited. |
3) | Max size in single line 2048 char. In VB multiple 32kb | Size depends on OS |
4) | We cannot load files & embedded images | We can do in RTB |
5) | We cannot find specified char in textbox | We can find char, words |
6) | By default single line. A Textbox is basically used to display or get one line input. | IT is multiline textbox |
7) | Technical difference is that Textbox supports DataBinding. | RichTextBox does not supports. |
EXE and DLL
Sr. No. | EXE (Executable) | DLL (Dynamic Link Library ) |
1) | Exe are self executable. | DLL cannot be executed standalone. |
2) | Contains main function | Doesn't contain main fun |
3) | An EXE file can be run independently. | A DLL is used by other applications |
3) | It consume other component i.e. DLL files & other | DLL are used into other DLL components or into exe. It cannot consume exe file |
4) | Provides reusability & interoperatibility | Doesn't provide |
5) | It is outprocess i.e. it load into separate process & provide service to client. An EXE creates its separate process and memory space. | It is inprocess i.e. it loaded in client application process. A DLL would share the same process and memory space of the calling application. |
Structure and Class
Sr. No. | Structure | Class |
1 | Structure is a collection of different types of data type. | Class is group of common objects that share common properties and relationships. |
2 | Structure are value type i.e. they are stored on stack | Classes are reference type i.e. they are stored on heap |
3 | Structure can not be inherited. | Class can be inherited. |
4 | Support only constructor with parameter | Supports with & without parameter |
5 | Faster to access | It is slower to access. |
6 | Recommended where there is less amount of data & inheritance will not required | Recommended where large amount of data available |
7 | Structure members are public by default. | Class members are private by default. |
8 | Structure elements cannot be declared as protected | Class elements can be declared as protected |
9 | Structure are not terminated i.e. GC does not call finalize method for them | Classes are terminated i.e. GC does call finalize method for them |
Call by value and Call by reference
Sr.No. | Call by value | Call by reference |
1 | We actually send value of a variable to calling function. | We actually send reference of a variable to calling function. |
2 | This method copies the value of an argument into the formal parameter of that function. | This method copies the address of an argument into the formal parameter. |
3 | Whatever changes made on formal parameter that will not effect on actual parameter. | Whatever changes made on formal parameter that will effect on actual parameter. |
3 | In this function creates its own copy of argument value & uses them | In this cannot create copy. |
4 | It is not alias & can be access only by formal name | Reference is alias for predefined & can be access by both original & reference name |
5 | Default in many programming languages like VB.NET, and C#.NET, C++, PHP. | Default in many programming languages like Java, VB |
Comments
Post a Comment