Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Browsing all 21986 articles
Browse latest View live

[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 Article


Creating 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 Article


Picking 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 Article

Faster 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 Article

how 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 Article

Saving 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 Article


how 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 Article


BrowseFolder 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 Article

Populating 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 Article


SQL 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

Permission Denied When Trying To Delete A File

I'm using the following code to copy some lines from file into a new file. After all the correct lines are copied, I delete the old file. This was working just fine last week. But suddenly it's not...

View Article


VB6 on Windows 7 - Referencing Objects

Hi there, We have a rather large VB6 system that needs to be "tweaked" to run on windows 7 machines. Have managed to run the project in the IDE and have successfully compiled and run the system....

View Article

winsock data arrival help urgent

text2 proxy text3 port Code: Private Sub Command5_Click() Text4.Text = "" Winsock1.Close Winsock1.Connect Text2, Text3 End Sub Code: text1.text = list1.text '  list1 items to test Code: Private Sub...

View Article

Check OCX / DLL is the registry?

Hello I need help with the program. You do not know how to test whether a file such as "richtx32.ocx" registered in the pc? (in the registry) Is there any api function or something similar? thanks:duck:

View Article
Browsing all 21986 articles
Browse latest View live