我的vb6主窗口执行后为什么在工具栏上找不到?
用ALT+TAB 键也看不到我的应用程序窗口。这样每次切换窗口很麻烦。
但是我新建一个新工程,主窗口执行后可以看到。
哪位大哥帮忙!

解决方案 »

  1.   

    窗体的属性是怎么设置的?把窗体文件复制一下,然后将复制的窗体文件的后缀改成DOC,保存成一个WORD文档,再将内容发上来看看
      

  2.   

    你设置一下窗口的BorderStyle属性
      

  3.   

    原因也没有说清楚,是在任务栏吧,还有啊,你为什么在API社区发这个贴呢?
    你还是把你的原因说多一些再说吧,如果是用API创建的窗口的话,那么有可能是没有把它显示出来
    其它原因,先说清楚一点了。
      

  4.   

    VERSION 5.00
    Begin VB.Form frmLookUp 
       Caption         =   "K/3资料查询示例"
       ClientHeight    =   4650
       ClientLeft      =   1725
       ClientTop       =   2205
       ClientWidth     =   8685
       BeginProperty Font 
          Name            =   "宋体"
          Size            =   9
          Charset         =   0
          Weight          =   400
          Underline       =   0   'False
          Italic          =   0   'False
          Strikethrough   =   0   'False
       EndProperty
       LinkTopic       =   "Form1"
       ScaleHeight     =   4650
       ScaleWidth      =   8685
       Begin VB.TextBox Text1 
          Height          =   2265
          Left            =   120
          MultiLine       =   -1  'True
          ScrollBars      =   3  'Both
          TabIndex        =   8
          Text            =   "frmLookUp.frx":0000
          Top             =   2325
          Width           =   8475
       End
       Begin VB.TextBox txtUnitGroup 
          Height          =   300
          Left            =   1860
          TabIndex        =   6
          Top             =   1410
          Width           =   2565
       End
       Begin VB.CommandButton cmdFind 
          Caption         =   "查询"
          Height          =   360
          Left            =   5190
          TabIndex        =   5
          Top             =   810
          Width           =   1170
       End
       Begin VB.CommandButton cmdExplore 
          Caption         =   "选择(&S)"
          Height          =   360
          Left            =   5175
          TabIndex        =   4
          Top             =   270
          Width           =   1170
       End
       Begin VB.TextBox txtNumber 
          Height          =   300
          Left            =   1170
          TabIndex        =   2
          Top             =   885
          Width           =   3285
       End
       Begin VB.ComboBox cboClass 
          Height          =   300
          Left            =   1170
          Style           =   2  'Dropdown List
          TabIndex        =   0
          Top             =   285
          Width           =   3285
       End
       Begin VB.Label lblDesc 
          AutoSize        =   -1  'True
          Caption         =   "资料涉及的常数说明:"
          Height          =   180
          Left            =   45
          TabIndex        =   9
          Top             =   2025
          Width           =   1710
       End
       Begin VB.Label lblUnitGroup 
          AutoSize        =   -1  'True
          Caption         =   "计量单位组代码(&G):"
          Height          =   180
          Left            =   135
          TabIndex        =   7
          Top             =   1470
          Width           =   1620
       End
       Begin VB.Label lblClass 
          AutoSize        =   -1  'True
          Caption         =   "资料类型(&N):"
          Height          =   180
          Left            =   75
          TabIndex        =   3
          Top             =   300
          Width           =   1080
       End
       Begin VB.Label lblNumber 
          AutoSize        =   -1  'True
          Caption         =   "代码(&N):"
          Height          =   180
          Left            =   435
          TabIndex        =   1
          Top             =   975
          Width           =   720
       End
    End
    Attribute VB_Name = "frmLookUp"
    Attribute VB_GlobalNameSpace = False
    Attribute VB_Creatable = False
    Attribute VB_PredeclaredId = True
    Attribute VB_Exposed = FalseOption Explicit
    ......
    下面就是具体代码了。
    我就是简单的窗口阿,没有用API
      

  5.   

    我想这个问题的答案就是上面那个朋友说的那样,SHOWINTASKBAR属性.