Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling VFP form in .NET
Message
De
16/06/2007 07:24:10
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
À
16/06/2007 04:10:41
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01233711
Message ID:
01233717
Vues:
12
You have to issue a .Show() method somewhere to activate the form in .net.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace TestClass
{
  public partial class Form1 : Form
    {
    public Form1()
      {
      InitializeComponent();
      }

    // ** I did this from a toolbar, but could go anywhere. **
    private void xonclick(object sender, EventArgs e)
      {
      //*********************************************
      myserver.myclass xform = new myserver.myclass();
      int prnt = (int) this.Handle;
      int y = xform.SetParent(prnt);
      //*********************************************
      }
    }
}
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform