0
如何在窗體和消息框中顯示數學公式?在窗體和消息框中顯示數學公式VB.NET
我found an article to enable users to Write Math Equations in a Web 即使有包括vb.net版我可以使它對Visual Studio 2010中工作的桌面應用程序
我已經看到它使用:
[System.Runtime.InteropServices.DllImport("MimeTex.dll")]
internal static extern int CreateGifFromEq(string expr,
string fileName);
但如何爲vb.net做類比嗎?
我知道我必須包括
Imports System.Runtime.InteropServices
然後
Friend Class NativeMethods
<DllImport("MimeTex", CharSet:=CharSet.Auto, SetLastError:=True)> _
Public Shared Function CreateGifFromEq(ByVal expr As String, ByVal fileName As String) As Integer
End Function
End Class
,但我得到:
使用
CreateGifFromEq("((x+4+9+8)/2)*0.8", "image.png")
當3210
有沒有辦法繪製方程並將其顯示在消息框中?
創建一個自定義對話框窗體中的圖片框,並顯示你的方程圖像? – Adrian
一切都清楚,我的答案是? – varocarbas