1、我有一个1M大小的字符串,我不能定义为string类型,因为string类型有长度限制,该定义为什么类型呢?
2、我用代码new form,怎样才能向新form中添加控件。

解决方案 »

  1.   

    1:
    access:   备注
    sqlserver:text2:
    啥意思?
      

  2.   

    问题2解决
    在form1中代码
    Private Sub Command1_Click()
        Dim MyForm As New Form1
        MyForm.Controls.Add "VB.CommandButton", "cmdObj1", MyForm
        With MyForm!cmdObj1
          .Visible = True
          .Width = 2000
          .Caption = "Dynamic Button"
        End With
        MyForm.Show
    End Sub
      

  3.   

    问题1:ACCESS中用备注类开,SQL用TEXT类型
    问题2:Form1.Controls.Add "VB.TextBox", "text1", Form1
     Form1!cmdobj1.Visible = True
      

  4.   

    问题1:ACCESS中用备注类开,SQL用TEXT类型
    问题2:Form1.Controls.Add "VB.TextBox", "text1", Form1
     Form1!text1.Visible = True
      

  5.   

    对不起是我没有说完整,在VB中我要从Webbrowser的document对象中读取文档的所有内容到一个字符串中,然后替换其中的一部份内容并赋给webbrowser的document对象,然后再将document显示到webbrowser中。显然必须在VB中进行,不能用到数据库。
      

  6.   

    用一个隐藏的text控件试一试!
      

  7.   

    Text控件.对字符串长度上限=String.上限