[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 ArticleI 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 ArticleI 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 ArticleCan'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 Articlelooping 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 ArticleExport 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 ArticlePolygon 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 ArticleLong 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 Articlehow 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 ArticleCan'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 ArticleRestart 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 Articlemy 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 Articlehow 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 Articlemaybe 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 ArticleIs 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 ArticleShell 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