Try this
'ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 FEB.1033/csref/html/vclrfUnchecked. htm
'It doesn't appear that VB has to concern itself with the unchecked
statement.
Public Const DISPID_HTMLELEM ENTEVENTS_ONDBL CLICK As Integer = &HFFFFFDA7
'ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 FEB.1033/cpref/html/frlrfsystemflag sattributeclass topic.htm
'Flags just treats the enumeration as a bit field.
<Flags()> _
Public Enum BSCFlags
BSCF_FIRSTDATAN OTIFICATION = 1
BSCF_INTERMEDIA TEDATANOTIFICAT ION = 2
BSCF_LASTDATANO TIFICATION = 4
BSCF_DATAFULLYA VAILABLE = 8
BSCF_AVAILABLED ATASIZEUNKNOWN = 10
End Enum
'ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 FEB.1033/csspec/html/vclrfcsharpspec _10_1_1_1.htm
<System.Runtime .InteropService s.ComVisible(Fa lse)> _
Public MustInherit Class OLECMDEXECOPT
Public Const OLECMDEXECOPT_D ODEFAULT As Integer = 0
Public Const OLECMDEXECOPT_P ROMPTUSER As Integer = 1
Public Const OLECMDEXECOPT_D ONTPROMPTUSER As Integer = 2
Public Const OLECMDEXECOPT_S HOWHELP As Integer = 3
End Class
'This class seemed to be incomplete to me. But I am just a novice.
'ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 FEB.1033/cpref/html/frlrfSystemRunt imeInteropServi cesStructLayout AttributeClassT opic.htm
<System.Runtime .InteropService s.ComVisible(Fa lse),
System.Runtime. InteropServices .StructLayout(S ystem.Runtime.I nteropServices. LayoutKind.Sequ ential)>
_
Public MustInherit Class tagLOGPALETTE
'/*leftover(offse t=0, palVersion)*/
'ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 FEB.1033/cpref/html/frlrfSystemRunt imeInteropServi cesMarshalAsAtt ributeClassTopi c.htm
<System.Runtime .InteropService s.MarshalAs(Sys tem.Runtime.Int eropServices.Un managedType.U2) >
_
Public palVersion As Short
End Class
"Husam" <Hu***@discussi ons.microsoft.c om> wrote in message
news:00******** *************** ***********@mic rosoft.com...
Hi EveryBody:
I have the follwoing Decleration from C# and I want to convert it to
VB.Net :
public const int DISPID_HTMLELEM ENTEVENTS_ONDBL CLICK =
unchecked((int) 0xFFFFFDA7),
[Flags]
public enum BSCFlags {
BSCF_FIRSTDATAN OTIFICATION = 0x00000001,
BSCF_INTERMEDIA TEDATANOTIFICAT ION = 0x00000002,
BSCF_LASTDATANO TIFICATION = 0x00000004,
BSCF_DATAFULLYA VAILABLE = 0x00000008,
BSCF_AVAILABLED ATASIZEUNKNOWN = 0x00000010
}
[ComVisible(fals e)]
public sealed class OLECMDEXECOPT {
public const int OLECMDEXECOPT_D ODEFAULT = 0;
public const int OLECMDEXECOPT_P ROMPTUSER = 1;
public const int OLECMDEXECOPT_D ONTPROMPTUSER = 2;
public const int OLECMDEXECOPT_S HOWHELP = 3;
}
[ComVisible(fals e), StructLayout(La youtKind.Sequen tial)]
public sealed class tagLOGPALETTE {
[MarshalAs(Unman agedType.U2)/*leftover(offse t=0, palVersion)*/]
public short palVersion;
any one can help me in this or direct me to any like that care about
converting from C# to VB.Net
Any help will be appreciated
regard's
Husam