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

How to print the record shown on DataGrid after querying the database

Hi, I really need help. I'm a new user in this VB forum. I wrote a software to monitor academic performance of students. I have linked Adodc to DataGrid to retrieve some record from the database based...

View Article


Sound

Is there an easy way to play a sound using an if statement?

View Article


[RESOLVED] How to calculate a value depending on width of Form

I have a Form that shows a progress bar like (not a real progress bar) motion that prints a certain number of repetitive characters across the width of a Statusbar. The number of characters that it...

View Article

Clock and Calendar activeX for VB6?

I want two activeX for a small project that I finished long time ago, but I want to renew. I've got a cool activeX that mimics Windows Vista but I don't want the whole package as it has got a lot of...

View Article

Different Icon in the taskbar

I installed VB6 application using our installation package. If run the application program, icon is displayed in the taskbar. And I changed my application's icon, compiled it and replaced existing...

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


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

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

Group by issue in vb6 with ms-access

Friends, VB6 with ms-access 2003 Below query is giving the wrong output. Quote: select brno,stdname,amtobepaid,sum(paidamt) as totpaid from feesentry where (isnull(delstat) or delstat='') group by...

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


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

[RESOLVED] 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


[RESOLVED] 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


[RESOLVED] 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

Image may be NSFW.
Clik here to view.

Hide Colors in a Picturebox - Please assist

I have an xray image in a picturebox - see attachment. I need to display either Green Only/Orange only or Blue and Black. I have tried to use getpixel() to determine the color of each pixel. I cannot...

View Article

Programmatically set dimensions of MSFlexGrid based on columns/rows

I've found a few answers to this on the net but nothing is very accurate. Some leave scrollbars and others leave gray background area. I'm using VB6 and an MSFLexGrid control. This is the basic code...

View Article
Browsing all 21842 articles
Browse latest View live


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