• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Forms.ToolStripStatusLabel类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Windows.Forms.ToolStripStatusLabel的典型用法代码示例。如果您正苦于以下问题:C# ToolStripStatusLabel类的具体用法?C# ToolStripStatusLabel怎么用?C# ToolStripStatusLabel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ToolStripStatusLabel类属于System.Windows.Forms命名空间,在下文中一共展示了ToolStripStatusLabel类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: StatusService

        public StatusService(Form mainForm)
        {
            m_mainForm = mainForm;

            m_statusStrip = new StatusStrip();
            m_statusStrip.Name = "StatusBar";
            m_statusStrip.Dock = DockStyle.Bottom;
            // statusStrip items  are laid out horizontally and overflow as necessary.
            m_statusStrip.LayoutStyle = ToolStripLayoutStyle.HorizontalStackWithOverflow;
            m_statusStrip.ShowItemToolTips = false;

            // main status text
            m_mainPanel = new ToolStripStatusLabel();
            m_mainPanel.Width = 256;
            m_mainPanel.AutoSize = true;
            m_mainPanel.Spring = true;
            m_mainPanel.TextAlign = ContentAlignment.MiddleLeft;
            m_statusStrip.Items.Add(m_mainPanel);

            m_progressTimer = new Timer(
                progressCallback, this, Timeout.Infinite, ProgressInterval);

            m_progressDialog = new ThreadSafeProgressDialog(false, true);
            m_progressDialog.Cancelled += progressDialog_Cancelled;
        }
开发者ID:JanDeHud,项目名称:LevelEditor,代码行数:25,代码来源:StatusService.cs


示例2: CrmConnectionStatusBar

        /// <summary>
        /// Initializes a new instance of class CrmConnectionStatusBar
        /// </summary>
        public CrmConnectionStatusBar(FormHelper formHelper)
        {
            resources = new System.ComponentModel.ComponentResourceManager(typeof(CrmConnectionStatusBar));

            ConnectionManager.Instance.ConnectionListUpdated += cManager_ConnectionListUpdated;
            _formHelper = formHelper;

            // Build connection control
            this.BuildConnectionControl();

            // Add label that will display information about connection
            ToolStripStatusLabel informationLabel = new ToolStripStatusLabel
            {
                Spring = true,
                TextAlign = ContentAlignment.MiddleRight
            };

            this.Items.Add(informationLabel);

            ToolStripProgressBar progress = new ToolStripProgressBar
            {
                Minimum = 0,
                Maximum = 100,
                Visible = false
            };
            this.Items.Add(progress);

            base.RenderMode = ToolStripRenderMode.Professional;
        }
开发者ID:NORENBUCH,项目名称:XrmToolBox,代码行数:32,代码来源:CrmConnectionStatusBar.cs


示例3: draw

        public void draw(ToolStripStatusLabel label)
        {
            _ctx.translate(280, 200);
            _ctx.scale(0.4, 0.4);

            fly(_ctx, 1, label);
        }
开发者ID:podlipensky,项目名称:sharpcanvas,代码行数:7,代码来源:FlyingDragon.cs


示例4: CreateDefaultStipStatusLabel

 //分離された領域を作成
 private static ToolStripStatusLabel CreateDefaultStipStatusLabel() {
     ToolStripStatusLabel l = new ToolStripStatusLabel();
     l.AutoSize = false;
     l.BorderSides = ToolStripStatusLabelBorderSides.All;
     l.BorderStyle = Border3DStyle.SunkenInner;
     return l;
 }
开发者ID:Ricordanza,项目名称:poderosa,代码行数:8,代码来源:StatusBar.cs


示例5: PowerShellHost

        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="parentForm">The connection form that will display the PowerShell console.</param>
        /// <param name="terminal">Terminal control that will display the PowerShell console.</param>
        /// <param name="executeHelper">Method used to execute PowerShell commands within the current session.</param>
        /// <param name="progressBar">Progress bar UI element to update when writing progress records.</param>
        /// <param name="progressLabel">Label UI element to update when writing progress records.</param>
        public PowerShellHost(
			PowerShellConnectionForm parentForm, TerminalControl terminal, Func<string, Collection<PSObject>> executeHelper, ToolStripProgressBar progressBar,
			ToolStripStatusLabel progressLabel)
        {
            _parentForm = parentForm;
            _powerShellHostUi = new PowerShellHostUi(terminal, executeHelper, progressBar, progressLabel);
        }
