在vb.net中转换以下代码 [英] convert following code in vb.net
问题描述
如何将以下内容转换为VB.NET ???特别是
常量... es_number。
const int ES_NUMBER = 0x2000;
protected override System.Windows.Forms。 CreateParams CreateParams
{
get
{
System.Windows.Forms.CreateParams cp = base.CreateParams;
cp.Style | = ES_NUMBER;
返回cp;
}
}
*" NetPointer" < SH ************** @ intel.com> scripsit:如何将以下内容转换为VB.NET ???特别是
常量... es_number。
const int ES_NUMBER = 0x2000;
受保护的覆盖System.Windows.Forms.CreateParams CreateParams
{
get
{
System.Windows.Forms.CreateParams cp = base.CreateParams;
cp.Style | = ES_NUMBER;
返回cp;
}
}
\\\
受保护的Const ES_NUMBER为整数= 2000
受保护覆盖ReadOnly属性CreateParams()As CreateParams
获取
返回MyBase.CreateParams或ES_NUMBER
结束获取
结束物业
///
-
Herfried K. Wagner
MVP·VB Classic ,VB.NET
< http://www.mvps.org/dotnet>
改善报价方式:
< http://learn.to/quote>
< http://www.plig.net/nnq/nquote.html>
>
| const int ES_NUMBER = 0x2000;
| protected override System.Windows.Forms.CreateParams CreateParams
| {
|得到
| {
| System.Windows.Forms.CreateParams cp = base.CreateParams;
| cp.Style | = ES_NUMBER;
|返回cp;
| }
| }
const ES_NUMBER as integer =& H2000
protected overrides readonly属性CreateParams()
get
dim params为CreateParams = mybase.CreateParams
params.style = params.style或ES_NUMBER''不能做空或=
返回参数
结束财产
hth,
史蒂夫
勘误表:
const int ES_NUMBER = 0x2000;
[...]受保护的Const ES_NUMBER As整数= 2000
上面的行应为:
\\\
受保护的Const ES_NUMBER As Integer =& H2000
///
-
Herfried K. Wagner >
MVP·VB Classic,VB.NET
< http://www.mvps.org/dotnet>
改善报价风格:
< http://learn.to/quote>
< http://www.plig.net/nnq/nquote.html>
How to convert following in to VB.NET ??? specifically the
constant...es_number.
const int ES_NUMBER = 0x2000;
protected override System.Windows.Forms.CreateParams CreateParams
{
get
{
System.Windows.Forms.CreateParams cp = base.CreateParams;
cp.Style |= ES_NUMBER;
return cp;
}
}
* "NetPointer" <sh**************@intel.com> scripsit:How to convert following in to VB.NET ??? specifically the
constant...es_number.
const int ES_NUMBER = 0x2000;
protected override System.Windows.Forms.CreateParams CreateParams
{
get
{
System.Windows.Forms.CreateParams cp = base.CreateParams;
cp.Style |= ES_NUMBER;
return cp;
}
}
\\\
Protected Const ES_NUMBER As Integer = 2000
Protected Overrides ReadOnly Property CreateParams() As CreateParams
Get
Return MyBase.CreateParams Or ES_NUMBER
End Get
End Property
///
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Improve your quoting style:
<http://learn.to/quote>
<http://www.plig.net/nnq/nquote.html>
| const int ES_NUMBER = 0x2000;
| protected override System.Windows.Forms.CreateParams CreateParams
| {
| get
| {
| System.Windows.Forms.CreateParams cp = base.CreateParams;
| cp.Style |= ES_NUMBER;
| return cp;
| }
| }
const ES_NUMBER as integer = &H2000
protected overrides readonly property CreateParams()
get
dim params as CreateParams = mybase.CreateParams
params.style = params.style or ES_NUMBER '' can''t short-hand or=
return params
end property
hth,
steve
Errata:
const int ES_NUMBER = 0x2000;[...] Protected Const ES_NUMBER As Integer = 2000
The line above should read:
\\\
Protected Const ES_NUMBER As Integer = &H2000
///
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Improve your quoting style:
<http://learn.to/quote>
<http://www.plig.net/nnq/nquote.html>
这篇关于在vb.net中转换以下代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!