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   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories >> Software >> Microsoft-Related >> Visual-Basic
 
 


 

Back to Questions Page
 
Question
In visual source safe if in middle of my program power was
off and it was not save then wat will happen whether it will
save or not? can any body tel me the answer for this.
Rank Answer Posted By  
 Question Submitted By :: Sushmitha
This Interview Question Asked @   Wipro
I also faced this Question!!   © ALL Interview .com
Answer
no
 
0
1
 
 
Answer
Not saved
 
0
Rajeev
 
 
Answer
No it will not get saved
 
0
Binu
 
 
 
Question
what is differece b/w Module and class Modules in vb6?
thanks
Rank Answer Posted By  
 Question Submitted By :: Zeeshan
This Interview Question Asked @   TCS
I also faced this Question!!   © ALL Interview .com
Answer
standard module:

1)place for variable declarations,procedures etc.and we can 
access these procedures wherever needed in the project.

2)Available only for the existing modules where they are 
used.

class module:

1)Unlike standard module,members of class like object's 
properties,events can be accessed only whenever an instance 
of class is created.

2)We can make use of it whenever an object reference of the 
particular class is created for number of applications
 
0
Anonymous
 
 
Answer
Module
Code  in VB is stored in modules.
Thereare three kind of modules, Class modules, Form modules 
and Stendard modules.
In VB there are common codes we want to execute in several 
forms. We do not want to duplicate the code in all forms, 
we create a separate module containing the procedure that 
implements the common code. This separate module should be 
Standard module.

Class Module
Class modules (.CLS extension) are foundation of object 
oriented programming in VB. We can write code in class 
modules to create new objects. These new objects can 
include our own customiaed properties and methods, although 
custom objects can not have their own events.
We can also use the keyword, New to create multiple copies 
of our objects.
 
0
Kumari Santosh
 
 
Question
how can i connect the samble database that comes with  vb-6
(biblio.mdb) to a datagrid using code?

ie what code i have to put in load event
Rank Answer Posted By  
 Question Submitted By :: Ranjith
I also faced this Question!!   © ALL Interview .com
Answer
make the adodc connection with database from its property
connection string & connect datagrid with adodc & write the code


  adodc_.recordsource = "select * from table name"
  datagrid.refresh
  adodc.refresh
 
0
Karan Munjal
 
 
Question
plzzzzzzz mail me some questions that r important to revise 
before an interviev
wat r the possible question that mnc ask
MY EMAIL ID shanty_pathak@yahoo.com
Rank Answer Posted By  
 Question Submitted By :: Guest
This Interview Question Asked @   Wipro
I also faced this Question!!   © ALL Interview .com
Answer
MY EMAIL ID shanty_pathak@yahoo.com
 
0
Guest
 
 
Answer
1. Differences between Image & Picture Box (Please note 
more than one)
2. Cursors and locks for ADO recordset.
3. Simple programs, like movable ball, slide show, etc.
4. Class creation
5. Property creation
6. ActiveX development
7. What is SSTab
8. How will you use 3rd Party Tool.
9. How Excel VBA Coding works?
10.How will you link crystal reports in vb?
11.Properties and methods of FlexGrid.
12.Properties and methods of Scrollbar.

Many other can be provided. Contact me on, 
chandresh_kumar@india.com
 
0
Chandresh Kumar Chhatlani
 
 
Question
How to compare inserted text in (textbox1.text) with 
existing database value in (Sqldatasource1) in visual 
studio 2005 ?
Rank Answer Posted By  
 Question Submitted By :: Saifxk2
I also faced this Question!!   © ALL Interview .com
Answer
Dim strValue As String
        strValue = txtValue1.Text

        Dim rstData As ADODB.Recordset
        rstData = New ADODB.Recordset

        rstData.Fields.Append("A",
ADODB.DataTypeEnum.adInteger, 0,
ADODB.FieldAttributeEnum.adFldKeyColumn)
        rstData.Fields.Append("B",
ADODB.DataTypeEnum.adVarChar, 10,
ADODB.FieldAttributeEnum.adFldIsNullable)
        'rstData.Fields.Append("C",
