Visual Basic Questions


How to fill Combo Box at runtime in VB 6.0 …I’ve used RecordSet object but rec.count of rs obj returns (-1).I hv enough data in the DB
[Private Sub Form_Load() FillCombo End Sub Sub FillCombo() Dim rs As New ADODB.Recordset, SQL As String SQL = "Select Spare_Name from Spare" rs.Open SQL, Conn, adOpenDynamic, adLockOptimistic Dim i As Integer For i = 1 To rs.RecordCount cboSpare.AddItem rs("Spare_Name") rs.MoveNext Next MsgBox "Successss", vbOKOnly End Sub]

Answer Question   |  December 8, 2008  7:49 PM
ActiveX Data Objects, ADO, ADO Recordset Object, ComboBox, Database connectivity, Database programming, Recordset Object, RunTime, VB 6, Visual Basic, Visual Basic 6
asked by:
5 pts.

VB6 Oracle 10 Stored procedures with parameters
I have a vb6 – RDO code that works ok with Oracle8, recently there was an upgrade to Oracle 10g enterprise. Now I get the error 40041 -> Object Collection: Couldn’t find item indicated by text. 1110 lstrSQL = "{call Pyramid.Load_Tables(?, ?, 0)}" 1120 Set lrdoQ = vConexionDatos.MiDataBase.CreateQuery("ProcessTables", lstrSQL) 1130 lrdoQ.rdoParameters(0).Direction = rdParamInput 1140 lrdoQ.rdoParameters(0).Type [...]

Answer Question   |  December 11, 2008  8:20 PM
Oracle 10g, Oracle error messages, Oracle stored procedures, Oracle upgrades, VB 6, Visual Basic
asked by:
35 pts.

Combo box question when developing a SQL database in Visual Basic 6
I am developing a SQL database using Visual Basic 6 with ADO and Microsoft Access, but in it, I have a combo box with two options – yes and no. I want the combo box, after yes or no is selected, to open another form where a user can enter other details. How would I [...]

Answer Question   |  December 5, 2008  6:20 PM
ADO, Microsoft Access, SQL Server database, Visual Basic, Visual Basic 6
2,585 pts.

Can I create a child process using WMI VB scripting?
Using WMI VB scripting, I would like to create/attach multiple child processes to a parent process, such as the explorer process. Any ideas how this can be done? Below is my code that fails. Thanks! Chris Option Explicit dim wmi, rootProcessName, rootProcess, objStartup, objConfig, objProcess, strComputer, dropbox, itunes, skype strComputer = “.” dropbox=”C:Program FilesDropboxDropbox.exe” itunes=”C:Program [...]

Answer Question   |  December 11, 2008  3:33 PM
VBScript, Visual Basic, WMI
asked by:
20 pts.

Crystal Reports 8
To Change The position & property of the Text in the crystal report from VB.NET code itself…. is It Possible??? while the Crystal report connected….. By Raam87

Answer Question   |  December 3, 2008  6:04 AM
Crystal Reports, Crystal Reports 8, VB, VB.NET, Visual Basic, Visual Basic .NET
asked by:
5 pts.

mouse movement and x,y location functions
I know there has to be a simple way to move the mouse to any position on the screen in vb 2008. A search brought up nothing specific to what I am trying to do. Basically, I have two textboxes on a form to represent x and y. When I click a command button, I [...]

Answer Question   |  December 1, 2008  4:13 PM
Visual Basic, Visual Basic 2008, Visual Basic Functions, Visual Basic Location Functions
asked by:
50 pts.

How to read fingerprints in VB.NET 2005?
Hi, I have to develop a project for attendance in vb.net2005.in this employ will “In” and “Out” with their finger identification.How can we read the finger in vb.net2005 or any body have a related code then send me. Thanks in Advance.

Answer Question   |  December 1, 2008  6:51 AM
Authentication, Biometric authentication, Biometrics, Finger scans, Fingerprint scanning, Identity management, VB.NET, Visual Basic, Visual Basic .NET, Visual Basic 2005
asked by:
5 pts.

VB.NET graphics
i want to make a application thats draws a line behind the mouse i knowh how to get the mouse posisiot but it wount update and continue to follow the mous. when i start the program it draws a line but newer do anymore. plz help me by saing how to update .

Answer Question   |  December 1, 2008  2:37 AM
Mouse tracks, MousePosition, Tick event handler, TIMER, VB.NET 2008, Visual Basic, Visual Basic .NET, Visual Basic 2008
asked by:
5 pts.