开发者ID:cdhunt,项目名称:EasyConnect,代码行数:15,代码来源:PowerShellHost.cs


示例6: ProcessLayer

 public ProcessLayer(ToolStripStatusLabel ProcStatus, TextBox TxtLog)
 {
     m_lb_Status = ProcStatus;
     m_txt_Log = TxtLog;
     bIsRun = false;
     bIsShow = true;
 }
开发者ID:hicream,项目名称:RadioEye,代码行数:7,代码来源:ProcessLayer.cs


示例7: StatusWriter

 /// <summary>
 /// Initialize a status writer.
 /// </summary>
 /// <param name="strip">Status strip holding the messages.</param>
 /// <param name="parent">Parent which contains the status writer.  
 /// (May be invoked recursively across threads).</param>
 /// <param name="crossInvoke">Delegate to invoke cross-threads in parent.</param>
 public StatusWriter(ToolStripStatusLabel strip, Control parent, StatusDelegate crossInvoke)
 {
     this.label = strip;
     this.parentControl = parent;
     this.defaultStatusStripBackColor = strip.BackColor;
     this.crossInvoke = crossInvoke;
 }
开发者ID:knowledgehacker,项目名称:Dryad,代码行数:14,代码来源:Status.cs


示例8: ChatClient

 public ChatClient(string[] args, TextBox output, ToolStripStatusLabel messageToolStripSatusLbl)
 {
     this._outputTxtBx = output;
     this._messageStatus = messageToolStripSatusLbl;
     this._roomVersion = RoomVersion.Base;
     this.Initialize(args);
 }
开发者ID:spolnik,项目名称:Chat_Ice_ZeroC,代码行数:7,代码来源:ChatClient.cs


示例9: QueryStatusBar

        public QueryStatusBar()
        {
            SizingGrip = false;
            Stretch = true;
            DockPadding.All = 0;
            
            _connectionLabel = new ToolStripStatusLabel();
            _connectionLabel.Spring = true;

            _serverLabel = new ToolStripStatusLabel();
            _userLabel = new ToolStripStatusLabel();
            _queryTimeLabel = new ToolStripStatusLabel();
            _rowCountLabel = new ToolStripStatusLabel();

            //		    statusLabel.BorderSides = ToolStripStatusLabelBorderSides.All;
            //statusLabel.BorderStyle = Border3DStyle.Sunken;

            foreach (var label in AllLabels)
            {
                label.BorderSides = ToolStripStatusLabelBorderSides.All;
                label.Alignment = ToolStripItemAlignment.Right;
                label.BorderStyle = Border3DStyle.SunkenOuter;
                label.Padding = new Padding(-1, 5, -1, 5);
                label.TextAlign = ContentAlignment.MiddleLeft;
            }

        }
开发者ID:rbramwell,项目名称:OrionSDK,代码行数:27,代码来源:QueryStatusBar.cs


示例10: UpdateStatusBar

 public void UpdateStatusBar(string message)
 {
     statusBar.Items.Clear();
     ToolStripStatusLabel label = new ToolStripStatusLabel(message);
     statusBar.Items.Add(label);
     ScreenReader.sayString(label.Text, false);
 }
开发者ID:craigbrett17,项目名称:Iris,代码行数:7,代码来源:MainWindow.cs


