Embodiments of the present invention relate to a Time Gain Compenstaion (TGC) feature in an ultrasound device using a touchpad or similar device, which eliminates the need for mechanical potentiometers. The touchpad is segmented into one or more rows, wherein each row is mapped to a corresponding depth of an image. In order to set a required TGC gain setting of a particular depth of the image, a user moves his/her finger across the face of the touchpad such that the desired gain curve can be set. Finer adjustments can be done by moving the finger in the desired horizontal area of the touchpad. The mapping of the effective depths is indicated by horizontal lines on the touchpad as well as on the screen.