(2008 Visual Basic) I need help with an error in my code
1.Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click 2.For Each Link As HtmlElement In WebBrowser1.Document.Links 3.Dim strText As String = Link.InnerText 4.If strText.IndexOf(“Heal”) > 0 Then 5.Link.InvokeMember(“Click”) 6.Exit Sub 7.End If 8.Next 9.End Sub -here is my error i received in line 4. when trying to run my code. System.NullReferenceException was [...]

Answer Question   |  August 2, 2011  4:51 PM
Debugging, innerText, System.NullReferenceException, Visual Basic, Visual Basic 2008, Visual Basic 2008 debugging, Web development
asked by:
50 pts.

Serial Number in VB Data Report
How can insert a Serial Number in the datareport eg Srl No Rank Name Dept 1 RM T N THAKUR RLY 2 GM T S SINGH RLY 3 INSPR K K PANDEY RLY the data Filtered by RLY from a table and matched only 3 records

Answer Question   |  July 28, 2011  9:37 AM
VB, VB Data Report, Visual Basic
asked by:
280 pts.

how do i select last id in list box and perform a click
I have a list box created that pulls over inner and outer html links from my web page. I have a code to click on the link id within that list and invoke a (click) then the proper function is invoked. my problem is the page changes in number of links ect form hr to [...]

Answer Question   |  December 1, 2008  5:21 AM
Visual Basic, Visual Basic 2008, Visual Basic List Box
asked by:
50 pts.

Display different fields in VB Data Report
In VB Data report based on the option selected from Form, the same data report should display different fields. For eg, when I choose “Tution Fees” it should display tution fees only, When I choose “book fees” it should display book fees only. I am using dataenvironment as dat source

Answer Question   |  November 26, 2008  4:06 AM
Database programming, DataEnvironment, VB, VB Data Report, Visual Basic
asked by:
90 pts.

Auto Serial Number in VB DataReport
How Can Create Auto Serial Number of Data found by an Query in the VB DataReport

Answer Question   |  October 16, 2011  9:42 AM
Auto Serial Number, VB, VB Data Report, Visual Basic
asked by:
280 pts.

Used CRViewer component in VB 6 and Crystal Reports but can’t set portrait printing
Hi I used Crviewer component in my project for designing and printing reports but I can’t set it portrait and it is landscape all the time and I couldn’t find any properties about orientation!!!! I use of visual stedio 6 (vb6) and crystal report 8(os is winxp sp2) Could you please help me soon!!?? It’s [...]

Answer Question   |  November 24, 2008  6:06 AM
CRViewer, Crystal Reports, Crystal Reports 8, VB 6, Visual Basic, Visual Basic 6, Visual Basic printing
asked by:
265 pts.

DataEnvironment_VB6.0
Plsease send / provide codes to for DataEnvironment (vb 6.0). I wish to use the De for all purpose, eg. In Form, In Query, In Report every things thanks anand

Answer Question   |  November 21, 2008  6:32 AM
DataEnvironment, VB, VB 6, Visual Basic, Visual Basic 6
asked by:
280 pts.

Connect DBF
How can i connect DBF By VB.NET

Answer Question   |  November 21, 2008  5:02 AM
Database connectivity, dBASE, FoxPro, VB, VB.NET, Visual Basic, Visual Basic .NET
asked by:
5 pts.

In VB 6.0 Data report for the numeric field , it should display in words
In VB 6.0 Data report I have a number field eg 15685. It should display it as fifteen thousand six hundred and eighty five. I don’t know how to code for this? Please help

Answer Question   |  November 17, 2008  6:20 AM
VB 6, VB Data Report, Visual Basic, Visual Basic 6
asked by:
90 pts.

ODBC connectivity to Oracle 10g database from an Oracle 6i client
Talking through VB Code from a Oracle 6i Client to a 10G database using ODBC.

Answer Question   |  November 14, 2008  11:34 AM
Database connectivity, ODBC, Open Database Connectivity, Oracle 10g, Oracle 6i, VB, Visual Basic
5 pts.

VB.NET
which companies are working on VB.NET technologies??

Answer Question   |  November 13, 2008  11:44 AM
VB.NET, Visual Basic, Visual Basic .NET
asked by:
15 pts.

How can I install a new font in VB6 code?
How i can install new font in vb6 code?

Answer Question   |  January 8, 2012  11:42 AM
Fonts, VB 6, Visual Basic, Visual Basic 6
asked by:
5 pts.