A step by step tutorial teaching you how to create your own chat client and chat server easily in C#, for local networks or the Internet.
A C# tutorial showing you how to make use of WMI to extract information on disk drives, such as model, capacity, sectors and serial number.
This tutorial will teach you how to calculate the shipping cost based on the weight, height, length and depth of the box, the distance and the UPS service type.
Creating a Rich Text Editor using JavaScript is easier to do than you might think, thanks to the support of modern browsers; this tutorial will walk you through it.
Basic drawing programThis tutorial doesn't just show you how to make a simple drawing program, it also teaches you things like error handling. Good for beginners who want some hands-on approach. |
On Sunday, March 21st 2004 at 07:05 PM By Andrew Pociu (View Profile) ![]() ![]() ![]() ![]() (Rated 4.4 with 53 votes) |
||
|
Contextual Ads
More Visual Basic Resources
Advertisement
Basic drawing program
Dim drawing
'vbOK + vbInformation' is the type of 'MsgBox' we want, one with an OK button and vbInformation icon. If this tutorial will get a high rate maybe it will continue with a part II, where you'll learn how to make your program draw shapes and other things . |
|||
Digg It!
Del.icio.us
Reddit
StumbleIt
Newsvine
Furl
BlinkList
|
|||
|
|||
Current CommentsAnother way to ease your work is Visual Basic is using arrays.
For instance, instead of creating 3 scrollbars and 3 textboxes with different names we would create an index array for controls (use the same name but modify the Index field value). After creating these arrays (scrollbars and textboxes) you will notice that in your Procedures, a new parameter appeared "Index as Integer" on the first place.
So instead of:
Private Sub VScrollRed_Scroll()
VScrollRed_Change
End Sub
you'll have:
Private Sub VScroll_Scroll(Index as Integer)
VScroll_Change (Index)
End Sub
and furthermore:
Private Sub VScroll_Change(Index as Integer)
shpCurr.BorderColor = RGB(VScroll(0).Value, VScroll(1).Value, VScroll(2).Value)
txtVal(2).Text = VScroll(2).Value
End Sub
Well, I hope you got the big picture of it.
Conclusion: by using control arrays and variable arrays you shorten the length of your source code and create an easier to understand code.
Thanks for your tutorial, i am studing Visual Basic and i have been reading and trying to get a hang of it but i could never get a book that would actually show how to code. They always showed you the basics or an overview. thanks really helped
great
A good tutorial, some more images would of been nice but the code is fine so thats all that matters.
Finally, a tutorial i can understand, the tutorials at www.microsoft.com and wrox tutorials had me stuck, cheers Andrei, im finally going somewhere
jake
Thank You. I'm downloaded your source code
Sweet code ... Thanx
Thanks, this code is amazingly simple and works perfectly. I've used this tutorial to make my own small drawing program which works like a dream.
i am a begineer student of vb. the above code looks so simpler and i have thought it will work perfectly
EXCELLENT TUTORIAL FOR BEGINNERS.
M.RAMESH KUMARR
thank you very much for the tutorial, i needed that for my project and now i have learned a lot from you..thanks again..
really well put together tutorial, infortunately since i am using VS.Net i cant get it to work, i tried coding from what you have written above, but i ran into a problem at the pct.DrawWidth, that among other things is different from the verision you used and the one im using, i used its upgrade wizzard on your code, but it still wont compile, none the less still a great tutorial i would love to figure out how to code one day
We need advice on how we can develop advanced drawings (Mechanical Gear) using visual Basic Graphics.
We thank you in advance for your anticipated cooperation.
3ew
This is a good guide, helped me with a class project!
Can you post the program that u made?
I'm a bit confused with the codes...
plz send me the code to implement paint brush in java painter. (as early as possible).
Thnx for sharing^^. It's really a great help!
ang tae tae nmn
ang tae tae nmn
ang tae tae nmn
Hi
is the download supposed to be a rar file. please email me.
Wow - just shows how powerful Visual Basic is!
Thanks for the code - it's a good starting place to have a fiddle with some of the variables in Visual Basic.
Thanks for the tutorial, it is very useful for us.
The post is actually the freshest on this laudable subject. I harmonize with your conclusions and will thirstily look forward to see your approaching updates. <a href="http://www.carlinhall.co.uk/">Recruitment to Recruitment Hong Kong</a>
Best post
It’s really great stuff overall, I just wanted to say thank you. I am looking forward to another great article from your side.
Great work you have done by sharing them to all. simply superb. Thanks for a nice share you have given to us with such an large collection of information regards.
There are all kinds of illustrating and editing programs, so those of us working in design area have plenty of tools to choose from. Technology is by our side. For those who may have probably used several encoders available in this industry more than once, I assume this is an easy thing to achieve. I for one have barely managed to deal with the file sharing services. which means accessible things to anyone. I just learned how to deal with disk space, restriction, compatibility and some codecs. As you display it right here, step by step, it shouldn`t be too hard to make it. I think I will take a better look at this presentation and give it a try to this method.
Hey do you know why my phone shuts off almost every other time I close the phone shut?! It's driving me crazy and its not because I have low battery.
Here I found your blog to be very worthwhile. I am quite excited with all the article content of your site.
Interesting topic what you have shared with us. Your writing skill is really very appreciative. I love when you share your views through the best articles.Keep sharing and posting articles like these.This article has helped me a lot.Keep posting this stuff.
Visual Basic has always been my favorite, because it makes everything so easy, even I can understand. I love drawing on my computer, but so far I couldn't manage with any software. Fortunately, this one will help me express myself virtually, as well. Thanks for this tutorial, it's been of help.
I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts.
You really make it seem so easy with your presentation but I find this topic to be really something which I think I would never understand.
With her Patti Smith-esque, <a href="http://www.cheapjordanshoesoutletonline.com" title="cheap jordan shoes">cheap jordan shoes</a> raven-colored locks and an editorial in the latest issue of Love shot by Mario Testino, <a href="http://www.cheapjordanshoesoutletonline.com/basketball-shoes-c-1.html" title="jordan shoes for cheap">jordan shoes for cheap</a> Stasiuk has that edgy look-of-the-moment, <a href="http://www.cheapjordanshoesoutletonline.com/skate-shoes-c-5.html" title="cheap air jordan shoes">cheap air jordan shoes</a> which should take her far in Europe. But fashion is forever unpredictable, and many of the best newcomers wait to make their debut in Milan or Paris. <a href="http://www.hermesconstanceoutlet.com" title="hermes constance">hermes constance</a> So you never know. Plus, just when you thought it couldn’t possibly get any better than a week-long Giveaway Extravaganza with some of our favorite advertisers, <a href="http://www.hermesconstanceoutlet.com/hermes-constance-bags-5" title="constance hermes">constance hermes</a> we added even more dazzling giveaways to the mix.<a href="http://www.hermesconstanceoutlet.com/hermes-bags-2" title="hermes constance bag">hermes constance bag</a> Yep, it’s been awesome. And since we know you lovelies have been sitting.on.the.edge.of.Josie Maran has certainly been reaping them since she graduated from model to beauty entrepreneur. Maran’s eponymous natural-minded line that’s entirely based around the miraculous skincare wonder that is Moroccan-born argan oil is a bona fide hit, <a href="http://www.hermesconstanceoutlet.com/hermes-handbags-11" title="hermes constance price">hermes constance price</a> and her latest product celebrates the range’s star ingredient particularly well <a href="http://www.ouruggboots.us/ugg-classic-short-boots-c-2.html">ugg boots</a>
thanks
Une marque est plus qu'un logo ou une image. Elle affecte la première impression à l'organisation et la façon dont votre travail est perçu et apprécié par les gens.
Visual Basic looks very simple, indeed, but I've heard it does some pretty great things and even though Paint may seem more complex, it doesn't have so many applications as this one. I can't wait to try it, thanks for giving us these tips!
Software para gestionar Programas fidelizacion clientes, Software fidelizacion clientes y Tarjetas de fidelizacion y puntos. Precios económicos. Consúltanos
I love when you share your views through the best articles.Keep sharing and posting articles like these.This article has helped me a lot.Keep posting this stuff.
I am quite excited with all the article content of your site.
x. It also shows you other stuff, like handling errors so consider it a practical example for Visual Basic beginners.
this is what we'll do now, a program that opens a bmp file, modifies it and saves it as a new bmp file. .
Computer aided design is an art. People must have very much talent and inspiration to get good results.
it's nice to share views online. and even publishing articles commecomme this one is a very good idea
I never got really acquainted to Paint, it is barbarian and made for little children. I usually use it when I want to save a print screen image. Visual Basic might just be what I need to make things more pleasant.
Thank you for sharing such great information with us. I really appreciate everything that you've done here and am glad to know that you really care about the world that we live in
Thank you for sharing such great information with us. I really appreciate everything that you've done here and am glad to know that you really care about the world that we live in
I could also gain several of my ranches for marketing substance for you all budy who come up here. i think so it is very useful and knowledgeable. I would like to thank you for the efforts.
I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well.
Just what I was looking for and quite thorough as well. Thanks for posting this, I saw a couple other similar posts but yours was the best so far. I hope it stays updated, take care.
Related Tutorials
Related Source Code
Visual Basic Job Search