只有重新拖非數據的Command了,再Copy Code但用Command數組會更好的呀,EXE會更快更小呀

解决方案 »

  1.   

    其实你在复制粘贴时,系统会问你是否建立控件数据时你选"否"就行啦!打开.frm文件!把name改掉!把index去掉就行啦!
    例如
       Begin VB.CommandButton Command1 
    >  Begin VB.CommandButton Command11  把上面的一行改成
          Caption         =   "Command1"
          Height          =   330
    >      Index           =   1  把此行去掉
          Left            =   690
          TabIndex        =   1
          Top             =   1845
          Width           =   1185
       End
       Begin VB.CommandButton Command1 
    >  Begin VB.CommandButton Command10  把上面的一行改成
          Caption         =   "Command1"
          Height          =   330
    >      Index           =   0  把此行去掉
          Left            =   690
          TabIndex        =   0
          Top             =   1095
          Width           =   1185
       End
      

  2.   

    把组全部删除,再建个COMMAND控件不就行了
      

  3.   

    unload就可以了比如想删除command1(0)
    unload command1(0)
      

  4.   

    to tony_jian(神经质男主角):
    你说得不对吧!如果是编辑状态时放上去的控件数组,在运行时是不能用unload去掉的!
      

  5.   

    单击属性 把 Index 的值去掉