VBA Variables... Help!
Hello Gents I am having some issues with my code so am needing some help. Background is im using VBA (i know its horrible but it has to be used for this task), I have a GUI that the user deals with,...
View ArticleRunning a .chm help file from VB5
I have written a VB program using VB5. I also downloaded Help Maker and have created and compiled a help program for this project. I am stumped as to how to run the help from the program. I did some...
View ArticleVB6 Controls stopped working
No matter what I try, I can't register Sheridan and other controls in VB6. I get "not a loaded control class" when loading project. I get "file not found " when I try to add as component to project....
View ArticleSend e-Mail through VB6
How to send e-Mail through VB6?. Using EASendMail object i'm able to send email with yahoo and gmail. But i'm not able to do this with other servers. Can anyone please help me?
View Article[RESOLVED] Loop through a listbox and copy the item to a label caption.
Hello there! I have a program that has a bunch of math questions in. The questions load into a listbox called GameList I also have an array of 75, 0-74 labels called GameNameLBL(0) all the way to 74....
View ArticleCreating File & Writing Data Causes a Permissions Error
I get a "permission denied" error while running the following code. vb6 Code: Public Function DeleteLines(ByVal from_name As String, ByVal to_name As String, ByVal target As String) As Long   Dim...
View ArticlePicking up time from excel
I have a VB program which picks up time from an excel worksheet and populates in the table. Somehow some of data is getting picked up wrongly. e.g. 1:26:24 PM is getting picked up as 0.56. The rest of...
View Article[RESOLVED] What kind of Form do I need?
The Form cannot be resized but it can be minimized
View ArticleFaster Web SQL update?
I have a program which matches inventory from a local DB to my web SQL. Each record takes .3 seconds to update, and I have between 10K and 40K records. Is there a better/faster way to update the sql...
View Article[RESOLVED] How to detect repeated names in a string of names?
A typical string will look like this: "sam,larry,bill,mary,allen,jim,fred,joe,john" This string is correct in the sense that no names are repeated However, on occasions, the string could look like...
View Articlehow to stop paintpicture clipboard changng category scale in a scatter graph
I have a scatter mschart with fixed X scale and Y scale to max = 20, Min = -20, major division = 5 and minor division = 2. The code also sets Uniformaxes to false. I use the clipboard to print it with:...
View ArticleSaving an array to a textfile, with a small twist.
Hello there! I am working on a newer version of a game, and this newer version allows users to make their own custom games which will be saved into a simple textfile, but while I can save a textbox to...
View Articlehow to use winsock.DLL
hi all. i always have using winsock.ocx that installed by vb6 ! but currently a have to create one exe-file to send data without using winsock.ocx. the only way i found is winsock.DLL ,but i don't...
View Article[RESOLVED] REmoving the bottom item from a listbox
Hi there, I was wondering for testing purposes, say I have a listbox called list1, and I wanted to remove the last line from the listbox, would anyone know how I could do that. I can take the top away...
View Article[RESOLVED] Expected Expression. Optional Arguments
Hi, I hope someone can help me. I'm getting an error whenever I try to do this. Here is my code: Sub emp_filter(Optional ByVal cmbApprove As ComboBox = Nothing, Optional ByVal cmbDept As ComboBox =...
View Article[HELP] Problem running my app at startup
First of all: I'm using Windows 7. I have a program which copies itself to the startup folder. Then I reboot my pc but it doen't run. May be becouse I need administrator privileges. I've tried with a...
View Article[VB6] Dynamically add CalendarControl
Hi, I'm using VB6 and I want to dynamically add Codejock Xtreme Calendar ActiveX to one of SSTab control tabs. Here's my code. Code: Dim WithEvents CalendarControl1 As CalendarControl Then in...
View ArticleBrowseFolder function - 'BIF_RETURNONLYFSDIRS' variable not defined
This is the code for the BrowseFolder function Private Declare Function SHBrowseForFolder Lib "SHELL32.DLL" Alias "SHBrowseForFolderA" (lpBrowseInfo As BROWSEINFO) As Long 'ITEMIDLIST Private Declare...
View ArticlePopulating listbox with results from SQL query
HI All, The code below, populates a listbox with data from the field "calibrator". Code: Data1.Refresh While Not Data1.Recordset.EOF list1.AddItem Data1.Recordset("calibrator").value...
View ArticleSQL in VB
Hi, In my program i select a value from a database i.e select name_f from owner where owner_id=text10.text What i need to do is: for each name_f select employed from employment where name=name_f(name...
View Article