Click here to Skip to main content
12,823,568 members (51,154 online)
Rate this:
Please Sign up or sign in to vote.
See more: VB VB.NET
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?
Posted 14-Nov-12 8:21am
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.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
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:54pm
The judgment on what world need sounds too bold, but I agree with it. My 5.
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.
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:02pm
You look like you see yourself. If you are going to take an offense in any reasonable advice, why asking questions? Only if you get some criticism, you can learn anything from others. If you want to play offended card (out of nothing, really) instead of learning, guess who will be the looser?

And there is absolutely no shame in being uniformed, inexperienced and even in making big mistakes. This is just one of the phases of getting clever, experienced and productive.
Christian Graus 14-Nov-12 15:03pm
I agree - I learned a lot early on from people willing to tell me I was going about things the wrong way. I cared enough about becoming a good programmer to listen.
Sergey Alexandrovich Kryukov 14-Nov-12 15:04pm
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.

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

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170308.1 | Last Updated 14 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100