i used pset to set the values of the pixels inside a picturebox

after that how do i make the picture change size as i change the picturebox width and height so that i can still view the whole picture ?
is there a resize picture property that i can set so its the same as the size of the picturebox ?