|
|
|
| Author Details |
|---|
| All Tutorials by imt |
1
|
|---|
Runtime Menus
In Visual Basic, adding menus at runtime is handled in the exact same way as adding any control at runtime.
In Visual Basic, adding menus at runtime is handled in the exact same way as adding any control at runtime. First you have to create a control array at design time, then at runtime you just load the new controls into the array. In this tutorial, I will show you all the steps to handle this. I will first show you how to set up a menu control array at design time. Next I will show you how to add more menus to your array at runtime. Finally, I will show you how to handle the click events of all the menus you add at runtime.
I encourage you to open up a project in Visual Basic, and follow along with me as I introduce you to this topic. Also, if my explanations just aren't making sense, please download the code from the link at the right. This should help you understand everything I am trying to say
| | Hits:326 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-27 Rate It | Error | Review | | | Category: Home > Visual Basic > Buttons |
|
|
|---|
Sorting Viewer
Perhaps you have already done a rather exhaustive search for these routines but are still perplexed as to what a shell is, or why a certain sort is labeled quick. Or maybe you wonder what a bubble looks like up close and personal. Further, you may want to know which method is best suited to your application. This visual representation of what is going on behind the scenes should get you started on that path.
To resurrect or not to resurrect - that is the question. The fact is that in the post oopcalyptic era of data and view objects we need only command "go sort yourself" and viola - the miracle manifests. Worse these objects know when to sort as you enter a new person, place, thing, or idea - further obviating the need to program.
Little beknownst to the modern day assembler of packaged components is that somewhere buried deep in the recesses of these objects are the well chosen instructions to order and index data. Indeed these routines have been selected from a number of possible sorting methods to do the job in the most efficient and speedy way possible. They have all been developed and thoroughly tested in those wonderful days BW (before windows).
Why then beat a perfectly dead horse, you say? Well aside from the joy of programming, perhaps you will find an occasion when the objects won't serve your purpose and you must scramble to consult the search oracle for these ancient methods. Chances are you will find them written in a cryptic linear C derivative like JAVA or perhaps FORTRAN or PASCAL, and wonder to yourself if those same sort routines will actually work in BASIC.
Perhaps you have already done a rather exhaustive search for these routines but are still perplexed as to what a shell is, or why a certain sort is labeled quick. Or maybe you wonder what a bubble looks like up close and personal. Further, you may want to know which method is best suited to your application. This visual representation of what is going on behind the scenes should get you started on that path.
In the meantime, there may be more to learn than just general sorting theory. Creating a viewing interface
| | Hits:159 Rate: 0.0(out of 5) Vote:0 Submit Date :2006-03-27 Rate It | Error | Review | | | Category: Home > Visual Basic > Development |
|
|
|
|
|
|
|
|