Reader submission.
- How do you represent your menu description in the status Bbr of your MDI? So that when I move the mouse over menu option, the description is shown in appropriate status bar?
- How would you make a program which scans a bar code and perform action depending on the bar code value?
- What is the difference between Windows programming and database programming?
- How do you combine a number of ActiveX control, which you developed, into a single app?
- How do you interact with the hardware level within your VB code if no APIs or documentation is supplied?
7 Comments on Some VB interview questions
Hi,
Difference between Windows Programming and Database Programming
Windows Programming
——————-
Windows programming is depends on designing windows based application software which is called Graphical user interface(GUI).
Database Programming
——————–
Database programming are related to application programme for which we will have front-end and back-end. An application that are developed with the help of connecting database, RDBMS like Oracle,SQL server,windows access,Sybase,etc are known as database application.
How do you represent your menu description in the status Bbr of your MDI? So that when I move the mouse over menu option, the description is shown in appropriate status bar?
How would you make a program which scans a bar code and perform action depending on the bar code value?
How do you combine a number of ActiveX control, which you developed, into a single app?
How do you interact with the hardware level within your VB code if no APIs or documentation is supplied?
How Many Control can Placed in VB Form
Ans 2
for displaying the text in status bar subclass the mdi window and in windowproc look for WM_MENUSELECT message and display text as per the id
Ans 3
the maximum number of controls on a form are 256 however the limit can be bypassed by using control arrays . thus the total limit can be 256 * 32000
How to return a value from the database?Plz reply as soon as possible.
How to return a value from the function in visual basic?
In order to return value from db,we should open a connection to the specified database and use the recordset object to run the sql statement you want to return
eg is given below
dim dbConn as Adodb.Connection
dim rsEmp as Adodb.Recordset
Set dbConn = New Adodb.Connection
Set rsEmp = New Adodb.Recordset
dbConn.Connectionstring =”Provider=Microsft Sqlserver;Data source =servername;Initial Catalog =dbname;Integrated security =true”
dbConn.Open
rsEmp.Open “SELECT SUM(SALARY) FROM EMP”,dbConn,adopenforwardonly,adlockreadonly
Msgbox rsEmp.Fields(0).Value