Skip to main content

Differences

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

Popular posts from this blog

Robot

Robot is drawn from an old Church Slavonic word, robota, for “servitude,” “forced labor” or “drudgery.” The word, which also has cognates in German, Russian, Polish and Czech, was a product of the central European system of serfdom by which a tenant’s rent was paid for in forced labor or service. The word robot was coined by artist Josef Čapek, the brother of famed Czechoslovakian author Karel Čapek. As a word, robot is a relative newcomer to the English language. It was the brainchild of a brilliant Czech playwright, novelist and journalist named Karel Čapek (1880-1938) who introduced it in his 1920 hit play, R.U.R., or Rossum’s Universal Robots. The robots in this play were not what we would call robots today, and they weren’t made of steel, plastic, and lines of code. Those robots were manufactured as pseudo-organic components out of a substance that acted like protoplasm in a factory, then “assembled” into humanoids. Watch video --> Saudi Arabia grants citizenship to huma...

The 120 year old light bulb that never been turned off.

Light bulb that never been turned off since 1901. ivermore's Centennial Light Bulb The Centennial Light is the world's longest-lasting light bulb, burning since 1901 , and almost never switched off. Due to its longevity, the bulb has been noted by The Guinness Book of World Records , Ripley's Believe It or Not!, and General Electric.  The Centennial Light was originally a 30-watt(or 60-watt) bulb, but is now very dim, emitting about the same light as a 4-watt nightlight. The hand-blown, carbon-filament common light bulb was manufactured in Shelby, Ohio, by the Shelby Electric Company in the late 1890s and was invented by Adolphe A. Chaillet. The hand-blown, carbon-filament common light bulb was invented by Adolphe Chaillet, a French engineer who filed a patent for this technology. It was manufactured in Shelby, Ohio, by the Shelby Electric Company in the late 1890s; many just like it still exist and can be found functioning. According to Zylpha Bernal Beck, the bulb was...

Wireless power transfer

Wireless power transfer Inventor and engineer Nikola Tesla, 'the man who invented the 20th century' theorized about wireless electricity back in the 1890s. He even demonstrated the principle by lighting up glass tubes with wireless power transmission. Nikola Tesla wanted to create the way to supply power without stringing wires. He almost accomplished his goal when his experiment led him to creation of the Tesla coil. It was the first system that could wirelessly transmit electricity. Wireless power transfer (WPT), wireless power transmission, wireless energy transmission (WET), or electromagnetic power transfer is the transmission of electrical energy without wires as a physical link. Wireless power transfer (WPT) is one of the hottest topics being actively studied, and it is being widely commercialized. In particular, there has been a rapid expansion of WPT in mobile phone chargers, stationary charging electric vehicles (EVs), and dynamic charging EVs, also called road-po...