have you checked the
VB.net-MySQL tutorial ?
Look about 3/5 down into it, where it states
Retrieving the User ID With A Parameterized Query, it should give you an idear.. especialy the line:
UserID = myCommand.ExecuteScalar
kinda gives me the idear that in this example the
UserID will be holding the fetched result from the query.