Forum Discussion

shubham1's avatar
shubham1
Occasional Contributor
5 years ago

Region.find is always returning true

I have used Regions.Find to find an image(stored in Region) in an object. But the code is passing even when the image is not present in the object
  • anupamchampati's avatar
    4 years ago

    Object = Aliases.VizGui.wndViz.TkChild.TkChild.TkChild.PeakOCSWnd; is an image.

    ss= it is the region i have created.


    Below code will help you compare the ss regions to get compare with the Object

    Regions.Items(ss).Check(Object , false, false, 1, 1);