Hi Erel
Here is the code;
Dim ph As Phone
Dim bd As BitmapDrawable
bd = ph.GetResourceDrawable(17301580)
Activity.AddMenuItem2 ("Zoom In", "ZoomIn", bd.Bitmap )
bd = ph.GetResourceDrawable(17301577)
Activity.AddMenuItem2 ("Zoom Out", "ZoomOut", bd.Bitmap )
bd = ph.GetResourceDrawable(17301560)
Activity.AddMenuItem2 ("Exit", "Exit", bd.Bitmap )
Dim Button1 As Button
Button1.Initialize("")
Dim sld As StateListDrawable
sld.Initialize
bd = ph.GetResourceDrawable(17301746) '<- This line fails
sld.AddState(sld.State_Disabled, bd)
The menus are created fine but the line indicated fails - however if I use of of the constants from the menus (eg 17301560) it works fine.
Any help would be great!