I wanted to create a looping domain in VB that will automatically find the word "next" in a presentation, click it using possibly performclick or other action, and take a screen capture and save it to file. Below is the screen capture part of the code, I wanted to know how to expand it:

Code:
 RenderTargetBitmap rendertarget = new RenderTargetBitmap((int)element.RenderSize.Width,
                        (int)element.RenderSize.Height,
...