Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Intraweb self-recreate IWForm

Posted on 2010-11-17
2
Medium Priority
?
899 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Accepted Solution

by:
ebob42 earned 2000 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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

604 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