@@ -14,8 +14,8 @@ class ToolTipForm : Form
1414 {
1515 FormattedText _text ;
1616 Label label ;
17- Label label1 ;
18- ToolTip toolTip1 ;
17+ Label labelDna ;
18+ ToolTip tipDna ;
1919 System . ComponentModel . IContainer components ;
2020 Win32Window _owner ;
2121
@@ -130,7 +130,7 @@ protected override CreateParams CreateParams
130130 //if (_createParams == null)
131131 {
132132 const int CS_DROPSHADOW = 0x00020000 ;
133- const int WS_CHILD = 0x40000000 ;
133+ // const int WS_CHILD = 0x40000000;
134134 const int WS_EX_TOOLWINDOW = 0x00000080 ;
135135 const int WS_EX_NOACTIVATE = 0x08000000 ;
136136 // NOTE: I've seen exception with invalid handle in the base.CreateParams call here...
@@ -225,8 +225,8 @@ void InitializeComponent()
225225 {
226226 this . components = new System . ComponentModel . Container ( ) ;
227227 this . label = new System . Windows . Forms . Label ( ) ;
228- this . label1 = new System . Windows . Forms . Label ( ) ;
229- this . toolTip1 = new System . Windows . Forms . ToolTip ( this . components ) ;
228+ this . labelDna = new System . Windows . Forms . Label ( ) ;
229+ this . tipDna = new System . Windows . Forms . ToolTip ( this . components ) ;
230230 this . SuspendLayout ( ) ;
231231 //
232232 // label
@@ -239,22 +239,26 @@ void InitializeComponent()
239239 this . label . TabIndex = 0 ;
240240 this . label . Text = "Some long label text." ;
241241 //
242- // label1
242+ // labelDna
243243 //
244- this . label1 . BackColor = System . Drawing . Color . CornflowerBlue ;
245- this . label1 . Location = new System . Drawing . Point ( 0 , 0 ) ;
246- this . label1 . Name = "label1" ;
247- this . label1 . Size = new System . Drawing . Size ( 2 , 2 ) ;
248- this . label1 . TabIndex = 0 ;
249- this . toolTip1 . SetToolTip ( this . label1 , "IntelliSense by Excel-DNA" ) ;
244+ this . labelDna . BackColor = System . Drawing . Color . CornflowerBlue ;
245+ this . labelDna . Location = new System . Drawing . Point ( 0 , 0 ) ;
246+ this . labelDna . Name = "labelDna" ;
247+ this . labelDna . Size = new System . Drawing . Size ( 2 , 2 ) ;
248+ this . labelDna . TabIndex = 0 ;
249+ this . tipDna . SetToolTip ( this . labelDna , "IntelliSense by Excel-DNA" ) ;
250+ //
251+ // tipDna
252+ //
253+ this . tipDna . ShowAlways = true ;
250254 //
251255 // ToolTipForm
252256 //
253257 this . AutoSizeMode = System . Windows . Forms . AutoSizeMode . GrowAndShrink ;
254258 this . BackColor = System . Drawing . Color . White ;
255259 this . ClientSize = new System . Drawing . Size ( 114 , 20 ) ;
256260 this . ControlBox = false ;
257- this . Controls . Add ( this . label1 ) ;
261+ this . Controls . Add ( this . labelDna ) ;
258262 this . DoubleBuffered = true ;
259263 this . ForeColor = System . Drawing . Color . DimGray ;
260264 this . FormBorderStyle = System . Windows . Forms . FormBorderStyle . FixedToolWindow ;
0 commit comments