Solved

Intraweb self-recreate IWForm

Posted on 2010-11-17
2
865 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

862 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

23 Experts available now in Live!

Get 1:1 Help Now