Windows Develop Bookmark and Share   
 index > Windows Forms General > equivalent of uint in vb.net?
 

equivalent of uint in vb.net?

does anyone know how to translate this C# enumaration to vb.net?

public enum TrackerEventFlags : uint
{
TME_HOVER= 0x00000001,
TME_LEAVE= 0x00000002,
TME_QUERY= 0x40000000,
TME_CANCEL= 0x80000000
}

vb.net equivalent is:

Public Enum TrackerEventFlags

   TME_HOVER = &H1
   TME_LEAVE = &H2
   TME_QUERY = &H40000000
   TME_CANCEL = &H80000000

end enum

is that right?
will also replacing uint by integer be ok in all api declarations/structures/enum??!
MigrationUser 1  Thursday, April 24, 2003 11:15 AM
VB.NET doesn't support unsigned ints, but your conversion is fine here -- none of these values have the topmost bit set, which is what would cause trouble with unsigned ints. This should work fine.
MigrationUser 1  Friday, April 25, 2003 12:50 PM

You can use google to search for other answers

Custom Search

More Threads

• Trackbar and large values
• problem with inherited custom control
• Richtextbox selection lost when clicking on a toolbar combobox
• Web browser list & setings...
• Skins in Windows Forms
• Using Custom Controls That Have Been Inserted Into Other Controls
• line spacing
• Stack Overflow
• EnableVisualStyle() and imagelist problem
• My project is corrupted ????