vb6 form 怎樣call vb.net form?

2007-02-05 5:08 pm
假設vb有個form名叫做form1,而vb.net有個form叫做form2
咁我可以點樣係vb到打什麽code至可以call到vb.net form2?
相反係vb.net又可以打什麽可以call到vb form1呢?
簡單來說我需要vb6 and vb.net既application form互相連接
請賜教~~謝啦~
如果有咩野好既網址~~請介紹給我

回答 (4)

2007-02-09 6:15 pm
✔ 最佳答案
係vb.net用com class寫個class,
vb6 call個class,個class call張form,
get完個result計完數,
再比vb6讀返個calss既Proporty.

2007-02-12 09:59:02 補充:
一個簡單例子:http://download.yousendit.com/7D156D3830899795

2007-02-12 10:07:31 補充:
M$都有講點整com classhttp://support.microsoft.com/kb/817248/zh-tw
參考: 自己
2007-02-06 8:37 am
You need to write a COM module or a C module wrapping your .NET module. Then your VB application calls to either the COM module or the C module.
2007-02-06 1:51 am
form唔可以,只係得class可以
2007-02-05 5:21 pm
I don't think they can be called interchangingly because they're of different frameworks. However, Microsoft does provide some ways for them to communicate.

http://support.microsoft.com/ph/2965


收錄日期: 2021-04-13 14:47:37
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20070205000051KK00535

檢視 Wayback Machine 備份