I'm maintaining VB6 app that is having some UI troubles. A timer ticks in the background and when some conditions are met, it uses a 3rd party API to take a picture.
The app doesn't use forms for windows. When the user clicks a button that would normally open a window, it just make a frame visible and centers that frame. So if the frame is visible while the picture is taken, the picturebox on the form appears above the frame.
Anyone have any ideas on how I can fix this issue? I've tried a bunch of things already. The strange thing is, if I close the frame (which just changes the visible property to false) and then open it again, everything is fine. So I put a button on that frame that does that.
But the application crashes immediately. No idea why. There's an issue with my debug environment, so I can't debug it right now.
The app doesn't use forms for windows. When the user clicks a button that would normally open a window, it just make a frame visible and centers that frame. So if the frame is visible while the picture is taken, the picturebox on the form appears above the frame.
Anyone have any ideas on how I can fix this issue? I've tried a bunch of things already. The strange thing is, if I close the frame (which just changes the visible property to false) and then open it again, everything is fine. So I put a button on that frame that does that.
Code:
frame.Visible = False
frame.Visible = True