我想做这样的东东:在我做的程序的右上角除了有关闭,最大化,最小化按钮之外还有一个按钮,他的图案为一个问号。在点击了他之后鼠标会变成一个问号的形状,然后在你点击某一些该窗体的部位的时候(比如一个图片控件)的时候会出现帮助,形式为在鼠标的当前地方出现一个黄颜色的小框框(像ToolsTipText控件的实现效果一样)其中含有帮助的文本。望大家给我指点思路。谢谢大家!

解决方案 »

  1.   

    WhatsThisButton Property
          Returns or sets a value that determines whether the What's This button appears in the title bar of a Form object. Read-only at run time.Syntaxobject.WhatsThisButtonThe object placeholder represents an object expression that evaluates to an object in the Applies To list.SettingsThe settings for the WhatsThisButton property are:Setting Description 
    True Turns display of the What's This Help button on. 
    False (Default) Turns display of the What's This Help button off. 
    ResThe WhatsThisHelp property must be True for the WhatsThisButton property to be True. In addition, the following properties must also be set as shown: ControlBox property = True
    BorderStyle property = Fixed Single or Sizable
    MinButton and MaxButton = False 
    – Or –BorderStyle property = Fixed Dialog 
      

  2.   

    就是说把窗体的最大化、最小化按扭取消,
    窗体WhatsThisButton设成true
    目标控件或窗体的WhatsThisHelp设成true
    工程属性中设置Help文件
    设置目标控件或窗体的HelpContextID
      

  3.   

    谢谢大家的帮助,但我有两个东西不太明白:
    1。我不太清楚HelpContextID的含义,以及怎样使用
    2。如果按照 hhjjhjhj(大头) 所说的做的话,是不是在点机了某个控件之后会打开帮助文件,并且找到相关的页面呢?可是我希望的是能实现ToolsTipText控件的效果呀?!
    希望得到大家的继续帮助,谢谢!
      

  4.   

    1.会用VB自带的帮助文件制作器制作.hlp文件就知道了
    2。那用WhatsThisHelpID属性,(窗体没这属性)
      

  5.   

    能否给出一个设置HelpContextID还有WhatsThisHelpID属性的例子呢?我还没有设置过,望给一点帮助,可以吗?