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

[RESOLVED] combobox dosnt pull item name from the database

hey im trying to retrive items from a db with a combobox and display it in a text for somereson it dosnt show nothing here is the code Code: Private Sub Cmb4_Click() Set RS = CN.Execute("SELECT InvItem...

View Article


[RESOLVED] invaild property value in mdi

hey very starnge thing happens when i try to open a form in mdi child i get a error invaild property value when i press debug i see this: Code: Private Sub Form_Resize() If MDImain.WindowState <>...

View Article


Mdi Child tabbing problem

Hi guyz, frm_main : mdiform child : 10 x child of frm_main which has some objects covers whole form windowstate property is maximized for each child forms. when i open 1rst child there is no problem...

View Article

how to calculate tax like % betweeen 3 text files

hey this is a liitle bit hard(for me) im trying to calculate a txt between 3 textboxes Code: 1) text is txt(2).txt ( RS!InvBeforetax  this is currency value in the DB)  this is when i put a number like...

View Article

Question about Picturebox

I have a VB program I am working on. On the Form is a picturebox called Picture1. It's ScaleMode is set to vbPixels and it's ScaleWidth is 216 pixels and it's height is 72 pixels. In a sub some of the...

View Article


[RESOLVED] combobox showing the same name twice after editing

hey i got combobo set to property 2 now when i add a new record and store it everything is ok but when i edit the current record the combobox show me the same name twice why? im sitting on this like...

View Article

[RESOLVED] how to calculate tax like % betweeen 3 text files

hey this is a liitle bit hard(for me) im trying to calculate a txt between 3 textboxes Code: 1) text is txt(2).txt ( RS!InvBeforetax  this is currency value in the DB)  this is when i put a number like...

View Article

How to add program to the Windows Firewall exception list (Profile: All) ?

At the moment I use this code to add my program to the Windows Firewall exception list: Code: Option Explicit Public Function AddToFirewallExceptions(ProgramAddress As String, ProgramName As String)...

View Article


Image may be NSFW.
Clik here to view.

Need Help Drawing Sine Wave in Segments

The following code reads a .wav file into a byte array then calls the sub to draw the sine wave onto a picturebox. The attached bitmap shows what the resultant sine wave looks like. What I need to do...

View Article


Detecting user resizing MSFlexGrid columns

Here is one that has me stumped. I am using an MSFlexGrid control with the property AllowUserResizing set to 1 - flexResizeColumns. How can I tell if the user resizes the column? There is no event for...

View Article

how to make button enabled only if all txtboxes and combobox are chosen

hey im trying to make a my button save enabled only if all txtboxes are filed and comboxes are choosen i tried something like this only form the txt but its not working Code:   Dim x As Integer   Dim a...

View Article

VB6-Problem with User-Defined Type

I have a User-Defined type that is declared as Public in a module: Code: Public Type T_DATA         bdata(1 to 276) as Byte End Type When I define a variable (PublicKey) as Public in a Class module, I...

View Article

Image may be NSFW.
Clik here to view.

How To Receive Tray Icon Callback Messages with NOTIFYICON_VERSION_4

According to this thread, and I quote: Quote: Originally Posted by LaVolpe 1. Vista offers users option to display a popup window instead of a tooltip. In Vista, hover over your Sound icon and the new...

View Article


[RESOLVED] How to add program to the Windows Firewall exception list...

At the moment I use this code to add my program to the Windows Firewall exception list: Code: Option Explicit Public Function AddToFirewallExceptions(ProgramAddress As String, ProgramName As String)...

View Article

[RESOLVED] how to make button enabled only if all txtboxes and combobox are...

hey im trying to make a my button save enabled only if all txtboxes are filed and comboxes are choosen i tried something like this only form the txt but its not working Code:   Dim x As Integer   Dim a...

View Article


[RESOLVED] VB6-Problem with User-Defined Type

I have a User-Defined type that is declared as Public in a module: Code: Public Type T_DATA         bdata(1 to 276) as Byte End Type When I define a variable (PublicKey) as Public in a Class module, I...

View Article

Deployable ...\Office14\msacc.olb Reference File for VB6?

I have found copies of msacc.olb for Access 2010, but when I copy them into my VB6 project folder and specify them in the References form, they are not recognized. I have not been able to find enough...

View Article


vb6 (Crystal Report 9 Print Status)

I am using VB6 + CR9. How to know if the printer is : 1. Running out of Paper 2. Document Sent to printer 3. No Printer Installed is there any code for this?

View Article

Decimal to binary converter

Hey! For a school project i have to code a decimal to binary converter and a program to add two binary values together, im really bad at this stuff and i was wondering if anyone had any ideas? Thanks!...

View Article

[RESOLVED] Second call to PaintPicture fails

I'm trying to copy the image from Picture2 to Picture1 using PaintPicture method. I call PaintPicture several times to copy from Picture2 which changes it's picture each time I make the call. The 1st...

View Article
Browsing all 21243 articles
Browse latest View live