Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Invalid procedure call or argument 'txtAmount.SetFocus'

$
0
0
im working on a school project, im creating a simple registration system, my instructor wants an interaction of two vb6 forms, so what i did is i search a member in formMember then lstMember,and in lstMember, doubleclick event, the member id and name will go to formTransaction(Payment something) and then setfocuses on txtamount.text, but it creates an error "Inalid Procedure call or argument" heres the code:


 Private Sub lstMember_DblClick()
    
    FormTransaction.lblMember.Caption = lstMember.ListItems(lstMember.SelectedItem.Index).Text
    FormTransaction.txtAmount.Enabled = True
    FormTransaction.txtAmount.SetFocus
    
    Unload Me
    
 End Sub




i just want it to focus on txtamount on FormTransaction after i double click the lstmember in FormMember.
hope someone can help me on this code, or any other ideas wud be ok...

sorry for the wrong spellings..

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>