I am a little stuck, I am following these examples and trying to do them in VB.Net but have run into a problem.

SharpPcap Examples

I am working on example 4 and am not sure how I would convert this to VB.Net

while( (packet=device.PcapGetNextPacket()) != null )

I have tried:
While Not (Packet = Device.PcapGetNextPacket) Is Nothing

With no go.

How would I convert this C# statement to VB.Net?

Thanks,

David