本文介绍了如何创建像Free Download Manager这样的可堆叠的气球提示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。



首先是很棒的网站。多年来一直是会员,从来没有像某人已经问过的那样问过问题!我是一名自学成才的程序员,CodeProject是我最大的课堂。但是这次我被卡住了。似乎无法在任何地方找到答案,或者我只是在问错误的问题!



我做了一个应用程序来检查某些计算机是否在线使用我的.Computer.Network.Ping。它返回失败的IP数组。然后我将此列表显示为通知图标上的气球提示。



Hi all.

Firstly great site. Been a member for years and never had to ask a question before as someone already asked it! I'm a self taught programmer and CodeProject was my biggest classroom. However this time I'm stuck. Can't seem to find the answer anywhere, or maybe I'm just asking the wrong questions!

I made an application that checks if certain computers are online using My.Computer.Network.Ping. It returns an array of IPs that failed. I then show this list as a balloon tip on the notify icon.

If lstNewList.Count = 0 Then
               lstNewList = MyArray.ToList()
               Dim sOutput As String
               sOutput = "Computers Disconnected: "
               For Each sElement As String In lstNewList
                   sOutput = sOutput & Chr(13) & sElement
               Next
               Me.NI.ShowBalloonTip(2000, " PC Disconnected!!", sOutput, ToolTipIcon.Error)
Else
'Backup the list before copying from array.
End If





我想做的是将每个IP放在自己的气球中然后保持打开状态直到用户关闭它。新气球将与旧气球相邻。正好像免费下载管理器完成下载。



我试过:



What I want to do is put each IP in its own balloon and then keep it open until user closes it. New balloons will be next to the older ones. Exactly like Free Download Manager when it completes downloads.

I tried:

For Each sElement As String In lstNewList
                   Me.NI.ShowBalloonTip(2000, "WARNING!!", sElement, ToolTipIcon.Error)
Next



但只能看到列出的一个IP。

新气球一定不能关闭旧气球。



有谁知道它是怎么做的?或者我是否必须创建自己的控件?


but only see one IP listed.
The new balloon must not close the older ones.

Anybody knows how it's done? Or do I have to create my own controll?

推荐答案


这篇关于如何创建像Free Download Manager这样的可堆叠的气球提示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-28 09:46