So what have you got? Games are not my specialty but you are being so vague that you will have a very hard time getting anyone to help. Plus, this seems like it's a school project, for sure you're not going to get someone from this awesome forum to do your homework for you.
Haha, you are right Stuugie, but i will suggest him a basic GLBasic Project if you really want to know game programming and its logic, then GlBasic will assist you to know all the basic concepts!
i have to make a game for window pc .simplest 2D game
Yes, but why? Is this for a homework assignment, or simply for your own interest in the subject? What are the requirements? What kind of game - a Pac-Man style maze game, a Tetris clone, a side-scroller, an Invader game, a Breakout style wall-smasher, or something else entirely? What kind of deadline do you have? Are there requirements for the tools you can use (a specific platform - you said Windows PC, but that could mean a lot of things, including an MS-DOS program running in DosBox - a specific library, a specific compiler)? Are you writing it in Standard C++ with a suitable graphics library, or a dialect such as C++/CLR whic has a default library included? There are still a lot of details missing for us.
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls
If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then
For Each subCtrl As Control In ctrl.Controls
If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then
If subCtrl.GetType Is ...