Visual Basic Miscellaneous Tips and Tutorials buttons error handling vb script |
|
|
|
|
Miscellaneous tutorials
|
|---|
Using matrices to rotate a 3D world
This tutorial teaches you how to use matrices to create an efficient way to rotate and move a camera in a 3D world. Matrices are the most common way to work a 3D world in 3D graphics. The tutorial uses dots as items in the 3D world. The tutorial is visual basic orientated but the concepts apply to all languages
Matrices provide an alternate (better) way to rotate and move your 3D world. They are far more complicated than the last tutorial and use more difficult maths. You do not really need to completely grasp the maths to be able to use them but it is useful to have a basic understanding.
Previous:3D rotation
next:3D shading
| | Hits:475 Rate: 5.0(out of 5) Vote:1 Submit Date :2006-03-27 Rate It | Error | Review |
|
| | | |
|---|
Handling Joystick Input in Visual Basic
Learn how to handle joystick input using the Windows API in Visual Basic.
| | Hits:457 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-27 Rate It | Error | Review |
|
| | | |
|---|
Determining the Cursor Position in Visual Basic
This tutorial shows how to get the mouse cursor position on the screen in Visual Basic.
This tutorial show how to get the mouse cursor position on the screen. There is a simple API call that will allow you do this with ease.
Private Declare Function GetCursorPos Lib "user32" (lpPoint As PointAPI) As Long
| | Hits:410 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-27 Rate It | Error | Review |
|
| | | |
|---|
Introduction To MSN Messenger's API In VB
This tutorial is a introduction to MSN Messenger's API's using visual basic 6, this tutorial is good example for people who may want to create a bot for their messenger.
| | Hits:370 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-27 Rate It | Error | Review |
|
| | | |
|---|
Hiding and Displaying the Mouse Cursor in Visual Basic
This quick tutorial shows you how to hide and show the mouse cursor in Visual Basic.
Hiding and Displaying the Mouse Cursor in Visual Basic
Pesky, isn't it? I hate that little cursor sometimes, and now I'm armed and ready to kill it. The scourge of mice everywhere, the bane of the arrow, it's the ShowCursor function!
Private Declare Function ShowCursor Lib "user32" (ByVal bShow As Long) As Long
This tutorial is not for the faint of heart, or the verbose... this promises to be quite short. There are only two things you need to know about this API call, how to hide the cursor, and how to show the cursor. Notice I said "hide" not destroy. The ability to click is still there, even though we remove the cursor, there is simply no longer a graphical representation.
To remove the cursor, pass 0 (that's a zero not the letter 'o') as the bShow argument. To replace the cursor, pass 1 as the bShow argument, that's it! Here's an example in case you're a slow learner :)
ShowCursor 0
| | Hits:330 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-27 Rate It | Error | Review |
|
| | | |
|---|
Card Deck and Shuffle
How to create a virtual card deck and shuffle it.
While I was creating my black jack game I wanted to make the user
feel like they were using an actual deck of cards. To make this
illusion even more accurate I decided that I would have the computer
keep track of which cards had been used and after all cards had been
used I wanted the deck to be shuffled. Therefore I had to figure out a easy
way to shuffle the deck. That is how I came up with the following method:
First I made an image control array called imgCards that went from
1 to 52. In this array I filled slot (1) with the ace of clubs, slot (2) with
the two of clubs, and so on I continued this process until I had all 52 cards
put into their corresponding slots. This would make the array look like this:
| | Hits:262 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-27 Rate It | Error | Review |
|
| | | |
|---|
The Basic of 3D graphics in Visual Basic
This is a tutorial to teach complete beginners in 3D programmign how to program a 3D world. This tutorial teaches you how to make a simple camera, move the camera and display the view using perspective. The tutorial uses dots as items in the 3D world. The tutorial is visual basic orientated but the concepts apply to all languages
This section is all about 3D computer graphics for visual basic. This is for a very basic level but will give a person new to the world of 3D a good start. At the end of this tutorial is a zip file that contains an example of the tutorial so that you can get an idea of how to apply what you've learned.
| | Hits:256 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-27 Rate It | Error | Review |
|
| | | |
|---|
Drawing a polygon
This tutorial teaches you how to draw a polygon using the windows API.
This short tutorial teaches you how draw polygons using the windows API. The windows API are the functions that windows uses to run so you should be careful using them as they can crash windows.
First we have to declare the API at the top of our code.
| | Hits:219 Rate: 2.0(out of 5) Vote:1 Submit Date :2006-03-27 Rate It | Error | Review |
|
| | | |
|---|
Using BitBlt for copying and masking
The BitBlt function is used for copying areas of pictures and combining them with other pictures. It can do several different tasks including transparency. You will learn to use BitBlt to do copying and transparency masking in this tutorial.
| | Hits:181 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-27 Rate It | Error | Review |
|
| | | |
|---|
3D with flat shading - creating realistic filled objects in 3D
This tutorial in the 3D series takes you past simple dots and into the realm of filled shapes. This brings several challenges with it as you learn to find the correct shade for the face and how to order the face. The tutorial is visual basic orientated but the concepts apply to all languages
| | Hits:171 Rate: 1.0(out of 5) Vote:1 Submit Date :2006-03-27 Rate It | Error | Review |
|
| | | |
|
|---|
Introduction To MSN Messenger's API In VB
This tutorial is a introduction to MSN Messenger's API's using visual basic 6, this tutorial is good example for people who may want to create a bot for their messenger.
| | Hits:370 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-27 Rate It | Error | Review |
|
|
|---|
Using BitBlt for copying and masking
The BitBlt function is used for copying areas of pictures and combining them with other pictures. It can do several different tasks including transparency. You will learn to use BitBlt to do copying and transparency masking in this tutorial.
| | Hits:181 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-27 Rate It | Error | Review |
|
|
|---|
Drawing a polygon
This tutorial teaches you how to draw a polygon using the windows API.
This short tutorial teaches you how draw polygons using the windows API. The windows API are the functions that windows uses to run so you should be careful using them as they can crash windows.
First we have to declare the API at the top of our code.
| | Hits:219 Rate: 2.0(out of 5) Vote:1 Submit Date :2006-03-27 Rate It | Error | Review |
|
|
|---|
The Basic of 3D graphics in Visual Basic
This is a tutorial to teach complete beginners in 3D programmign how to program a 3D world. This tutorial teaches you how to make a simple camera, move the camera and display the view using perspective. The tutorial uses dots as items in the 3D world. The tutorial is visual basic orientated but the concepts apply to all languages
This section is all about 3D computer graphics for visual basic. This is for a very basic level but will give a person new to the world of 3D a good start. At the end of this tutorial is a zip file that contains an example of the tutorial so that you can get an idea of how to apply what you've learned.
| | Hits:256 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-27 Rate It | Error | Review |
|
|
|---|
Using matrices to rotate a 3D world
This tutorial teaches you how to use matrices to create an efficient way to rotate and move a camera in a 3D world. Matrices are the most common way to work a 3D world in 3D graphics. The tutorial uses dots as items in the 3D world. The tutorial is visual basic orientated but the concepts apply to all languages
Matrices provide an alternate (better) way to rotate and move your 3D world. They are far more complicated than the last tutorial and use more difficult maths. You do not really need to completely grasp the maths to be able to use them but it is useful to have a basic understanding.
Previous:3D rotation
next:3D shading
| | Hits:475 Rate: 5.0(out of 5) Vote:1 Submit Date :2006-03-27 Rate It | Error | Review |
|
|
|---|
3D with flat shading - creating realistic filled objects in 3D
This tutorial in the 3D series takes you past simple dots and into the realm of filled shapes. This brings several challenges with it as you learn to find the correct shade for the face and how to order the face. The tutorial is visual basic orientated but the concepts apply to all languages
| | Hits:171 Rate: 1.0(out of 5) Vote:1 Submit Date :2006-03-27 Rate It | Error | Review |
|
|
|---|
Handling Joystick Input in Visual Basic
Learn how to handle joystick input using the Windows API in Visual Basic.
| | Hits:457 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-27 Rate It | Error | Review |
|
|
|---|
Hiding and Displaying the Mouse Cursor in Visual Basic
This quick tutorial shows you how to hide and show the mouse cursor in Visual Basic.
Hiding and Displaying the Mouse Cursor in Visual Basic
Pesky, isn't it? I hate that little cursor sometimes, and now I'm armed and ready to kill it. The scourge of mice everywhere, the bane of the arrow, it's the ShowCursor function!
Private Declare Function ShowCursor Lib "user32" (ByVal bShow As Long) As Long
This tutorial is not for the faint of heart, or the verbose... this promises to be quite short. There are only two things you need to know about this API call, how to hide the cursor, and how to show the cursor. Notice I said "hide" not destroy. The ability to click is still there, even though we remove the cursor, there is simply no longer a graphical representation.
To remove the cursor, pass 0 (that's a zero not the letter 'o') as the bShow argument. To replace the cursor, pass 1 as the bShow argument, that's it! Here's an example in case you're a slow learner :)
ShowCursor 0
| | Hits:330 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-27 Rate It | Error | Review |
|
|
|---|
Determining the Cursor Position in Visual Basic
This tutorial shows how to get the mouse cursor position on the screen in Visual Basic.
This tutorial show how to get the mouse cursor position on the screen. There is a simple API call that will allow you do this with ease.
Private Declare Function GetCursorPos Lib "user32" (lpPoint As PointAPI) As Long
| | Hits:410 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-27 Rate It | Error | Review |
|
|
|---|
Dynamic Usage of Event Handlers in VB.NET
In VB.NET we can receive and handle events in 2 ways. The first one is using WithEvents and Handles keywords, and the second way is to use the AddHandler method and dynamically add event handlers through our code and with RemoveHandler dynamically remove them.
Dynamic Usage of Event Handlers in VB.NET
by: Thomas Kaloyani
With Events and Handles clause requires form us to declare the object variable and the event handler as we write our code, so linkage is created upon compilation. On the other hand, with AddHandler and RemoveHandler, linkage is created and removed at runtime, which is more flexible.
Let's assume that we want to load several MDI child forms, allowing each of them to be loaded only once, and of course to know when one of the child forms is closed. Since we have several forms to load we would like to use the AddHandler and RemoveHandler keywords so we can be flexible and write the minimal code we can.
| | Hits:140 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-27 Rate It | Error | Review |
|
|
WebmastersHome.com Discussion about programming, SEO, WebHosting and more! |
|
Pages : 1 2 |
|