아담 난 그냥이의 매우 간단한 버전을 구현했습니다과 정확히 예상대로 작동 말한다
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.trackBar1 = new System.Windows.Forms.TrackBar();
((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit();
this.SuspendLayout();
//
// trackBar1
//
this.trackBar1.Location = new System.Drawing.Point(12, 166);
this.trackBar1.Name = "trackBar1";
this.trackBar1.Size = new System.Drawing.Size(268, 42);
this.trackBar1.TabIndex = 1;
this.trackBar1.Scroll += new System.EventHandler(this.trackBar1_Scroll);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(292, 273);
this.Controls.Add(this.trackBar1);
this.Name = "Form1";
this.Text = "Form1";
((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
private void trackBar1_Scroll(object sender, EventArgs e)
{
toolTip1.SetToolTip(trackBar1, trackBar1.Value.ToString());
}
그리고 각 추가 증분으로 시세를 움직이면 작동합니다 ...
Aaargh! 너는 맞다 Eoin, 일한다. 트랙 바 스크롤러를 호출하지 못하게하는 코드에서 다른 곳에서 버그를 발견했습니다. Stack Overflow에 게시하기 전에이 내용을 더 신중하게 확인해야합니다. 이것은 좋은 코드 예제이지만, 나는 그것을 허용 된 대답으로 만들 것입니다. –