Danville Police say Darwin Cloyd has surrendered to authorities early Sunday morning.
Police say he's responsible for shooting a man on Thursday night.
Danville police say 23-year-old John Lamar Riley was shot at a home on High Street around nine.
A neighbor drove him to the hospital.
Riley is still being treated, for non-life threatening injuries.
Police say the bullet went through his arm, and into his abdomen.
Cloyd is charged with attempted murder and burglary.