Results 1 to 7 of 7

Thread: Refreshing Form

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Location
    Zichron Yaacov, Israel
    Posts
    3
    Hello All!

    I got a form which after the action on it is finished, Its unload it, When i call it agein (by the show method) I see it in his last position. How do i do that every time its loaded its been shown in his inizilize mode?

    Omri.
    Best Regrads,
    Omri Ariav
    ICQ: 8006935
    [email protected]
    http://www.planes.co.il

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845

    if you laod the form before showing it you can move it to wherever you want

    Code:
    Private Sub Command1_Click()
     Load Form2
     Form2.Move 0, 0 'move it to wherever you want it
     Form2.Show
    End Sub
    Mark
    -------------------

  3. #3
    Member
    Join Date
    Mar 2000
    Location
    Staffodshire, England
    Posts
    32
    You could set the settings for the form in the form_load,

    Just as an example, say you have a label or a text box on the form, you could.

    form_load
    label1 = clear
    text1 = clear
    end sub

    Mark

  4. #4

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Location
    Zichron Yaacov, Israel
    Posts
    3

    Thanks!

    Ok Fox, That helped me a lot.

    Thank You Very Much For The Help.
    Best Regrads,
    Omri Ariav
    ICQ: 8006935
    [email protected]
    http://www.planes.co.il

  5. #5
    Addicted Member
    Join Date
    Aug 2004
    Posts
    176

    data grid refresh at runtime

    hi

    i have a similar problem.
    i have a datagrid that is populated by a stored procedure. i m using sql server as the database.
    every time i work on a form i want the changes in the data to be directly updated in the data grid at runtime

    regards

  6. #6
    PowerPoster Deepak Sakpal's Avatar
    Join Date
    Mar 2002
    Location
    Mumbai, India
    Posts
    2,424
    hehe... you replied to an existing thread instead of creating new one. Anyways...

    Suppose u have created a recordset Rs1 which is bounded to DataGrid1 then...

    Rs1.Requery

    will refresh datagrid records automatically.

  7. #7
    Addicted Member
    Join Date
    Aug 2004
    Posts
    176
    thanks
    but i have already tried the requery method

    i m using a data environment as the data source and the command type as a stored procedure.
    when the command type is a table, requery works fine but it gives an error with stored procedures

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width