Solved

Intraweb self-recreate IWForm

Posted on 2010-11-17
2
859 Views
Last Modified: 2013-11-23
Got Intraweb TIWForm which needs to recreate itself.
As it irecreates itself, the older form needs to be released.

If there is no sucj solution.. an alternative delphi (Indy,etc)  TCP implementation is acceptable
TIA


0
Comment
Question by:controlr
2 Comments
 
LVL 7

Accepted Solution

by:
ebob42 earned 500 total points
ID: 34156834
If you create a new form and show it, it will become the topmost of the stack. You can then release yourself.

This can be done in two lines of code:

  TIWFormMain.Create(WebApplication).Show;
  Release

The first one creates the form (assuming the type of the form it TIWFormMain at this time), and then shows it, while the second line releases the current form itself.

I can't help but wonder why you would need this? ;-)
procedure TIWFormMain.IWButton3Click(Sender: TObject);

begin

  TIWFormMain.Create(WebApplication).Show;

  Release

end;

Open in new window

0
 

Author Comment

by:controlr
ID: 34156975
this will take care of the IURL issue.. and probably much faster!
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This video discusses moving either the default database or any database to a new volume.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now