Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

'object reference not set to an instance of object'

$
0
0

i am doing some very basic programming. when i use the code:

private sub cmdCaps_Click(byval sender as sytem.object, byval e as system.eventargs) handles cmdCaps.click

me.hide()

form2.show()

end sub

i get the error 'object reference not set to an instance of object'

form1 and form2 both exist on the project. cant figure out this simple code wont work


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>