Solved

Intraweb self-recreate IWForm

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

696 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