[RESOLVED] show customer Debts only if the record is "Not Paid"
i am trying to show a customer debth only if field in the table is "Not Paid" i tried some codes cant figure this one alone Code: 1) first Code 'Set rs = CN.Execute("SELECT * FROM Orders WHERE...
View ArticleHow do I set print job document name?
I am having difficulty setting the print job document name with VB6. I don't want to use the method of temporarily changing the app.name because 99% of the time I am running the program from the...
View ArticleMultiple BitBlt Routines Causing Flicker
I have created a subroutine that I can simply call whenever I need to use BitBlt: Code: Public Function DoBitBlt(theBuffer As PictureBox, THESTAGE As Object, THEBACKGROUND As PictureBox, THECHARACTER...
View ArticleRandom number generator and percentages
Hi all, I am trying to create a small program which will test to see if a gambling bet is profitable or not. I currently have text boxes for how much the bet will cost, how much the prize will be if...
View Article[RESOLVED] If textbox contains letter x then remove letter x
How would I see if a textbox contains the letter x and then remove the letter x but leave the rest of the string. Example: Before: "abcxyz" After "abcyz" Thanks
View ArticleComparison question
What is the difference of Code: If (rs.State And adStateOpen) = adStateOpen Then and Code: If rs.State = adStateOpen Then What is the logic of the first premise?
View Article[RESOLVED] VBA command to do nothing??
Hi, I have a bit of code which goes like this Range("c3").Select If Not IsEmpty(ActiveCell.Value) Then Me.TextBox174 = Range("c3") End If I need to add to this, if the cell is empty do nothing/stop the...
View ArticleFind a word in text file
hi How find word in Ini file?! i want find a word in a ini file and if exist my word then: show msgbox"Find" and if not exist my word then msgbox"Not Find" How do this work? my File is Ini File. i test...
View Article[RESOLVED] Non stringent text comparison
Hi All, I am wondering if there is a way to do a comparison between two strings that could possibly allow for a slight miss-spelling, or one has a punctuation mark that the other doesn't. Many thanks -...
View Article[VB6] Experiments with Resizing and Screen Resolutions (Help needed)
Hello. I've been searching for help on this topic and I found and read entirely this helpful thread: http://www.vbforums.com/showthread.p...extboxes/page2. In answer #67, user MarkT posted an OCX...
View Articlehow to put a advertisement banner in a loop
i have a hair salon program that i did and their is a company of shampo who wants to put a add in this program how do i add or create a add to make it loop in my program? never done this before any...
View ArticleVB Deployment
I want to deploy my app, which consists of three .exes plus supporting files. Two of the three .exes are almost identical. The VB project file for each of the three .exes lists the same references and...
View ArticleHow to loop code to execute for each item in a ComboBox control
Hello, I have the following form in my application http://imgur.com/T7IddGO The Master City combobox is called "MasterCity", and the Slave City combobox is called "SlaveCity". The ListView that has the...
View Article[RESOLVED] Using Classes - What Am I Doing Wrong
Error: Object doesn't support this property or method All classes exists Code: Public Sub loadImages() Dim pg As PixelGrabber Dim mt As MediaTracker Dim board As myImage Dim i As Integer, j As...
View ArticleCAPICOM for Windows 8?
I used CAPICOM for a hashed program in Win7, but when copied the project to Windows 8, the program will not run as the CAPICOM DLL is not on Windows 8. I do not recall if I downloaded CAPICOM for WIn7,...
View Article[RESOLVED] Why doesn't this code work using a timer
Code: Private Sub Command1_Click() Chill 5, "CASHREGISTER" ' 5 seconds End Sub Sub Chill(seconds As Integer, SoundName As String) Dim Counter As Integer seconds = seconds * 1000 If Counter <=...
View Articleloading and unloading an exe.
I have placed a commend button on a form to open an external exe. Code: Private Sub Command1_Click() Shell App.Path & "\my.exe", vbNormalFocus End Sub How can i unload main form when an external...
View ArticleNeed a bit of help on the XMODEM protocol
I'm trying to create a file sender program for the XMODEM protocol. This is the simplest of all modem protocols. No error correction other than a simple checksum byte. My references have been this wiki...
View ArticleDynamic timers with dynamic Ticks
Point 1: Is possible make a dynamic timer with dynamic event Ticks on VB? Ok, I know how I can make a new timer, and I know how I can add a Event, with: Code: AddHandler Timer1.Tick, AddressOf...
View Article[RESOLVED] CAPICOM for Windows 8?
I used CAPICOM for a hashed program in Win7, but when copied the project to Windows 8, the program will not run as the CAPICOM DLL is not on Windows 8. I do not recall if I downloaded CAPICOM for WIn7,...
View Article