ADODB.DataTypeEnum.adVarChar, 0)

        rstData.Open()
        rstData.AddNew()
        rstData.Fields("A").Value = "1"
        rstData.Fields("B").Value = "Amol"
        rstData.Update()
        rstData.MoveFirst()
        If UCase(Trim(rstData.Fields("B").Value)) =
UCase(Trim(strValue)) Then
            MsgBox("True")
        Else
            MsgBox("False")
        End If
 
0
Amol
 
 
Question
CONNECTIVITY OF SQL 2000 + VB USING ODBC.
steps i Follow-
1) Go to Control panel-->Admintrative Tools-->Double -click
Data sources(ODBC)-->click Add button-->I choose SQL server
(last option), Is it right or wrong option for connecting 
to SQL 2000.Then a new screen appears Create a New 
dataSource-->in name textbox,we can write anyname--Right or 
wrong. suppose i enter sonia, & my server name is .,so I 
enter . in server & click next button-->On the Next screen 
i have checked the option With Sql server authentication--
>Login Id-sa, Password-->Blank-->Click next button-->Next--
>Finish-->Then I click on button Test Data source-->Mesage 
Comes TESTS COMPLETED SUCCESSFULLY-->OK-->OK-->Ok.

These steps we have to do or not for Connectivity using 
ODBC.
If yes,then what after these steps we have to do??Plz reply 
me early ??Thx in advance.

Rank Answer Posted By  
 Question Submitted By :: Sonia.sardana
I also faced this Question!!   © ALL Interview .com
Answer
You have to use this DSN name (in your case it is sonia) in 
your VB code wherever you wish to establish a connection 
between your VB application and your SQL server 2K database.
 
4
Deepak G
 
 
Answer
You have to create the DSN programatically by using some 
code.
 
0
Ramu.m
 
 
Answer
You can used DSN Less Code here (which is more usefull 
andimportant insteated of using DSN Coz when you run that 
Application on Different PC, then you have to crete DSN 
again..)
DSN Less Code for Connection MS ACCESS: or can connect any 
db just need to change its provider:
dim con as new adodb.Connection 
con.open "provider=microsoft.jet.oledb.4.0;" & "Data 
Source= ur db path (there is no space btn Folder and File 
Name)"
 
0
Vikram
 
 
Question
Can Redim be used to declare a new array ?
Rank Answer Posted By  
 Question Submitted By :: Sumitha
This Interview Question Asked @   Infosys
I also faced this Question!!   © ALL Interview .com
Answer
redim can only be used to increase/decrease the size of the 
existing array.it cannot be used to create a new array.

srinivas  shetty
 
0
Shetty
 
 
Answer
yes Redim can be used to declare a new array.
 
0
Mirza Arif Nadeem
 
 
Answer
No We can't use redim to declare a new array. Redim is used 
to resize the declared array
 
3
M.chitramala
 
 
Answer
M. chitramala is right. Redim is to resize the exiting 
array variable.

sample:
Dim myarray() as string

Redim myarray(10)
 
0
Padma
 
 
Answer
Redim is used to increase the dimension/size of the array.  
Preserve keyword is used to hold the previous value of the 
array.

ex:  Redim Preserve a[20]
 
0
Pradeepa V
 
 
Answer
yes friends its right redim is used to resize the decalred
array realier in the program
 
0
Prasad
 
 
Answer
if I redim an array and increase its size. will the 
existing elements in the array be lost?
 
0
Sb
 
 
Answer
Yes, Using Redim statement the size is set at runtime.
 
0
Kumari Santosh
 
 
Question
Which ADO object is used to perform commit / rollback ?
Is it command or connection or recordset 

I am not sure of the options given. So please let me know 
the answer if it is something else.
Rank Answer Posted By  
 Question Submitted By :: Sumitha
This Interview Question Asked @   Infosys
I also faced this Question!!   © ALL Interview .com
Answer
Connection object
 
0
Senthil
 
 
Answer
ye, through Connection object you can commit or rollback 
the transaction Eg:

on error go to errhandler
   con.BeginTrans
   
   con.execute cmd
   con.execute cmd2
   con.CommitTrans
errhandler:
   con.RollbackTrans
 
0
Ghanshyam Vrema
 
 
Answer
Connection Object of ADO is Used to Perform Commit and 
Rollback.
 
