Some VB interview questions

Reader submission.

  1. 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?
  2. How would you make a program which scans a bar code and perform action depending on the bar code value?
  3. What is the difference between Windows programming and database programming?
  4. How do you combine a number of ActiveX control, which you developed, into a single app?
  5. How do you interact with the hardware level within your VB code if no APIs or documentation is supplied?
This entry was posted in VB. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

7 Comments on Some VB interview questions

  1. Mohammed Fareed
    Posted 7/21/2005 at 2:32 am | Permalink

    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.

  2. Posted 11/10/2005 at 3:08 am | Permalink

    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?

  3. Posted 11/10/2005 at 3:09 am | Permalink

    How Many Control can Placed in VB Form

  4. thencoder
    Posted 3/4/2006 at 9:05 am | Permalink

    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

  5. Snehil Jain
    Posted 11/5/2006 at 6:30 pm | Permalink

    How to return a value from the database?Plz reply as soon as possible.

  6. Snehil Jain
    Posted 11/5/2006 at 7:56 pm | Permalink

    How to return a value from the function in visual basic?

  7. sachin
    Posted 2/1/2007 at 4:06 am | Permalink

    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

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*