(Edited by HansV to make URL clickable – see Help 19)
The basic question is: I need a tab control that I can dynamically add tabs to and each tab could either hold a grid control or a picturebox containing what would usually go straight on a form. Does anyone have any suggestions on the best way to go about this?
I currently have a form (not MDI) with a tab control on it. I’m using Xceeds smartUI component (http://www.xceedsoft.com/Download/SmartUI/index.htm%5B/url%5D) which uses pictureboxes to populate its tabs, but the component isn’t the issue, so that doesn’t matter so much.
If I continue with the SmartUI control ill need to populate everything in picture boxes and build everything on the form with the tab control (although I am waiting for a response from Xceed regarding passing pictureboxes from other forms to it):
For the grids i’d like to programatically create a picturebox, then create a grid inside the picture box, however the grid may need to be array so I can identify the events easily. I managed to create a picturebox on the form, but I don’t know how to find a controls ProgID which I think I need to be able to add the grid.
For the pre-designed tabs, I was hoping to create the tab in a picturebox on a form at design time, then at runtime, create a variable from the picturebox and create a new instance of it on the form with the tab. I have seen something along these lines before but it was a while ago and all I can remember is that it used the hWnd variable, after trying this I just got a read only error.
If anyone can help, give pointers, suggest websites or anything with any of this or suggest a better method of doing it then it would be much appreciated as I am more than a bit stuck. The words “too much at once” have come to mind!