Ok here is what I see when I run my code.
During the first run, my messagebox displays an empty string regardless of what I select in the contextmenu.
And if I select another student name from the contextmenu, the messagebox displays the studid of the previously selected student.
I just can't understand why this behavior isn't manifested in your system. I have VS.net 2003 on my system.
What I'm suspecting here is that somehow, for reasons I don't understand, is that my event handler executed after the [MsgBox(mystud.studid)] line in my main form. If this is the case, is there any solution?
Thanks...
OMAR C. IBRAHIM
----------
Programmer
STUDENT RECORDS & INFORMATION SYSTEM (SRIS)
Western Mindanao State University, Philippines
----------
Programmer
SSI Engineering & Architectural Designs and IT Center (SENARD ITC)
Zamboanga City, Philippines