示例11: InitStatus

        /// <summary> 
        /// 初始化任务栏
        /// </summary>
        private void InitStatus()
        {
            this.stsStatus.SuspendLayout();
            // Timer
            ToolStripStatusLabel tsslblTimer = new ToolStripStatusLabel();
            tsslblTimer.Name = "tsslblTimer";
            tsslblTimer.Text = Utility.GetLongSysDateTimeString();

            ToolStripSeparator tssp1 = new ToolStripSeparator();

            ToolStripStatusLabel tsslblUser = new ToolStripStatusLabel();
            tsslblUser.Name = "tsslblUser";
            tsslblUser.Text = "登录人员:";

            ToolStripSeparator tssp2 = new ToolStripSeparator();

            ToolStripStatusLabel tsslblABName = new ToolStripStatusLabel();
            tsslblABName.Name = "tsslblABName";
            tsslblABName.Text = "当前账本:";

            ToolStripSeparator tssp3 = new ToolStripSeparator();

            ToolStripStatusLabel tsslblIP = new ToolStripStatusLabel();
            tsslblIP.Name = "tsslblIP";
            tsslblIP.Text = "IP:";

            this.stsStatus.Items.AddRange(new ToolStripItem[] { tsslblTimer, tssp1, tsslblUser, tssp2, tsslblABName, tssp3, tsslblIP});

            this.stsStatus.ResumeLayout(false);
            this.stsStatus.PerformLayout();
        }
开发者ID:rogerluo,项目名称:Stror,代码行数:34,代码来源:Mainform.cs


示例12: FrmOutEarth

 public FrmOutEarth(GSOGlobeControl globeControl, DevComponents.DotNetBar.Controls.DataGridViewX dataGridViewX11, ToolStripStatusLabel toolStripNumbers1)
 {
     InitializeComponent();
     globeControl1 = globeControl;
     dataGridViewX1 = dataGridViewX11;
     toolStripNumbers = toolStripNumbers1;
 }
开发者ID:StarU,项目名称:qkKL6Dgf12,代码行数:7,代码来源:FrmOutEarth.cs


示例13: LayoutOrder

        //Инициализация класса с получением рабочей формы
        public LayoutOrder(Panel Panel, System.Windows.Forms.ToolStripStatusLabel ToolStripStatusLabel1)
        {
            ParentPanel = Panel;
            ParentToolStripStatusLabel = ToolStripStatusLabel1;

            Data.ElemsAfterEditingAss = new Data.MyEventDict(writeElems);
        }
开发者ID:Blyumenshteyn,项目名称:UchetUSP,代码行数:8,代码来源:LayoutOrder.cs


示例14: RepoResultsActor

 public RepoResultsActor(DataGridView userDg, ToolStripStatusLabel statusLabel, ToolStripProgressBar progressBar)
 {
     _userDg = userDg;
     _statusLabel = statusLabel;
     _progressBar = progressBar;
     InitialReceives();
 }
开发者ID:jdarsie,项目名称:akka-bootcamp,代码行数:7,代码来源:RepoResultsActor.cs


示例15: MedusaStatusBar

        /// <summary>
        /// Constructor
        /// </summary>
        public MedusaStatusBar()
        {
            InitializeComponent();

            //Agrego el item de cargando
            ToolStripItem item1 = new ToolStripStatusLabel();
            Image loadingImage = Properties.Resources.ajax_loader_4;
            item1.DisplayStyle = ToolStripItemDisplayStyle.ImageAndText;
            item1.Name = "loading";
            item1.Image = loadingImage;
            item1.ImageScaling = ToolStripItemImageScaling.None;
            item1.Text = "Cargando...";
            this.Items.Add(item1);
            //Agrego el item de informacion
            ToolStripItem item2 = new ToolStripStatusLabel();
            Image infoImage = Properties.Resources.emblem_important;
            item2.Name = "information";
            item2.DisplayStyle = ToolStripItemDisplayStyle.ImageAndText;
            item2.Image = infoImage;
            item2.ImageScaling = ToolStripItemImageScaling.None;
            item2.Text = "";
            item2.Visible = false;
            this.Items.Add(item2);

            //Timer
            aTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent);
            aTimer.Interval = 10000;
        }
开发者ID:martinherr3,项目名称:medusa-biodata,代码行数:31,代码来源:MedusaStatusBar.cs


