If it was Delphi I could help, but i know sfa about Visual Basic.
It should be pretty simple though, look up an example on creating a visual component.
Get that working and then modify so it draws lines on the screen from point A to B based on what segment is being requested by the calling method.
It wont look super pretty, but you could improve it by drawing 3 parallel lines with the center one a bit longer at each ends. So the ends look more like a 7 seg. etc..
If that will look good enough really depends on what you need it for.
Another option is to use an existing component that accepts images, or an array of them.
Then you just need to get a big image that has all possible combinations of segments and make a lookup table to copy the right one out of the image
and onto the screen at a specific location. I dunno about visual studio but Delphi lets you easily copy a subsection of a bigger image onto the screen with a single command.
