当我添加消息框响应代码时,卡巴斯基将我的应用视为恶意软件



我使用vs 2017在vb.net中产生一个非常简单的应用程序。

我添加了代码以使用消息框来获取用户响应后,当我运行应用程序时,Kaspersky Anti-Virus将应用程序视为恶意软件并删除'.exe'文件。

Dim intResponse1 As Integer = MsgBox("Strip Metadata from selected image?" & vbCr & vbCr & "Warning this cannot be undone!", vbExclamation + vbYesNo, "Strip Metadata")

如果我''''与msgbox关联的代码行,则可以运行吗?

启动应用程序时会发生这种情况吗?VS2015也发生了同样的情况。

其他人有这个问题吗?

我正在运行Win10x64 Build 16299,Kaspersky 170.0.0.611。我的VS 2017是15.5.6

谢谢

如果将VB6代码更改为vb.net等效?

,您仍然有问题吗?
Dim Response1 As DialogResult = MessageBox.Show("Strip Metadata from selected image?" & Environment.NewLine & Environment.NewLine & "Warning this cannot be undone!", "Strip Metadata", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation)

最新更新