Jump to content


Photo

setFont - Problems with vb.net


No replies to this topic

#1 deca9855

deca9855

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 22 August 2018 - 01:11 PM

vb.net 2010
---------------------------------
 
       Dim sFonts(6) As String
        Dim lfontsSet(6) As Long
        sFonts(1) = "Arial"
        sFonts(2) = "Courier New"
        sFonts(3) = "Times New Roman"
        sFonts(4) = "Arial Black"
        sFonts(5) = "MS Gothic"
        sFonts(6) = "Segoe UI"
        Call cAvax1.SetFonts(sFonts, lfontsSet) <-- error 
-----------------------------------------------
vb6 is normal. An allocation error occurs in .NET
 
 
 
 
       Dim sFonts(6) As String
      Dim lfontsSet() As Long <--- ok pass
        sFonts(1) = "Arial"
        sFonts(2) = "Courier New"
        sFonts(3) = "Times New Roman"
        sFonts(4) = "Arial Black"
        sFonts(5) = "MS Gothic"
        sFonts(6) = "Segoe UI"
        Call cAvax1.SetFonts(sFonts, lfontsSet) <-- ok pass 
 
In this case, no error occurs.
But, A memory error occurs when inserting text into the avx control.
 
help me....

 





Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users