Post the code you have so far or better yet post up a simple sample application that shows your code not working. Also, we still need to know your compiler and IDE

Its difficult to say whats wrong without a starting point.