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

[RESOLVED] Sorting Arrays

Hello, Im looking to sort one array, and use the index from that array to allocate another array... ive declared; dim player(0 to 2) as string dim score(0 to 2) as integer I have sorted the score array...

View Article


I need some serious help

Hi when ever I open a project I get this message object library not registered and that happens under components and says c:\windows\system32\mscomctl32.ocx this just started to happen when I moved to...

View Article


I need some help please!

I am new to writing VB. I like it, it's simple and I have learned a lot in 1 month. I co-modified an application that displays information on TV screens. Nothing complex, just changes the image every...

View Article

[RESOLVED] value error

hello everyone i have a form with 2 combobox now i added a text and i get a error message this is the code Cn.Execute "INSERT INTO Curses " & _ "(LssID, LssDate, LssStudID, LssTchrID ,Lsname)...

View Article

[RESOLVED] Resize a Form

How do I resize a Form and keep the textbox the same ratio and the Listbox always the same width but it's height is resized keeping the same ratio Example: ScaleMode = Pixels Form.Width = 9390...

View Article


[RESOLVED] Connection String

Hi I have written this cnn.Open "Driver=SQL Server;Server=Machine1;Database=Test;uid=sa;pwd=sql;" I want to hardcode this , i want to pass ServerName & pwd as variable . How it can be done Thanks

View Article

Can't open .ocx file

I'm trying to open a source code project which I know works because many years ago I had it open with no errors. I installed VB 6.0 to get a look at the project once again, but when opening the project...

View Article

looping just continue up to end of RS

Code: Public Sub KillBlacklisted() On Error GoTo Err_Handler Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim con As New DLLConnectionFunction Set con = New DLLConnectionFunction Dim...

View Article


Export to excel

Hi, I'm having problems exporting data from a listview control to excel for example we have item "serial" with the child items "pass value". PHP Code: serial | value1 | value 2 | value 3 | value 4 |...

View Article


[RESOLVED] Printing on a Picturebox

I thought that when you printed text on a picturebox control that the CurrentX always reflected the new X position. When I do this: For n = 0 To 100 Picture1.Print "X" Next n I only get one "X" and...

View Article

Polygon function with no fill

I'm using this code to draw a polygon shape with a border color and a fill color: VB Code: Private Sub Polygon2Buffer(backbuffer As Long, border_color As Long, inner_color As Long)      Dim mypoly() As...

View Article

Long Binary data

How to view Long binary data in MS Access 2007 after storing the image via Visual Basic 6.0? Desperately in need of help!!!

View Article

how to show student name in another form

hello everyone i got a little problem i have a form with all students and now i build another form for the students to take a course now when i add the details of the new student in the course form i...

View Article


Can't figure out the logic to avoid a crash

A function performs a loop that simulates some animation on a picturebox and goes on for about 15 seconds. The associated code uses an instance of a class. If I click on a "Exit button" while the...

View Article

Restart Program

Hi, I've made a game using visual basic 6. When the last form is displayed the user will be given two options - to play the game again or to leave the game. Is there one piece of code which will reset...

View Article


my openpar not working

Hi Ev1~ i need to do this ( )for my calculation ..somehow when i want to make a coding for the openpar & closepar it highlight at AddTextAndFocus ""...it tell variable not define Code: Private Sub...

View Article

how do I create a command Line app and GUI based app?

So I found a couple of places that shows how to convert your application to a command line application. It works fine when you are in cmd... but how can I make both a cmd line app as well as a gui...

View Article


maybe a stupid question at this point of my programming life!.

I have an no modal form. I calls it from the main form in a button's code with: formname.show 0 then in the form placed a Cancel button with private sub Button_Click unload me end sub there is no...

View Article

Is There Any Control That Can Center Text in Box?

I am wondering if there is a special control to allow centering text without having to use vbCrLf?

View Article

Shell Instruction and Paths

I have a problem In one application executable I have a SHELL instruction that does something like this shell "unzip -quo "+chr$(34)+relativepath\zipfilename+chr$(34)+ -d...

View Article
Browsing all 21311 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>