'宣言 Public Class UltraTrackBar Inherits Infragistics.Win.UltraControlBase Implements Infragistics.Win.AppStyling.ISupportAppStyling, Infragistics.Win.IProvidesEmbeddableEditor, Infragistics.Win.IUltraControl, Infragistics.Win.IUltraControlElement, Infragistics.Win.Touch.ISupportTouchMetrics, Infragistics.Win.UIAutomation.IProvideUIAutomation
public class UltraTrackBar : Infragistics.Win.UltraControlBase, Infragistics.Win.AppStyling.ISupportAppStyling, Infragistics.Win.IProvidesEmbeddableEditor, Infragistics.Win.IUltraControl, Infragistics.Win.IUltraControlElement, Infragistics.Win.Touch.ISupportTouchMetrics, Infragistics.Win.UIAutomation.IProvideUIAutomation
Imports Infragistics.Win.UltraWinEditors Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim trackBar As UltraTrackBar = New UltraTrackBar() Me.Controls.Add(trackBar) trackBar.Location = New Point(10, 10) End Sub
using Infragistics.Win.UltraWinEditors; private void Form1_Load(object sender, EventArgs e) { UltraTrackBar trackBar = new UltraTrackBar(); this.Controls.Add(trackBar); trackBar.Location = new Point(10,10); }