what is difference between vb and vb
TRANSCRIPT
-
8/4/2019 What is Difference Between Vb and Vb
1/21
what is difference between vb and vb.net?
Vb is to designing the forms and to run the execution of the program and vb.net is combine of c
,c++ and vb and also resining.
VB is purely window based programmng language.
.Vb.net is VB using .Net technology so that VB code can b used for web development also.
Differences between VB.Net and C#, related to OOPS concepts
c# given a run time error and vb.net give a compile time error
VB.NET is a windows application
Where as C# is a console
C# is much terser than VB.NET.
syntactical differences between VB.NET and C#.
http://www.harding.edu/fmccown/vbnet_csharp_comparison.html
What do you mean by Garbage Collection in VB.net
-
8/4/2019 What is Difference Between Vb and Vb
2/21
In .NET Framework, garbage collector is implemented as a separate thread.
This thread will always be running at the back end.
Since garbage collector always run at the back end there will be extra overhead for the memory.
Therefore garbage collector is given the lowest priority in .NET Framework. In
.NET Framework, garbage collection system is based on the Mark and Compact
algorithm that involves removing of objects that have gone out of scope and
compacts all the remaining objects at the beginning of the address space.
The space allotted for the application is also referred to as managed heap.
When a new object needs to be instantiated and if there is not enough room in the application?
s managed heap, the garbage collection process starts.
What are Enumerations in VB.NET and how are they used?
Enumerations are new in VB.Net (As apposed to VB(i)) and they are used to group related sets of
constants. To create a Enumeration you use the Enum statement. Example using a Enumeration
Module Module 1
Enum Months
January=1
Feburary=2
March=3
April=4
May=5
-
8/4/2019 What is Difference Between Vb and Vb
3/21
June=6
July=7
August=8
September=9
October=10
November=11
December=12
End Enum
Sub Main()
System.Console.WriteLine(?December is ? & Months.December &? th Month?)
End Sub
End Module
When using constant's declared in an Enumeration, you need to refer to it like so:
Months.December.
The output of the above code displays December is the 12th Month
Describe about Visual basic.NET?
-
8/4/2019 What is Difference Between Vb and Vb
4/21
This is used in conjunction with Microsoft .NET platform and is a successor to visual basic sixth version.
Visual basic is used in conjunction with.NET Framework.
This tool has a serious defect it is not compatible with Microsoft visual basic sixth version.
It has a huge library which assists programmers.
Visual Basic .NET, is an object-oriented computer programming language that can be viewed as
an evolution of the classic Visual Basic (VB), which is implemented on the .NET Framework.
What is the base class of .net?
System.Object is the base class of .NET
It Supports all classes in the .NET Framework class hierarchy and provides low-level services to derived
classes. This is the ultimate superclass of all classes in the .NET Framework; it is the root of the type
hierarchy.
Base class is a root class or superior class from which we can extend classes.it is the topmost in the
classes so other classes can be derived from this class but it is not derived from any class.Depending on
procedure base class may or may not give its objects to derived classes of it.
system.Web.UI is for asp.net
How to store and retrieve images in SQL server database through VB.NET?
-
8/4/2019 What is Difference Between Vb and Vb
5/21
QL Server supports the ability for clients to store objects within tables
Image file can be save in SQL server as a byte. Henceforth, the image is convert to a stream of byte using
the IO.Memory Stream. This stream of byte can be save in a table with image data type.
The process has to be reverse to retrieve the image from the server.
QL Server supports the ability for clients to store objects within tables
What is Anchoring and Docking?
The VB terms Docking and Anchoring are used to make sure that a control covers the whole client area
of a form.
Upon "docking" a window, it adheres to the edges of it's container (the Form). To "dock" a particular
control, select the Dock property of the control from the properties window.
Selecting the Dock property opens up a small window like structure where you can select towards which
side on the Form should the control be docked.
You can use Anchoring to "anchor" a control to the edges of it?s container (the Form). Selecting this
property in the properties window opens up a small window from where you can select what edge to
"anchor" the control to.
Name a feature which is common to all .NET languages?
There is only one feature which is common to all languages and that is Garbage collection or GC.
-
8/4/2019 What is Difference Between Vb and Vb
6/21
This feature is automated which relieves developers of much work.
This garbage is disposed only when there is need of memory or stress for memory.
GC feature halts the application for few seconds before restarting it.
Which is the tool which can convert Visual basic old version to .NET compatibility version?
There is a tool available which can convert old visual basic functions into new .NET code.
Artin soft Visual basic upgrade Companion is very useful in converting VB code into .NET code.
This tool was developed by Artin. This tool is integrated in Visual studio.NET 2005.
It handles programs such as structured handling, error handling, etc.
How to get computer name and IP address?
The following code uses the System.NET.DNS namespace to access the "computer name" and it's IP
address.
Option Strict Off
Imports system
Imports System.Net.DNS
Public Class GetIP
Shared Function GetIPAddress() As String
Dim sam As System.Net.IPAddress
Dim sam1 As String
With system.Net.DNS.GetHostByName(system.Net.DNS.GetHostName())
-
8/4/2019 What is Difference Between Vb and Vb
7/21
sam = New System.Net.IPAddress(.AddressList(0).Address)
sam1 = sam.ToString
End With
GetIPAddress = sam1
End Function
What is .net?
Net is the Development Platform which provides advanced feature facilities for
the web and window application along with the window services .
The .Net is the Middle layer between the operating System and the .Net application .
The feature of .Net that the .Net Component can talk with each other without worrying
about the language in which they are originally.. Two main components are CLR
stands for the common Language Runtime and the .Net FrameWork Base classes.
The CLR performs the task of converting the IL to native code Which gives the .Net applications
to be language Independent . The Other component Like .Net FramwWork Base Classes act
as services to be provided to the .Net applications.
Shared Sub main()
Dim shostname As String
shostname = system.Net.DNS.GetHostName
console.writeline("Name of the System is = " & shostname)
console.writeline("Your IP address is= " & GetIPAddress)
-
8/4/2019 What is Difference Between Vb and Vb
8/21
End Sub
End Class
what is .net???
.net full form is new emerging technology.it involves various languages i.e c#,visual basic,asp etc .
Posted by: kavita
Contact kavita
.net is a colection of framework.it is used to create our web pages more interactive and dynamic.it is a
platform independent language,it is an environment for building,deploying,running web service and
other application.
Posted by: reva
Contact reva
.NET is not a language it is a platform which support 29 and more than languages like c#,visual
c++,vb.net etc.
-
8/4/2019 What is Difference Between Vb and Vb
9/21
So we can make our application in any language so if we have knowledge of any of these language we
can learn .NET technology.
Posted by: Ashish
Contact Ashish
.NET is a technology which encompasses within itself 44 languages like vb.c#,c++,asp etc with the help of
which we can develop different applications..NEt is sometimes thought to be a language and sometimes
to be an Operating System but it is not so. It has 2 main components. CLR and Class Libraries.CLR is theExecution engine of .NET and class libraries contain pre coded DLL files which can be used by the
programmers in their application. Both these components are a part of the .NET Framework. .NEt
applications are developed in Visual Studio.
Posted by: Juhi Bansal
Contact Juhi Bansal
.net is a framework in which windows application may be developed and run.
Posted by: saranya
Contact saranya
.net is te development platform which used to create window,web based application..
-
8/4/2019 What is Difference Between Vb and Vb
10/21
.net is te intermediate lang bw .net application and os...
two main components are CLR and .NET FRAME WORK BASE CLASS..
CLR - Language Independent to te .net application
.NET FRAME WORK BASE CLASS - provides advance fecility to te .Net application..
Posted by: gopi
Contact gopi
.Net is a software. framework that includes everything required for developing software for web
services.It integrates presentation technologies,component technologies and technologies on a single
platform.
Posted by: Rajesh kunwar
Contact Rajesh kunwar
.net is a platform for the development of daynamic web pages and widow based application.
Posted by: supriya
Contact supriya
-
8/4/2019 What is Difference Between Vb and Vb
11/21
vb.net is a good development platform for creating web based and windows based application and also
create server based application.
It is easy to create and connect to database.
Posted by: Mohanraj.rvscas
Contact Mohanraj.rvscas
vb stand for visual basic. visual part refers to the way used to create the GUI base application.
Posted by: Ratnesh Agrawat
Contact Ratnesh Agrawat
.Net stands for NetworkEnabledTechnology.It is a framework.That is,It is a collection of all languages to
implement the enterprise application senario.
Can any body tell me the code procedure for preparing parameterized cristel reports.the report should
be generated by taking to or more parameters.
example: report should be genarated FROM DATE to TODATE
Create report with a view,and pass sql with fromDate and todate.
Private Sub display()
-
8/4/2019 What is Difference Between Vb and Vb
12/21
cr.Close()
cr1.Close()
mDt1 = DTP1.Value.Date.ToString("yyyy/MM/dd")
mDt2 = DTP2.Value.Date.ToString("yyyy/MM/dd")
Dim ParamField As New CrystalDecisions.Shared.ParameterField
Dim ParamField1 As New CrystalDecisions.Shared.ParameterField
Dim paramFields As New CrystalDecisions.Shared.ParameterFields
Dim paramDescreteValue As New CrystalDecisions.Shared.ParameterDiscreteValue
Dim paramDescreteValue1 As New CrystalDecisions.Shared.ParameterDiscreteValue
ParamField.ParameterFieldName = "mDt1"
ParamField1.ParameterFieldName = "mDt2"
paramDescreteValue.Value = mDt1
paramDescreteValue1.Value = mDt2
ParamField.CurrentValues.Add(paramDescreteValue)
ParamField1.CurrentValues.Add(paramDescreteValue1)
paramFields.Add(ParamField)
paramFields.Add(ParamField1)
CrystalReportViewer1.ParameterFieldInfo = paramFields
-
8/4/2019 What is Difference Between Vb and Vb
13/21
CrystalReportViewer1.ReportSource = cr
End Sub
Explain about visual basic?
Visual basic is associated with the IDE of Microsoft. It is basically useful to implement RAD of GUI.
Creation of Active X scripts are very easy and efficient through VB.
Windows API can also be used to create application on windows desktop and its applications.
This was primarily designed to create applications for windows platform.
Name and explain some of the exclusive features which are present in VB?
Some of the features which are exclusive to VB are as follows: -
1) Name space can be hidden which can be disabled.
2) Certain project files can be hidden and a user can show them if he intends to do.
3) Lots and lots of shortcuts are present which ease the development of programs.
4) Using the AddressOf myObject function a delegate can be made.
What is different between Web.Config and Machine.Config and Where it will be ?
-
8/4/2019 What is Difference Between Vb and Vb
14/21
The ASP.NET Web.config file is used to define the configuration settings for an ASP.NET application.
ASP.NET and the .NET Framework use .config files to define all configuration options. The .config files
including the ASP.NET Web.config file are XML files. The ASP.NET application configuration settings can
be changed by creating a file called Web.config and saving it in the root folder of the application.This ishow the minimal Web.config file should look like:
The first line of the Web.config file is the same as the first line for any .config file and specifies that this
is an XML document with utf-8 character encoding type.
There are 2 important characteristics of the Web.config file. The first one is that if you change your
Web.config file you don?t need to re-compile your ASP.NET application.
The second one is that the Web.config file cannot be viewed in directly in a browser.
Server-wide configuration settings for the .NET Framework are defined in a file called Machine.config.
The settings in the Machine.config file can be changed and those settings affect all .NET applications on
the server.what if the Machine.config file defines different settings than the ones defined in your
Web.config file? The settings in the Web.config file override the settings in the Machine.config file.
Machine.Config avaialble where the .NET framework is located "....../config" and Web.Config available in
root folder of that specific .NET application.
-
8/4/2019 What is Difference Between Vb and Vb
15/21
difference between table and view??
Table: A table is defined as set of rows, a table
describes an entity.
View : view is a logical table ,which is defined as one or
more tables,a view is never stored in to database, when we
define view a view definition is stored in to dase
table,views are mainly used for security & information hiding
find out first highest salary?
select * from emp where &n-1=(select count(distinct sal)
from emp e where emp.sal
-
8/4/2019 What is Difference Between Vb and Vb
16/21
Re: Table E: Name dept month sal 1 A JAN 800 2 B APR 1000 3 A JAN
300 4 A JAN 600 5 C JUN 400 1) SELECT HIGHEST SAL PAID DEPT IN JAN
MONTH? 2) WRITE QUERY GET MAX SAL DEPT NO?
Answer
# 2
1) SELECT DISTINCT DEPT FROM TABLE
WHERE SAL >=
(SELECT MAX(SAL) FROM TABLE
WHERE MONTH = 'JAN');
2) SELECT DISTINCT DEPT, SAL FROM TABLE
WHERE SAL >=
(SELECT MAX(SAL) FROM TABLE);
Re: How to Remove the 3rd highest salary person record from table?
Answer
# 1
select max(salary)from employees
where
salary < (select max(salary)from employees where
salary < (select max(salary) from employees))
-
8/4/2019 What is Difference Between Vb and Vb
17/21
//
delete from employees where employee_id in (select
employee_id from employees where 3 =(select count(distinct
e.salary) from employees e
where e.salary >= employees.salary));
Re: WHAT IS THE DIFFERENCE BETWEEN PRIMARY KEY(PK) CONSTRAINT AND UNIQUE KEY(UK) + NOT
NULL(NN) CONSTRAINT ASSIGN TO A COLUMN ? INSTEAD OF ASSIGNING PK ,
WE CAN ASSIGN UK + NN TO A COLUMN. WHAT ARE THE MARRITS AND DEMARITS BETWEEN THE
ABOVE TWO?THE ABOVE TWO ARE SAME,THEY DON'T ALLOW DUPLICATE AS WELL AS NULL VALUES.
Answer
# 3
1.you can assign UK + NN TO A COLUMN behave like PRIMARY KEY(PK)
but (UK + NN) can not make any relation with any other table.
where as PRIMARY KEY(PK) can make relation with others tables.
By default primary key maintain clusterd index,All the
records are stored in stored order.By takeing this
advantage query will be execute fast.
Unique maintain nonclusted index,All the records are not in
stored order.
-
8/4/2019 What is Difference Between Vb and Vb
18/21
Primary key can be assigned to only 1 column in the table but
this is not with unique key
And UK allow duplicate value but PK does not .
Re: In Oracle 10g, "g" Stands for what?
Answer
# 1
The "g" in oracle 10g/ 11g stands for the "Grid Computing".
Grid Computing is a concept in which the resources are
allocated to the networked users according to their needs.
Whenever a user is connected to the Oracle Database, it
computes the statistics and use of database by the user and
then provide the resources according to the usage by
independent user in the networked environment. In this
scenario the database become more scalable, available, high
in performance and more cost effective.
For instance, take a look at the high power electric grid
stations in your city. These power stations stores high
electric power of thousands volts but our appliances at home
consumes only up-to 220V. These stations gives us the power
we need to use. The rest is transmitted forward to the other
-
8/4/2019 What is Difference Between Vb and Vb
19/21
stations.
Re: According to oracle specification VIEW is a object. OBJECT that means anything stored in the oracle
database that has the physical existence.why VIEW doesn't take memory in oracle database, but it is
treated as a object ?Please explain ?
Answer
# 1
A view is a SQL query which is stored in the Oracle data
dictionary.We can think of a view as a virtual table or
mapping of data from one or more tables.Since it is stored
in Oracle's Data Dictionary,it is treated by Oracle as an
Object.
Remember:Views do not contain any data - it is just a stored
query in the database that can be executed when called.
???????????????????///
If server is in US and client is in india there is timezone is diffrence, How can we display date in indian
time when data is displayed from US server timezone?
Answer
# 1
u can use 'to_char' function.
-
8/4/2019 What is Difference Between Vb and Vb
20/21
to_char('us date','indian date format model')
What do you mean by 'Option Strict On' ?
Option Strict
Visual Basic language in general does not require explicit syntax to be used when performing
operations that might not be optimally efficient (e.g. late binding) or that might fail at run time
(e.g. narrowing conversions). This permissive semantics often prevents detection of coding errors and
also affects the performance of the application.
VB.NET enables a programmer to enforce strict semantics by setting this option to "On".
When used, this option should appear before any other code. This option can be set to "On" or "Off".
If this statement is not specified, by default, it is set to "Off".
Syntax: Option Strict [On / Off]
When it is set to "On", it disallows any narrowing conversions to occur without an explicit cast operator,
late binding and does not let the programmer omit "As" clause in the declaration statement. Since
setting it to "On"
requires explicit conversion, it also requires that the compiler be able to determine the type of each
variable.
-
8/4/2019 What is Difference Between Vb and Vb
21/21