Search Results

Showing results 1 to 40 of 102
Search took 0.02 seconds.
Search: Posts Made By: SCBWV
Forum: Visual Basic 4 / 5 / 6 30 Days Ago
Replies: 6
Views: 377
Posted By SCBWV
Post your declarations here so we can see what you're doing.
Forum: Visual Basic 4 / 5 / 6 31 Days Ago
Replies: 6
Views: 377
Posted By SCBWV
Go to the Project menu and select Add Module. Open a New module and you will see it in the list (Module1).
Forum: Visual Basic 4 / 5 / 6 32 Days Ago
Replies: 6
Views: 377
Posted By SCBWV
I put all my global declarations, constants and defined types in a module.
Forum: Visual Basic 4 / 5 / 6 Aug 9th, 2009
Replies: 2
Views: 385
Posted By SCBWV
Why not use a public boolean value as a toggle?

SelectedAll = NOT SelectedAll
Item.Checked = SelectedAll

Then the function can select and deselect all depending on the last state.
Forum: Visual Basic 4 / 5 / 6 Mar 7th, 2009
Replies: 5
Views: 1,107
Posted By SCBWV
Probably the easiest way to do what you want is to use a Browser control on your form and open the PDF file in the browser - Browser1.Navigate PDFFile$ - works like a charm and you're not tied to a...
Forum: Visual Basic 4 / 5 / 6 Feb 28th, 2009
Replies: 3
Views: 475
Posted By SCBWV
The maximum number of controls on a form depends on the type of control and the available system resources. There is a strict limit of 254 control names per form. However, you can use control arrays...
Forum: Visual Basic 4 / 5 / 6 Feb 17th, 2009
Replies: 9
Views: 670
Posted By SCBWV
There is no caption in the label to retrieve.
Forum: Visual Basic 4 / 5 / 6 Feb 17th, 2009
Replies: 7
Views: 684
Posted By SCBWV
Hi Jaasaria:

Try:
Call LockWindowUpdate(frmPOS.ListView2.hwnd)
userPriceList1
Call LockWindowUpdate(0&)
Forum: Visual Basic 4 / 5 / 6 Feb 15th, 2009
Replies: 7
Views: 684
Posted By SCBWV
You can also try LockWindowUpdate to prevent the ListView from updating while the records are loaded.

Private Declare Function LockWindowUpdate Lib "user32" (ByVal hwndLock As Long) As Long
...
Forum: Visual Basic 4 / 5 / 6 Feb 8th, 2009
Replies: 12
Views: 2,448
Posted By SCBWV
http://www.thescarms.com/vbasic/StopProcess.aspx
Forum: Visual Basic 4 / 5 / 6 Feb 8th, 2009
Replies: 3
Views: 513
Posted By SCBWV
I'm not sure why you're using a timer, but you can format time in 12 or 24 hour formats with the Format function - Format(Time$, "hh:mm:ss") or Format(Time$, "hh:mm:ss AMPM")
Forum: Visual Basic 4 / 5 / 6 Feb 8th, 2009
Replies: 2
Views: 1,009
Posted By SCBWV
If you know the PPS file ahead of time, you can embed them in the VB application as an insertable object. However, I don't see where PowerPoint lets you programmatically assign the file in VB.

As...
Forum: Visual Basic 4 / 5 / 6 Feb 1st, 2009
Replies: 3
Views: 841
Posted By SCBWV
Create two Image control arrays. Then use a loop to load each picture as shown below


JPegPath$ = "C:\My Pictures\"
PicFile$ = Dir$(JPegPath$ & "*.jpg")
Inx = 1
Do While LenB(PicFile$) > 0
...
Forum: Visual Basic 4 / 5 / 6 Jan 29th, 2009
Replies: 3
Views: 841
Posted By SCBWV
Use a for/next loop to load the images from disk. If the number of images loaded is not evenly divisible by 2, you have a problem, since you can't match up an odd number of images. Use 2 image...
Forum: Visual Basic 4 / 5 / 6 Jan 26th, 2009
Replies: 2
Views: 927
Posted By SCBWV
You could use the Split funtion, but that wouldn't work well if your string contains more than one space, for example "white bread 0.67" If the price is always the last part of the string, why not...
Forum: Visual Basic 4 / 5 / 6 Jan 18th, 2009
Replies: 3
Views: 503
Posted By SCBWV
You have to use a richtextbox, but that only supports a subset of rtf, so you won't get full support of the rtf codes from Word. I have successfully brought in tables, even with borders, but the...
Forum: Visual Basic 4 / 5 / 6 Jan 18th, 2009
Replies: 3
Views: 512
Posted By SCBWV
Forum: Visual Basic 4 / 5 / 6 Jan 18th, 2009
Replies: 7
Views: 1,107
Posted By SCBWV
Why can't you just put centering code in the Form_Load event of the mdi child form? You know what window will be the parent, and it wouldn't matter is the parent is maximized or normal.
Forum: Visual Basic 4 / 5 / 6 Jan 15th, 2009
Replies: 2
Views: 393
Posted By SCBWV
You could use the multiple-document interface (MDI) in which the forms are a "child" of the "parent" main form, but MDI program can be a pain. Why can't you just use the main form's properties to...
Forum: Visual Basic 4 / 5 / 6 Jan 11th, 2009
Replies: 1
Views: 432
Posted By SCBWV
Error '3077' Syntex error (missing operator) in expression

