ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories >> Software >> Microsoft-Related >> VB.NET
 
 


 

Back to Questions Page
 
Question
diff b/w windows and console application?
Rank Answer Posted By  
 Question Submitted By :: Sntcsanthosh
I also faced this Question!!   © ALL Interview .com
Answer
difference between a console application and a Windows 
application is the way in which the program gets user 
input. A console application gets keyboard input through 
the Console.Read or Console.ReadLine methods; a Windows 
Forms application gets keyboard (and other) input through 
events.
 
0
Subhash - Netedge Computing
 
 
Answer
windows forms provide the graphical user interface (GUI) 
where as console is the character user interface(CUI)
you have to use the hard code to develope the application 
using console, lots of thing you must remember where as the 
windows forms development is more user friendly and easy to 
use.
 
0
Vikas Ku Gupta
[NTTF]
 
 
Question
wht is the use of console application?
Rank Answer Posted By  
 Question Submitted By :: Sntcsanthosh
I also faced this Question!!   © ALL Interview .com
Answer
Console Applications are command-line oriented applications
that allow us to read characters from the console, write
characters to the console and are executed in the DOS
version. Console Applications are written in code and are
supported by the System.Console namespace.
 
0
Uma N
 
 
 
Answer
Console applications are command line applications.We have 
to give inputs through keyboard without use of mice.But, in 
windows applications, users should give inputs through mice 
without use of keypad.
 
0
P.sivaranjanikamaraj
[NTTF]
 
 
Answer
it is very speed..we can use this application for billing
pupose
 
0
Ss
[NTTF]
 
 
Question
how to send data to exe file?
my code has a button when i press it, an exe file will open.
how can i send data as input to the exe file?
Rank Answer Posted By  
 Question Submitted By :: &1605;&1575;&15
