Michael3455
Active Member
- Joined
- Sep 11, 2005
- Sythe Gold
- 0
- Messages
- 134
Hello, I'm currently making, what I consider to be, a full featured Webbrowser for my Software Development and Design course and I've ran into a few problems, most of which were easily fixable. However, I've got two I can't work out (Due to laziness on one, and my inability to google properly). Firstly, I can't work out how to do these two tab related things. They are
1a. Figure out which tab is currently selected
1b. Figure out how to create a new tab at runtime and add a webbrowser to it.
Both of those, I think, should be a pretty simple thing. But, alas, I can't figure it out and google hasn't been of much help.
My second problem isn't really a problem yet, but rather a question on how I should tackle the problem. User redesign at runtime. Basically, I want to enable a user to select a 'design mode' where they can drag and drop certain elements of the form (Buttons, tabcontrols, etc) so they're placed where the user would like them. Also, have options for background colours and button styles (I'll be making the buttons myself, so probably not many different types) and other things of that nature.
The way I thought I could do this, is when the 'Design Mode' has been selected I disable all the buttons, texts fields and what not, and have an on Mousedown event. As they drag the mouse, I store the location as a point and then update the position of that object (button or whatever it is).
So, basically I'd just like your opinions on my second problem. Do you think the way I thought of as an efficient and effective way to do it, or is there a better option?
And, for the first one, some simple code would be much appreciated.
EDIT: If I've not been clear enough, just tell me and I'll do my best to remedy the situation. Also, I'm not really lazy or a bad googler, I'm just not sure what exactly to google.
1a. Figure out which tab is currently selected
1b. Figure out how to create a new tab at runtime and add a webbrowser to it.
Both of those, I think, should be a pretty simple thing. But, alas, I can't figure it out and google hasn't been of much help.
My second problem isn't really a problem yet, but rather a question on how I should tackle the problem. User redesign at runtime. Basically, I want to enable a user to select a 'design mode' where they can drag and drop certain elements of the form (Buttons, tabcontrols, etc) so they're placed where the user would like them. Also, have options for background colours and button styles (I'll be making the buttons myself, so probably not many different types) and other things of that nature.
The way I thought I could do this, is when the 'Design Mode' has been selected I disable all the buttons, texts fields and what not, and have an on Mousedown event. As they drag the mouse, I store the location as a point and then update the position of that object (button or whatever it is).
So, basically I'd just like your opinions on my second problem. Do you think the way I thought of as an efficient and effective way to do it, or is there a better option?
And, for the first one, some simple code would be much appreciated.
EDIT: If I've not been clear enough, just tell me and I'll do my best to remedy the situation. Also, I'm not really lazy or a bad googler, I'm just not sure what exactly to google.




