How to display a mathematical formula in a form and in a messagebox?
I found an article to enable users to Write Math Equations in a Web Even though there includes a vb.net version I can make it to work on visual studio 2010 for a desktop app
I have seen it uses:
[System.Runtime.InteropServices.DllImport("MimeTex.dll")]
internal static extern int CreateGifFromEq(string expr,
string fileName);
But how to do analog for vb.net?
I know I have to include
Imports System.Runtime.InteropServices
then
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
but I get:
Error 1 'CreateGifFromEq' is not declared. It may be inaccessible due to its protection level.
when using
CreateGifFromEq("((x+4+9+8)/2)*0.8", "image.png")
Is there a way to draw equations and show it in a messagebox?