Results 1 to 4 of 4

Thread: Odd 2 form issue * Resolved *

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2001
    Posts
    244

    Odd 2 form issue * Resolved *

    Came across something today and I am not quite sure how to get around it or why it is happening. I dont have access to the code here so I will post it tomorrow if you need to see it but here is what's happening:

    I have two forms. MainForm and LogForm. MainForm is the app itself and LogForm is nothing more than a form with a textbox (txtLog).

    During the execution on MainForm data gets appended to the txtLog text box on LogForm (LogForm.txtLog.AppendText, etc....) This works great and if I open up the log the data is appended properly. However if I try to execute the command again once I view the log the code breaks and on the line where it writes to the txtLog file it comes back saying that it cannot access the textbox.

    Now the odd thing is I can execute the command as many times as I want so long as I never call up that LogForm form. However the second I do if I try to run the command again that appends the text it dies.

    Anyone have any thoughts on this. I am calling the form (LogForm) with a simple

    Dim LogForm as New frmLog
    frmLog.Show()

    Which might even be the problem, I just dont know.

    Oh yea and to close the LogForm it is just a cmd button of Me.Close.

    Thanks in advance.

    Jim
    Last edited by jlegan; May 20th, 2003 at 03:56 PM.

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