|Create a new image that is 5 pixels by 5 pixels wide with a transparent background. Zoom in to 1600% .|
Change foreground color to black (RGB = 000) and choose the pencil tool. Change brush size to 1 pixel. Draw a line 1 pixel wide up the left side and across the top.
Press <ctrl>A to select all. Click Edit-->Define Pattern.