To add to what Richard has said:
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind - we only get exactly what you type to work with. So we have no idea what your existing code looks like, what it does that you didn't expect (or not do that you did), what error message you might get, where you are stuck, what help you actually need.
In software, there isn't "one way to do this" - there are different ways depending on environment (a web solution will be radically different from a WinForms solution for example), on the version of VB you are using, on your skill level - and then you can multiply that number by the number of developers that actually want to do the same thing!
So saying "It is not working" is meaningless - it tells up nothing we didn't know purely because you are asking a question!
There is nowhere near enough information here for us to begin to help you - we have no idea what you are trying to do, or where you are starting from. We don't even have any idea where you are stuck, or what help you might need - and that's kinda important, don't you think?
Start here:
Asking questions is a skill[
^] and think about what you need to know, and what you need to tell us in order to get help.