win98下vb编译的exe程序,在另一台win98上运行时,label,text中字体字体很难看,请问有什么办法解决吗?

解决方案 »

  1.   

    在程序中设置字体:(不管安在哪台上,都能正确显示!)
    with label1.font
      .name="宋体"
      .size=9
    end with
      

  2.   

    private sub form_load()
     dim ctl as control
     ..... on error resume next
     for each ctl in controls
       ctl.font.name="宋体"
     next
    end sub
      

  3.   

    是字体大小问题,Win2000中的默认的字体大小和98中默认的字体大小不同(系统默认的字体大小),所以如果你在程序中指定字体大小问题就解决了。
      

  4.   

    你是没安装吧,如果没安装也能运行,你可以将VB6CHS.DLL这个语言包带上就可以了~~
      

  5.   

    不要使用任何特殊字体,只用宋体。
    为保证这一点,可以在每个From里的Form_Load事件里加上下面的东东。Private Sub Form_load()
     Dim ctl As Control
     Dim oFont As StdFont On Error Resume Next
     For Each ctl In Controls
       Set oFont = ctl.Font
       With oFont
         .Name = "宋体"
         .Charset = 134
       End With
     Next
    End Sub注意上面的Charset一定要设。