Click here to Skip to main content
15,891,567 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I am making a webbrowser as a project and i need to know fast how to make the tabs no bigger than a specific size and have a close button on each. i also have to make it so each new tab also has a close button
any help?
dagronzzan
Posted
Comments
Sergey Alexandrovich Kryukov 14-Nov-12 14:52pm    
What makes you believe that you make a Web browser? :-)
Or you just add a WebBrowser control into something? Anyway, first of all you need to tag your UI library.
--SA

1 solution

No-one actually writes a web browser. Everyone just uses the web browser control to render web pages. You'd have to write your own tabs to get what you want, and so you start to realise that what you're doing is not learning how to program, but learning how to call an API. Do something sensible, the world does not need another skinned version of IE.

If you were to learn to use google, though, you could find snippets like this[^] to do what you're after.
 
Share this answer
 
Comments
dagronzzan 14-Nov-12 14:51pm    
thank you for your help.
I have spent several days searching on google. and you want to be helpful. try not to make the person look like a complete n00b
Christian Graus 14-Nov-12 14:53pm    
My advice is simply that everyone thinking they are learning programming by 'writing a web browser', is wrong. You should learn the language, not how to use the IDE. It's not that you're new, no shame in that. It's that you're wasting your time.
Sergey Alexandrovich Kryukov 14-Nov-12 14:58pm    
Not just the language, but you are basically right. Just playing with the API might be important, too, but doing just that is not "real" programming; it's more like yet another way of playing with a computer on a user level. And this can be a total waste of time. To me, writing a simple console application doing something useful is way more valuable.
--SA
Christian Graus 14-Nov-12 15:00pm    
Yes, the question is being asked because the OP has no idea of the language, I had one other person asking how to concatenate two strings, I gave the code and he was still lost. He had not learned to program, but he was 'writing a web browser'. It's a common condition.
Sergey Alexandrovich Kryukov 14-Nov-12 15:07pm    
Sadly, it is. That's why criticism and just sharing opinions between colleagues is important, otherwise, in some beginners, the desire to do something "cool" pushed then out of real things.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900