0
Anjani
 
 
Question
Can we display only integers / numbers through the message 
box? Is there any constraint to do so?
Rank Answer Posted By  
 Question Submitted By :: Sumitha
This Interview Question Asked @   Infosys
I also faced this Question!!   © ALL Interview .com
Answer
yes we can display only the integers through the message box.
if isnumeric(<value>) then
    msgbox value
end if
 
0
Mirza Arif Nadeem
 
 
Answer
we can display any thing in messagebox. but,  what we r
going to display can be converted into string.

ex:messagebox.show(xxxx.tostring());
 
0
Vijju
 
 
Answer
Yes, we can
msgbox(value)
 
3
Karan Munjal
 
 
Answer
yes,
msgbox(2)
 
0
Soundar
 
 
Answer
dim xx as integer
xx=123

if val(xx) then exit sub
 
0
Laxmi
 
 
Question
What is pivot table and how to create a pivot table
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
HI, GUYS

PIVOT TABLE IS ADVANCE FEATURE BY SQL ANSI WITH TRANSFORM 
STATEMENT. THIS REPRESENTING THE DATA IN CONSOLIDATE WAY. 
FOR EXAMPLE IF WE WANT THE PRODUCT V/S MONTHLY SALE ANALYSIS
THEN IT IS POSSIBLE WITH PIVOT TABLE.

       MONTH      APRIL-07  MAY-07  JUN-07         
PRODUCT
MARUTI-800          700     800     550
MARUTI ZEN          100     120     90

ETC

THIS IS TYPICAL PIVOT TABLE
 
1
Prasanna S Chitale
 
 
Question
What is Vlookup introduction and formula?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
Vlookup means Vertical lookup that is find the given value 
in vartical order
 
0
Gopi
 
 
Answer
vlookup is the way to find the particular data from master 
file.it gives the data in vertical manner from the right 
side of the column against which data has to find.
 
0
Yashwant
 
 
Question
how many no of controls in form?
Rank Answer Posted By  
 Question Submitted By :: Suniljaiswar
This Interview Question Asked @   Airex-Logistics
I also faced this Question!!   © ALL Interview .com
Answer
251
 
0
Khemalatha
 
 
Answer
85
 
0
Jalpa
[Airex Logistics]
 
 
Answer
A VB form can have 255 controls in a form. Note: Form is
also one of the control
 
0
Cherran
[Airex Logistics]
 
 
Answer
91, my friend told,,
 
0
Simon
[Airex Logistics]
 
 
Answer
255
 
0
Guest
[Airex Logistics]
 
 
Answer
255
 
0
Guest
[Airex Logistics]
 
 
Answer
255 X 255 
we can use the control array on the form
 
0
Shailender
[Airex Logistics]
 
 
Answer
only 255
 
0
Prem
[Airex Logistics]
 
 
Answer
Friends,

VB Can Make 255 Controls On a single Form. Because 0 to 256
we can Make Controls. But Form Also One of the Control by Self.
So We can Make only 255 Controls in A sINGLE fORM.

Note: I Already Workout this. SO I can tell Sure this is
Right answer...
 
0
Prabaharan
[Airex Logistics]
 
 
Answer
255 controls on the form.
 
0
Sangeetha
[Airex Logistics]
 
 
Answer
255 controls excluding form because is form is also a one 
control
 
0
Ashish Mishra
[Airex Logistics]
 
 
Answer
They are 2 types of controls in VB, one is Intrinsic 
Controls and another one is Extrinsic Control.
 
0
Pradeepa V
[Airex Logistics]
 
 
Answer
The maximum number of controls allowed on a single form 
depends on the type of controls used and available system 
resources. 
However, there is a fixed limit of 254 control names per 
form
 
0
B.guruvayurappan
[Airex Logistics]
 
 
Answer
255
 
0
Daya
[Airex Logistics]
 
 
Question
how many no of controls in form?
Rank Answer Posted By  
 Question Submitted By :: Suniljaiswar
This Interview Question Asked @   Airex-Logistics
I also faced this Question!!   © ALL Interview .com
Answer
256 Controls
 
0
Meganathan
 
 
 
Back to Questions Page
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

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