I also faced this Question!!   © ALL Interview .com
Answer
use following code in button click event
System.Diagnostics.Process.Start(@"\write physical path of 
exe file");
 
0
Find_kk
 
 
Answer
Sorry, in the above code, after file name you can give 
comma seperated values of arguments which you want to pass 
as input value in exe file,
 
0
Find_kk
 
 
Question
Write a program for calculator in VB.NET
Rank Answer Posted By  
 Question Submitted By :: Vijay_it4all
This Interview Question Asked @   CMC , Subex, NIIT, Ibm
I also faced this Question!!   © ALL Interview .com
Answer
Shell("C:\WINDOWS\system32\calc.exe", 
AppWinStyle.NormalFocus)
 
5
Tapti
 
 
Answer
Shell("C:\WINDOWS\system32\calc.exe", 
AppWinStyle.NormalFocus)
 
0
Sreeranjith C.k
 
 
Answer
Shell("C:\WINDOWS\system32\calc.exe", 
AppWinStyle.NormalFocus)
 
5
Ajit Kawade
 
 
Answer
Shell("c:\WINDOWS\system32\calc.exe",AppWinStyle.NormalOcus)
 
0
Jagriti Sinha
 
 
Answer
Shell("C:\WINDOWS\system32\calc.exe", 
AppWinStyle.NormalFocus)
 
0
Ho
 
 
Question
How to create Crystal Report in vb.net with coding
Rank Answer Posted By  
 Question Submitted By :: Muthu
This Interview Question Asked @   Ascent , Tcs
I also faced this Question!!   © ALL Interview .com
Answer
just configure the report datasource by database
 
1
Pp
 
 
Question
What are the objects in asp.net and tell the purpose of
those objects
Rank Answer Posted By  
 Question Submitted By :: Muthu
This Interview Question Asked @   Ascent
I also faced this Question!!   © ALL Interview .com
Answer
There are 5 objects in asp.net


  1.Response:This object is to response to other eg:

  2.Request:This object is request from server
  
  3.Application: This object is store global information of
application.

  4.Session:This object used store the values into variable.
  
  5.Server:
 
0
Dhasaradhan
 
 
Answer
there are six object in asp.net.

6.object context object.
 
0
Kumanan
 
 
Question
I want to sample Hotel management project in vb.net because 
still now i am doing that project for small hotel....so please  
send me my email id is jmuthu_pearls@yahoo.com...
Rank Answer Posted By  
 Question Submitted By :: Muthu
I also faced this Question!!   © ALL Interview .com
Answer
i am student of BCA and i am making project on hotel 
management in vb.net.i want to know some more categories 
that are available in hotel with database.
 
0
Harpreet Kaur
 
 
Answer
i am bca student .I want to sample Hotel management project 
in vb.net because 
still now i am doing that project for small hotel.the front 
end is vb6.0 and back end is oracle or sql
 
0
Umesh
 
 
Question
In Datagrid after adding row, how you will assign the value 
for each cell to currently added new row?
Rank Answer Posted By  
 Question Submitted By :: Dilipsm17@rediffmail.com
I also faced this Question!!   © ALL Interview .com
Answer
I will write code of value assignment in UserAddedRow event 
of grid.

eg.

Name of grid -grdSticker.
const iRollNo as integer=0

grdsticker.rows(e.rowindex-1).cells(iRollNo).value=7
 
0
Prajakta
 
 
Question
what is the base class of .net?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
System.Object
 
0
Swaroop Roy
 
 
Answer
system.web.ui
 
1
Is
 
 
Answer
System.Object is base class of .NET
 
0
Jayesh Patel
 
 
Answer
system.data.sqlclient 
this is the base class for .net
 
0
Gopal
 
 
Answer
Page Class
 
0
Bipin
 
 
Answer
System.Object Is The Base Class Of All Derived in .net
 
0
Balaji Karpurapu
 
 
Question
1.wht is satellite assembly???
2.How Garbage Collector works can u explain ????
Rank Answer Posted By  
 Question Submitted By :: Aseem
This Interview Question Asked @   ABC
I also faced this Question!!   © ALL Interview .com
Answer
1.through satellite assembly we can develop assembly and 
(if we want to use in any language like chines,etc and we 
can use it anywhere}


2. garbage collector run after a particuler point of time 
may depends on memory requiremtnt or time
first garbage collector check unused resources from memory
from generation first(which is L2 cache)and then find any 
references in genertion second(RAM)and then in third 
generation (virtual memory)

when garbage collector find any unused resources, it put 
that object in finalizition quere, for destruction of 
object and free memory from unused resources

and there is a thread is associated with which free objects 
one by one from this queue

and we can call  explicitly  the GC
like GC.collect(int )(here int is the generation number)
 
0
Kamlesh Sharma
 
 
Answer
Satellite assembly:Assembly containing no executable code—
only resources. Typically, satellite assemblies are used 
for storing localized data. Satellite assembles can be 
added, modified, and loaded into a .NET application at 
runtime without recompiling. Use the Assembly Linking 
Utility to create satellite assemblies by 
compiling .resource files.
 
0
Kalyani
 
 
Answer
Satellite assemblies are often used to delpoy langauge-
specific resources for an application.  These language 
specific assemblies work in side-by-side execution because 
the application has a separate product ID for each language 
and installs satellite assemblies in language-specific 
subdirectory for each language.
 
0
Dilip
 
 
Question
how to create views in sql with syntax and example
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
create view <Viewname> as
select a as A,b as B,c as C 
from <tablename>
where <whereclause{optional}> order by A
 
0
Abhinandan
 
 
Answer
CREATE VIEW view_name AS
SELECT column_name(s)
FROM table_name
WHERE condition

Using Views
CREATE VIEW [Current Product List] AS
SELECT ProductID,ProductName
FROM Products
WHERE Discontinued=No
 
0
Ranjith Reddy
 
 
Answer
CREATE VIEW vino (view_name) 
AS
SELECT mark1 (column_name(s))
FROM stud(table name)
WHERE avg>80 (condition)
 
0
Vinoth
 
 
Answer
CREATE VIEW <View Name> AS <Query Goes here>
 
0
Jayesh Patel
 
 
Answer
CREATE VIEW table_name [ ( column_name1, 
column_name2, ... ) ]
  AS SELECT ...

EX:
CREATE VIEW ViewOfTableA AS SELECT col1 FROM TableA
 
0
V.vaithyanarayanan
 
 
Question
how to create crystal reports in asp.net & vb.net with 
syntax
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
First create crystal report.In the interface of report i.e
aspx form to display report,add report document as
Toolbox-->Components-->ReportDocument.
Call the sub routine CreatePDF to display report.
rptProduct is the name of crystal report and docProd is the
name of report document.



								
Imports System.Data
Imports System.Data.SqlClient
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Imports System.IO

'This call is required by the Web Form Designer.
     Private Sub InitializeComponent()
        'start - This code should be pasted under #Region
Private Sub itializeComponent()
'rptProduct is the name of crystal report.
        Me.docProd = New rptProduct
        '
        'docProd
        '
        Me.docProd.PrintOptions.PaperOrientation =
CrystalDecisions.Shared.PaperOrientation.DefaultPaperOrientation
        Me.docProd.PrintOptions.PaperSize =
CrystalDecisions.Shared.PaperSize.DefaultPaperSize
        Me.docProd.PrintOptions.PaperSource =
CrystalDecisions.Shared.PaperSource.Upper
        Me.docProd.PrintOptions.PrinterDuplex =
CrystalDecisions.Shared.PrinterDuplex.Default
'Ends here
    
'Declaration of report document
Protected WithEvents docProd As rptProduct

Private Sub CreatePDF()        
        Dim objDS As New DataSet
        Dim dfdoFile As New
CrystalDecisions.Shared.DiskFileDestinationOptions
        Dim strServerPath As String
        Dim szFileName As String

       
            'Create dataset as per requirement

            docProd.SetDataSource(objDS.Tables(0))

            szFileName = Session.SessionID & ".pdf"        
' rptDailyCalls.pdf
            strServerPath = MapPath("~") & "\Report\"      
' Here the pdf file will be saved.   
                     File.Delete(strServerPath & "\" &
szFileName)   ' Delete file first
            dfdoFile.DiskFileName = strServerPath & "\" &
szFileName
            With docProd
                .ExportOptions.ExportDestinationType =
CrystalDecisions.Shared.ExportDestinationType.DiskFile
                .ExportOptions.ExportFormatType =
CrystalDecisions.Shared.ExportFormatType.PortableDocFormat
                .ExportOptions.DestinationOptions = dfdoFile
                .Export()
            End With
       'URL of the pdf file
 Response.Redirect("http://localhost/WebApplication1/" &
szFileName ,Flase)
End Sub
 
0
Ranjith Reddy
 
 
Question
how to restore database using vb.net?
Rank Answer Posted By  
 Question Submitted By :: Lakshman
This Interview Question Asked @   TCS , PCS
I also faced this Question!!   © ALL Interview .com
Answer
Does TCS interviewer asked this question .. ????
 
0
Konthappan
 
 
Answer
tcs will not ask this quiston
 
0
Jakson
 
 
Answer
imports microsoft.win32

dim svr as new SQLDMO.SQLServer

svr.executeImmediate("RESTORE DATABASE<DATABASE NAME> FROM 
DISK =<DATABASE PATH NAME> WITH REPLACE")
 
0
Abhijit R. Mandavgane
 
 
Answer
really TCS interviewer asked this question.........??????ya 
tu fek raha hai......
 
0
Ajit
 
 
Question
What are Major Feature of VB.NET Over C#.NET
Rank Answer Posted By  
 Question Submitted By :: Dinesh Sharma
I also faced this Question!!   © ALL Interview .com
Answer
VB.Net is Case-Insensitive while C# is case-Sensitive.
 
0
Sonia
 
 
Answer
Thank u Sonia
I Know That Feature But Do You Any Other Feature 
Rather Than Syntax .
 
0
Dinesh Sharma
 
 
Answer
VB.Net does not support pointers but C# supports pointers
 
0
Chethana
 
 
Answer
There is a documentation facility in C# (If you comment 
using ///This is my comment/// u can generate a document 
using Commands . I think this option is not in VB.NET

There is no Performance difference in BOTH Since both are 
running under CLR
 
0
Konthappan
 
 
Answer
VB.NET also doesn't support operator overloading. Due to
unsafe code.
And

VB.NET instantly compiled our code, help in small
development work and disadvantage is it cause slightly delay
in case of Large Development.
 
0
Ajit Jha
 
 
Answer
Dear Konthanppan ,
Comment related point stated by you is not true as VB.net 
provides it with ''' in replacement of /// in C#.

One big point is 
In VB.NET "SHARED CLASS" can be created but in C# Static 
class is not possible.
 
4
Manish
 
 
Answer
vb.net utilizes cpu 100 percent 
but c# doesnt ...
vb.net not  supports pointers
but c# supports ........
 
0
Indian
 
 
Answer
vb.net is very userfriendly
 
0
Chaitanya
 
 
Answer
vb.net support optional argument for method parameter where as
c# not.
 
0
Avijit
 
 
Question
linex will support dot net?
Rank Answer Posted By  
 Question Submitted By :: S.ramkumar
This Interview Question Asked @   Phoenix-Technologies
I also faced this Question!!   © ALL Interview .com
Answer
Linux Does Not Support .NET .
if You Have To Run The .NET on Linux Then You have Make 
Your on FrameWork which is Compatiable With Linux or You 
Have Purchase From Market as Thired Party Software
 
0
Dinesh Sharma
 
 
Answer
Microsoft released mono lithic version for linux OS. Here
you can done development as well.
 
3
Ajit Jha
 
 
Answer
yes, or not, linex os does not support the vb.net 
platform , but we use vb.net in linex with help of third 
party software....
 
0
Pawan
 
 
Answer
yes,linux support .net
 
0
Saswata Chohan
 
 
 
Back to Questions Page
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com