请转换为VB.NET [英] Please convert to VB.NET

查看:63
本文介绍了请转换为VB.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请转换为VB.NET


protected override bool ProcessKeyEventArgs(ref message m)

{


if((char)m.WParam ==''。'')


m.WParam =(IntPtr)'','';


返回false;


}


谢谢!

Buzz

Please convert to VB.NET

protected override bool ProcessKeyEventArgs(ref Message m)
{

if((char)m.WParam == ''.'')

m.WParam = (IntPtr)'','';

return false;

}

Thanks!
Buzz

推荐答案

我们的Instant VB C#到VB转换器产生以下内容(下载演示

版本在 www.instantvb.com


受保护的覆盖函数ProcessKeyEventArgs(ByRef m As Message)As

布尔值


如果CChar(m.WParam)="。" c那么

m.WParam = CType(", c,IntPtr)

结束如果


返回错误


结束功能

/>
-

David Anton
www。 TA ngiblesoftwaresolutions.com

主页:

清除VB:清理过时的VB.NET代码

即时C#:从VB转换.NET到C#

即时VB:从C#转换为VB.NET

即时J#:从VB.NET转换为J#

"巴斯"写道:
Our Instant VB C# to VB converter produces the following (download the demo
edition at www.instantvb.com)

Protected Overrides Function ProcessKeyEventArgs(ByRef m As Message) As
Boolean

If CChar(m.WParam) = "."c Then
m.WParam = CType(","c, IntPtr)
End If

Return False

End Function

--
David Anton
www.tangiblesoftwaresolutions.com
Home of:
Clear VB: Cleans up outdated VB.NET code
Instant C#: Converts from VB.NET to C#
Instant VB: Converts from C# to VB.NET
Instant J#: Converts from VB.NET to J#
"Buzz" wrote:
请转换为VB.NET

受保护的覆盖bool ProcessKeyEventArgs(参考消息m)


if((char)m.WParam ==''。''')

m.WParam =(IntPtr)'','';

返回false;

}

谢谢!
Buzz
Please convert to VB.NET

protected override bool ProcessKeyEventArgs(ref Message m)
{

if((char)m.WParam == ''.'')

m.WParam = (IntPtr)'','';

return false;

}

Thanks!
Buzz



嗨Buzz,


请尝试以下VB.NET代码。


受保护的覆盖函数ProcessKeyEventArgs(ByRef m As Message)As

Boolean

如果Convert.ToChar(m.WParam.ToInt32())="。" c则

m.WParam = New IntPtr(Convert.ToInt32("," c))

返回错误

结束如果

结束功能


Kevin Yu
=======

此帖子已提供按现状没有保证,也没有赋予

权利。

Hi Buzz,

Please try the following VB.NET code.

Protected Overrides Function ProcessKeyEventArgs(ByRef m As Message) As
Boolean
If Convert.ToChar(m.WParam.ToInt32()) = "."c Then
m.WParam = New IntPtr(Convert.ToInt32(","c))
Return False
End If
End Function

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."


大卫,


在我看来这是非常好的真实的VB.Net代码


:-)

Cor
David,

Which is in my opinion very nice real VB.Net code

:-)

Cor


这篇关于请转换为VB.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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