CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2000
    Posts
    22

    Multiple Instance of Dailog Troubles Me

    In My App I am using Multiple instance of a Dialog Box. BUT With Diff.Text
    Ex : Text1.text=TimeWhenIgotCreated.
    In My App Every 15 Sec I have to update these Dialog With Various Stats.

    So the Form Name for all 4 Instance are same.
    I know the Text1.text in all 4 instance. Can I change using that.

    OR
    CAN I GET WINDOWs Hangle/DC to check and modify One instance of the 4.



  2. #2
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: Multiple Instance of Dailog Troubles Me

    When you create the Instance of your DIalog, you should have been provided a handle to it which can be saved and refered back to at a later time. Small sample"

    set mNewPage = new Page ' Create a new page
    mColl.Add mNewPage ' Add page to a collection
    '
    ' later to access this Instance

    set ActivePage = mcoll(IndexNumber )
    ActivePage.Textboxname.Text = "Updted Value"




    John G

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

Featured