Toddler bed tips

I just decided to switch my 19 month olds crib to a toddler bed and need some suggestions on getting him to understand he can't get get out of bed and run around all night. We share a room so I put a baby gate up to where he couldn't get up and run all through the house waking everyone else up but I know he'll probably still get up and mess with everything in our room.