小编Ben*_*Ben的帖子

显示气球通知

我正在尝试使用以下代码来显示气球通知.我已经验证它是使用断点执行的.它也没有显示任何错误.

我应该怎么做来调试这个,因为它不会抛出错误而不显示气球?

private void showBalloon(string title, string body)
{
    NotifyIcon notifyIcon = new NotifyIcon();
    notifyIcon.Visible = true;

    if (title != null)
    {
        notifyIcon.BalloonTipTitle = title;
    }

    if (body != null)
    {
        notifyIcon.BalloonTipText = body;
    }

    notifyIcon.ShowBalloonTip(30000);
}
Run Code Online (Sandbox Code Playgroud)

.net c# notifyicon winforms notification-area

37
推荐指数
2
解决办法
8万
查看次数

我在哪里可以找到System.out.println()的日志?

我正在使用Netbeans,我已经检查了Netbeans中的Server.log和所有3个输出选项卡,用于Glassfish,Java DB数据库和我的应用程序的输出.我应该在哪里看到输出System.out.println()?我正在尝试连接到MySQL服务器,我需要看看它是否有效:)

java logging netbeans

15
推荐指数
1
解决办法
2万
查看次数

FindWindow在当前上下文中不存在

我是WindowsForms的新手,构建了一个小型示例应用程序.

我正在尝试构建一个将文本键入记事本窗口的应用程序,FindWindow does not exist in current context当从dll导入时我收到错误.

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void MenuAbout_Click(object sender, System.EventArgs e)
        {
            Form1 frm = new Form1();
            frm.ShowDialog();
        }

        private void Launch_Click(object sender, System.EventArgs e)
        {

            // find window handle of Notepad
            IntPtr handle = FindWindow("Notepad", "Untitled - Notepad");
            if (!handle.Equals(IntPtr.Zero))
            {
                // activate Notepad window
                if (SetForegroundWindow(handle))
                {
                    // send "Hello World!"
                    SendKeys.Send("Hello World!");
                    // send key "Tab"
                    SendKeys.Send("{TAB}"); …
Run Code Online (Sandbox Code Playgroud)

c#

2
推荐指数
1
解决办法
8355
查看次数

正在尝试更新Android SDK

在尝试将我的SDK更新到最新版本时,安装了一些东西,但其他人没有安装.

*SDK Platform Android 4.0, API14, revision 3
Google APIs by Google Inc., Android API15 revision 1
Google APIs by Google Inc., Android API14 revision 2
Sources for Android SDK, API14, revision 1
Run Code Online (Sandbox Code Playgroud)

我得到了这个错误的消息:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-= Warning ! =-
A folder failed to be moved. On Windows this typically means that a program is uing that folder (for example Windows Explorer or your anti-virus software.)
Please momentarily deactivate your anti-virus software or close any running programs that may be accessing …
Run Code Online (Sandbox Code Playgroud)

android android-version

0
推荐指数
1
解决办法
3675
查看次数