vb.net中画面show的问题,项目今天要完成,急求高手,在线等待
画面class文件继承System.MarshalByRefObject,然后整个画面程序做成exe,另外一个程序通过
Dim ch As New IpcClientChannel()
ChannelServices.RegisterChannel(ch, False)
RemotingConfiguration.RegisterWellKnownClientType(GetType(PCust), "ipc://remote/cPCust_uri")
gobjPCust = New PCust
Dim ps() As System.Diagnostics.Process = System.Diagnostics.Process.GetProcessesByName("PTransfer")
If IsNothing(ps) OrElse ps.Length = 0 Then
Dim proc As New Diagnostics.Process
proc.StartInfo.FileName = C_PLU_PATH
proc.Start()
End If
Call System.Threading.Thread.Sleep(1000)
gobjPCust.LoadProc() 注:LoadProc中有画面show方法
类似的通信方法调用画面exe文件,但是程序运行到调用class文件中的show画面方法时候,程序提示画面做成时出现错误。
急寻高手帮忙解决这个问题,在线等待,谢谢。