示例16: NewDoctor

        public NewDoctor(DataGridViewRow clinic,ToolStripStatusLabel lbl )
        {
            InitializeComponent();
            Hospital_cb.Text = Convert.ToString(clinic.Cells[3].Value);
            Name_tb.Text = Convert.ToString(clinic.Cells[1].Value);
            Surname_tb.Text = Convert.ToString(clinic.Cells[0].Value);
            Patro_tb.Text = Convert.ToString(clinic.Cells[2].Value);
            Specialization_cb.Text = Convert.ToString(clinic.Cells[4].Value);

            hospital = Convert.ToString(clinic.Cells[3].Value);
            name = Convert.ToString(clinic.Cells[1].Value);
            surname = Convert.ToString(clinic.Cells[0].Value);
            patro = Convert.ToString(clinic.Cells[2].Value);
            spec = Convert.ToString(clinic.Cells[4].Value);

            DBProcedure proc = new DBProcedure();
            proc.search_id_doctor(name, surname, patro, hospital, spec);
            id_doctor = proc.id_doctor;
            status = lbl;

            if (!iIdRecord)
            {
                SaveDoctor_btn.Visible = false;
            }
        }
开发者ID:IrinaSkachk,项目名称:ProjectOpris,代码行数:25,代码来源:NewDoctor.cs


示例17: Animation

 public Animation(Control panel, int interval, ToolStripStatusLabel label)
 {
     surface = panel;
     this.interval = interval;
     IsStarted = false;
     this.label = label;
 }
开发者ID:podlipensky,项目名称:sharpcanvas,代码行数:7,代码来源:Animation.cs


示例18: CreateProgress

            public HResult CreateProgress(out INiStatusBarProgress progress)
            {
                progress = null;

                try
                {
                    var label = new ToolStripStatusLabel
                    {
                        Visible = false
                    };
                    var progressBar = new ToolStripProgressBar
                    {
                        Visible = false
                    };

                    int index = _mainForm._statusStrip.Items.IndexOf(_mainForm._statusStripText);

                    _mainForm._statusStrip.Items.Insert(
                        index + 1,
                        label
                    );
                    _mainForm._statusStrip.Items.Insert(
                        index + 2,
                        progressBar
                    );

                    progress = new NiStatusBarProgress(label, progressBar);

                    return HResult.OK;
                }
                catch (Exception ex)
                {
                    return ErrorUtil.GetHResult(ex);
                }
            }
开发者ID:netide,项目名称:netide,代码行数:35,代码来源:MainForm.StatusBar.cs


示例19: openFile

  public static void openFile( Form plcType,
                               Form main,
                               ComboBox height,
                               ToolStripProgressBar mLoad,
                               ToolStripStatusLabel mStatus )
  {
   bool noFile = true, cancel = false;
   OpenFileDialog openDiag;
   DialogResult res;
   String filename;

   mnuHeight = height;
   mnuLoad = mLoad;
   mnuStatus = mStatus;
   init = true;

   plcType.Hide();

   while( noFile ^ cancel )
   {
    openDiag              = new OpenFileDialog();
    openDiag.Multiselect  = false;
    openDiag.AddExtension = true;
    openDiag.DefaultExt   = "dat";
    openDiag.Filter       = "Minecraft Levels (*.dat)|*.dat|" + 
                            "All Files (*.*)|*.*";

    res = openDiag.ShowDialog();

    plcType.Show();

    if( res == DialogResult.Cancel )
     cancel = true;

    else
    {
     filename  = openDiag.FileName;
     
     noFile   = false;
     openDiag.Dispose();

     lvl = AnvilWorld.Open( filename );

     if( lvl == null )
      MessageBox.Show( "That file was not a compatible Minecraft level.",
                       "Open File Error",
                       MessageBoxButtons.OK,
                       MessageBoxIcon.Error );
     
     else
     {
      regDiag = new SelectRegion( lvl.GetRegionManager(), main );
      loadLimits();
      selectRegion( true );

     }     
    }
   }
  }
开发者ID:InTheSPOT,项目名称:creative-mode-plus,代码行数:59,代码来源:LoadSave.cs


示例20: NewSpecialization

 public NewSpecialization(string name, ToolStripStatusLabel lbl)
 {
     InitializeComponent();
     NameSpecialization_tb.Text = name;
     nameString = name;
     SaveSpecialization_btn.Visible = false;
     status = lbl;
 }
开发者ID:IrinaSkachk,项目名称:ProjectOpris,代码行数:8,代码来源:NewSpecialization.cs



注:本文中的System.Windows.Forms.ToolStripStatusLabel类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Forms.ToolStripTextBox类代码示例发布时间:2022-05-26
下一篇:
C# Forms.ToolStripSplitButton类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap