JumpTask图标未更新。 C# [英] JumpTask icon is not updating. C#

查看:112
本文介绍了JumpTask图标未更新。 C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 JumpTask CMDTest = new JumpTask 
{
Title =" Test",
Arguments =" / test",
CustomCategory =" Navigation",
IconResourcePath = @" JL\JL_ICO.ico",
ApplicationPath = Assembly.GetEntryAssembly()。CodeBase
};


我想更改JumpTask的图标,但始终与应用程序图标相同。

解决方案

嗨Rares Ailincai,


您没有设置图标资源路径正确。


与JumpTask一起使用的图标必须是 可用作本机资源。


< pre class ="prettyprint"> IconResourcePath = AppDomain.CurrentDomain.BaseDirectory + @ " JL\JL_ICO.ico"





最好的问候,


Bob


JumpTask CMDTest = new JumpTask
{
    Title = "Test",
    Arguments = "/test",
    CustomCategory = "Navigation",
    IconResourcePath = @"JL\JL_ICO.ico",
    ApplicationPath = Assembly.GetEntryAssembly().CodeBase
};

I want to change the icon of the JumpTask, but is always the same as the application Icon.

解决方案

Hi Rares Ailincai,

You did not set the icon resource path correctly.

An icon used with a JumpTask must be  available as a native resource.

   IconResourcePath = AppDomain.CurrentDomain.BaseDirectory+ @"JL\JL_ICO.ico",


Best Regards,

Bob


这篇关于JumpTask图标未更新。 C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