气球工具提示正在崩溃应用程序

时间:2013-02-13 09:18:59

标签: c#

一旦弹出气球工具提示,应用程序就会崩溃。仅当应用程序在Windows 8 PC中运行时才会观察到此方案。

以下是我们正在调用的代码

public void BalloonInfo(Control aControl, string aText, BalloonAlignment aAlignment, int aDuration)
        {
            lock (this)
            {
                if (m_mb.IsVisible) return;
                //HideHint();
                m_mb = new MessageBalloon();
                m_mb.Parent = aControl;
                m_mb.Title = "Information";
                m_mb.TitleIcon = TooltipIcon.Info;
                m_mb.Text = aText;
                m_mb.Align = aAlignment;
                m_mb.CenterStem = false;
                m_mb.UseAbsolutePositioning = false;
                m_mb.Show();
                EnableTimer(true, aDuration);
            }
        }

WIN 32处理程序是否与Windows8不兼容。

0 个答案:

没有答案
相关问题