form is loaded or not

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • muddasirmunir
    Contributor
    • Jan 2007
    • 284

    form is loaded or not

    how can we know that the form is loaded or not.

    just like other control like recorset we can check by this code
    whether the recorset is open or not

    if recordset.state = 1 then (do some work)

    how can we check
    if form1.state= 1 then(there is no form1.state object )
    so how can we know that form is loaded or not
  • QVeen72
    Recognized Expert Top Contributor
    • Oct 2006
    • 1445

    #2
    Hi,

    In VB6, you cannot Check the State of the Form directly, thats because, if you try to access any Property of the Form, the Form Gets Loaded. What you can do is Loop through the Form's collection and find if the name matches with your search form name..

    Regards
    Veena

    Comment

    • muddasirmunir
      Contributor
      • Jan 2007
      • 284

      #3
      actually i had a datagrid which shows the results of query
      now,i want that if i edit or delted any field which is showing in datagrid(in another form) if the datagrid form is loaded then it automaticaly refresh
      data
      so is there any way which i can do this

      Comment

      • anuragshrivastava64
        New Member
        • Jan 2007
        • 66

        #4
        Originally posted by muddasirmunir
        actually i had a datagrid which shows the results of query
        now,i want that if i edit or delted any field which is showing in datagrid(in another form) if the datagrid form is loaded then it automaticaly refresh
        data
        so is there any way which i can do this

        Try to refresh Datagrid in Form_activate Event

        Comment

        Working...