Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: 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?
dagronzzan
Posted 14-Nov-12 8:21am
Comments
Sergey Alexandrovich Kryukov at 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

Rate this: bad
good
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.
  Permalink  
Comments
dagronzzan at 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 at 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 at 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 at 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 at 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
Sergey Alexandrovich Kryukov at 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.
--SA
Christian Graus at 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 at 14-Nov-12 15:04pm
   
:-)
Sergey Alexandrovich Kryukov at 14-Nov-12 14:54pm
   
The judgment on what world need sounds too bold, but I agree with it. My 5.
--SA

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 279
1 OriginalGriff 190
2 DamithSL 185
3 Peter Leow 105
4 Kornfeld Eliyahu Peter 105
0 OriginalGriff 7,355
1 DamithSL 5,254
2 Sergey Alexandrovich Kryukov 4,942
3 Maciej Los 4,906
4 Kornfeld Eliyahu Peter 4,514


Advertise | Privacy | Mobile
Web03 | 2.8.141223.1 | Last Updated 14 Nov 2012
Copyright © CodeProject, 1999-2014
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