@@ -12,6 +12,9 @@ class ToolTipForm : Form
1212 {
1313 FormattedText _text ;
1414 private Label label ;
15+ private Label label1 ;
16+ private ToolTip toolTip1 ;
17+ private System . ComponentModel . IContainer components ;
1518 Win32Window _owner ;
1619
1720 public ToolTipForm ( IntPtr hwndOwner )
@@ -171,25 +174,38 @@ private void DrawString(Graphics g, Brush brush, ref Rectangle rect, out Size us
171174
172175 private void InitializeComponent ( )
173176 {
177+ this . components = new System . ComponentModel . Container ( ) ;
174178 this . label = new System . Windows . Forms . Label ( ) ;
179+ this . label1 = new System . Windows . Forms . Label ( ) ;
180+ this . toolTip1 = new System . Windows . Forms . ToolTip ( this . components ) ;
175181 this . SuspendLayout ( ) ;
176182 //
177183 // label
178184 //
179185 this . label . AutoSize = true ;
180- this . label . ForeColor = System . Drawing . Color . FromArgb ( 64 , 64 , 64 ) ;
186+ this . label . ForeColor = System . Drawing . Color . FromArgb ( ( ( int ) ( ( ( byte ) ( 64 ) ) ) ) , ( ( int ) ( ( ( byte ) ( 64 ) ) ) ) , ( ( int ) ( ( ( byte ) ( 64 ) ) ) ) ) ;
181187 this . label . Location = new System . Drawing . Point ( 3 , 3 ) ;
182188 this . label . Name = "label" ;
183189 this . label . Size = new System . Drawing . Size ( 105 , 13 ) ;
184190 this . label . TabIndex = 0 ;
185191 this . label . Text = "Some long label text." ;
186192 //
193+ // label1
194+ //
195+ this . label1 . BackColor = System . Drawing . Color . CornflowerBlue ;
196+ this . label1 . Location = new System . Drawing . Point ( 0 , 0 ) ;
197+ this . label1 . Name = "label1" ;
198+ this . label1 . Size = new System . Drawing . Size ( 2 , 2 ) ;
199+ this . label1 . TabIndex = 0 ;
200+ this . toolTip1 . SetToolTip ( this . label1 , "IntelliSense by Excel-DNA" ) ;
201+ //
187202 // ToolTipForm
188203 //
189204 this . AutoSizeMode = System . Windows . Forms . AutoSizeMode . GrowAndShrink ;
190205 this . BackColor = System . Drawing . Color . White ;
191206 this . ClientSize = new System . Drawing . Size ( 114 , 20 ) ;
192207 this . ControlBox = false ;
208+ this . Controls . Add ( this . label1 ) ;
193209 this . DoubleBuffered = true ;
194210 this . ForeColor = System . Drawing . Color . DimGray ;
195211 this . FormBorderStyle = System . Windows . Forms . FormBorderStyle . FixedToolWindow ;
0 commit comments