Try Data1.recordset.FindFirst ("nhisto = " & answer)
Forum: Visual Basic 4 / 5 / 6 Jan 10th, 2009
Replies: 7
Views: 1,521
Posted By SCBWV
To some degree you can manipulate the msgbox, but if you haven't noticed, new message boxes in Vista and subsequently, Windows 7, have a nice look you can't get in classic VB without making your own...
Forum: Visual Basic 4 / 5 / 6 Jan 10th, 2009
Replies: 7
Views: 576
Posted By SCBWV
Microsoft promised to make VB6 programs "just work" in Vista because there's a TON of classic VB code out there in business and industry - a segment VERY reluctant to upgrade operating systems. Yes,...
Forum: Visual Basic 4 / 5 / 6 Jan 10th, 2009
Replies: 5
Views: 587
Posted By SCBWV
Guess I'm not quite sure what you want to do, but if you want to sun the Windows Installer you can Shell the installer with the MSI file as a parameter. For example:

Ret = Shell("MSIEXEC /I " &...
Forum: Visual Basic 4 / 5 / 6 Jan 10th, 2009
Replies: 2
Views: 545
Posted By SCBWV
One I particularly like...

http://www.innovasys.com/download/eval.aspx?productname=freeware%20activex%20controls
Forum: Visual Basic 4 / 5 / 6 Jan 2nd, 2009
Replies: 2
Views: 1,791
Posted By SCBWV
I don't believe the control allows you to set volumes. You can use waveOutSetVolume and waveOutGetVolume in MMSYSTEM.DLL.

I prefere to use the old MCIWNDX.OCX control which allows adjusting speed...
Forum: Visual Basic 4 / 5 / 6 Jan 2nd, 2009
Replies: 1
Views: 1,849
Posted By SCBWV
Here's a good example as a primer. http://www.hungryhacker.com/articles/code/vb6_xml.html
Forum: Visual Basic 4 / 5 / 6 Jan 2nd, 2009
Replies: 1
Views: 464
Posted By SCBWV
Try http://www.iconarchive.com/
Forum: Visual Basic 4 / 5 / 6 Dec 25th, 2008
Replies: 2
Views: 606
Posted By SCBWV
Why not just save the richtextbox contents?
Forum: Visual Basic 4 / 5 / 6 Dec 23rd, 2008
Replies: 1
Views: 832
Posted By SCBWV
One way is to separate the hours from the minutes and add them up = 42 hours, 172 minutes. Divide the minutes by 60 using INT divinsion - 172\60 = 2 or INT(172/60) = 2, so you have to add 2 hours to...
Forum: Visual Basic 4 / 5 / 6 Dec 23rd, 2008
Replies: 1
Views: 439
Posted By SCBWV
If you're using the RichTextBox, this may help. http://www.vbforums.com/showthread.php?t=275310
Forum: Visual Basic 4 / 5 / 6 Nov 18th, 2008
Replies: 0
Views: 309
Posted By SCBWV
A friend asked me to write a program that dials a telephone number and checks for the presence of a 1000 Hz tone. Any suggestions?
Forum: Visual Basic 4 / 5 / 6 Nov 18th, 2008
Replies: 2
Views: 829
Posted By SCBWV
The Str function returns a leading space for the sign of number. Could that be messing you up? Sinec the leading space is there, you could use "R01" & str$(99)
Forum: Visual Basic 4 / 5 / 6 Nov 18th, 2008
Replies: 2
Views: 648
Posted By SCBWV
Why are you using extra quotes?

ScriptPathandFile = "S:\DsnTools\Drawing Search Tool\UNIT ARRAY\" & ScriptFileName

should do just fine
Forum: Visual Basic 4 / 5 / 6 Feb 25th, 2008
Replies: 8
Views: 2,793
Posted By SCBWV
There is no Value property in a VB 6 timer.

The Interval property specifies the number of milliseconds between calls to a Timer control's Timer event. For example, if set to 10, the Timer1.Timer...
Forum: Visual Basic 4 / 5 / 6 Feb 24th, 2008
Replies: 8
Views: 2,793
Posted By SCBWV
Try resetting the Interval property.
Forum: Visual Basic 4 / 5 / 6 Feb 4th, 2008
Replies: 10
Views: 6,861
Posted By SCBWV
Yes, the SysInfo control has an event called DisplayChanged which fires when the screen resolution has been changed. It has many others, including one for SysColorsChanged, several for battery...
Forum: Visual Basic 4 / 5 / 6 Feb 4th, 2008
Replies: 3
Views: 1,351
Posted By SCBWV
No, never figured it out. And if you eliminate the common controls, you lose the XP theme, but it does fix the problem. Wish I knew what was going on.
Forum: Visual Basic 4 / 5 / 6 Jan 31st, 2008
Replies: 4
Views: 927
Posted By SCBWV
You misspelled bordercolor

line1.bodercolor = vbRed
line1.bodercolor = vbBlack

line1.bordercolor = vbRed
line1.bordercolor = vbBlack
Forum: Visual Basic 4 / 5 / 6 Jan 26th, 2008
Replies: 3
Views: 773
Posted By SCBWV
First of all, you declared MTime as Byte when you're using it as an integer. Secondly, why not just use the Timer event instead of MTime?

Private Sub Form_Load()
MMControl1.Command = "Open"...
Forum: Visual Basic 4 / 5 / 6 Jan 26th, 2008
Replies: 12
Views: 2,851
Posted By SCBWV
Been my experience that USB won't use an AutoRun.Inf file like a CD will.
Showing results 1 to 40 of 102

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC