Highlighted
Absent Member.
Absent Member.
1083 views

Showing message boxes / progess info from within legacy code..

Jump to solution

A great number of our programs we're currently converting from our old DIALOG system contain simple calls to a dialog panel in order to show progress of the application by way of employees processed, name of employee being processed etc etc.

The programs that contain these 'snippit calls' to dialog are large and are doing the bulk of the processing. To this end we want to keep these as 'legacy programs' and make calls to them from the .net screen programs wherever possible.

As such these 'legacy' programs are compiled into the solutions as class library programs but with all the code being 'old' as in using perform statements as opposed to invoke etc.

Is there a way of including call outs to a message box from within these 'legacy programs' using data passed to them in order to continue to show the data as it is processed as, at the moment, when I attempt to put code such as "invoke type System.Windows.Form.MessageBox(xxxx" within the legacy code itself I just get a pile of errors.

0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Showing message boxes / progess info from within legacy code..

Jump to solution

If these legacy procedural programs are compiled as managed code then you can use the MessageBox class directly from them but you will have to add the correct assemblies to the project references.

Please see this previous post which covers the details of this task.

Thanks.

View solution in original post

0 Likes
1 Reply
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Showing message boxes / progess info from within legacy code..

Jump to solution

If these legacy procedural programs are compiled as managed code then you can use the MessageBox class directly from them but you will have to add the correct assemblies to the project references.

Please see this previous post which covers the details of this task.

Thanks.

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.