PDA

Click to See Complete Forum and Search --> : button cancel


carlosapv
Nov 30th, 1999, 05:17 AM
running once aplication the program if disable for the process and function and not permited accesing the button of cancel process ejm:


button ok - button cancel - button exit

press button ok not permited press the button cancel and exit only the finish of the process how mantraince activate the button when runnig process


thank



------------------
capv

Compwiz
Nov 30th, 1999, 05:25 AM
I don't understand your question. Do you mean this:

Private Sub Form_Unload(Cancel As Integer)
If MsgBox("Are you sure you want to quit?", vbYesNo, "Quit") = vbNo Then Cancel = True
End Sub

??

------------------
Tom Young, 14 Year Old
tyoung@stny.rr.com
ICQ: 15743470 (http://wwp.icq.com/15743470) Add Me (http://wwp.icq.com/scripts/search.dll?to=15743470) ICQ Me (http://wwp.icq.com/scripts/contact.dll?msgto=15743470)
AIM: TomY10 (http://www.aol.com/aim/aim30.html)
PERL, JavaScript and VB Programmer

carlosapv
Nov 30th, 1999, 05:35 AM
not, create command button and press one this button processing your function and not permited accesing the form ant other command button the image of the form is locked to finish of processing

who mantaince active other command button when procesing somewere other command button

------------------
capv

Aaron Young
Dec 1st, 1999, 02:18 AM
Do you mean when you start a Function you can't access the other Buttons until it's Finished Processing?

If so, insert a call to DoEvents in your Function, eg.

Private Sub cmdStop_Click()
cmdStop.Tag = "X"
End Sub

Private Sub cmdStart_Click()
Dim iCount As Long
cmdStop.Tag = ""
While Len(cmdStop.Tag) = 0
iCount = iCount + 1
Caption = iCount
DoEvents
Wend
End Sub



------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
adyoung@win.bright.net