papiya
Jul 18th, 2000, 07:32 PM
One form A in my program Loads another form B with a component DBList called DBList1.
Form A code
-----------
Private Sub cmdRuncoeff_click
Load B
end sub
Form B code
-----------
Private Sub cmdDone_click
' Some code here
Unload me
end sub
Private Sub DBList1_click
' Some code here
end sub
Now whenever form B is loaded by form A the Sub DBList1_click is executed. Why?? I am going crazy over this.
If I change it to dblclick then it doesnt get executed on load.
Same thing happens when it executes "Unload me" in the cmdDone_click.
Please Help!!!!
Form A code
-----------
Private Sub cmdRuncoeff_click
Load B
end sub
Form B code
-----------
Private Sub cmdDone_click
' Some code here
Unload me
end sub
Private Sub DBList1_click
' Some code here
end sub
Now whenever form B is loaded by form A the Sub DBList1_click is executed. Why?? I am going crazy over this.
If I change it to dblclick then it doesnt get executed on load.
Same thing happens when it executes "Unload me" in the cmdDone_click.
Please Help!!!!