![]() |
Desktop Development »
Miscellaneous »
General
Intermediate
License: The Code Project Open License (CPOL)
Fill MSFlexGrid with Numbers and Create Mathematical TrickBy Mostafa KaisounCreate Mathematical Trick by displaying seven numerical tables using MSFlexGrid |
VB 6WinXP
|
|
Advanced Search Add to IE Search |
|
|
|
||||||||||||||||
I am using seven numerical tables to create this Mathematical Trick. I found the idea of this trick in my old papers but I don't remember from which book or magazine I read it before. I confess that my work is a translation of this idea to a VB6 program.
The following code is an example to fill MSFlexGrid with numbers:
Dim c As Integer
Dim r As Integer
Dim n As Integer
Dim T As Integer
With NumGrid
T = 1
For r = 0 To 4
For c = 0 To 9
.TextMatrix(r, c) = Str(T)
T = T + 2
Next c
Next r
Please refer to the source code (Sub FillTab) to see how I fill the grid with numbers seven times.
You can find the source code when you extract the file SourceFile.zip and you can find the *.exe when you extract the file ExeFile.zip.
I hope that you enjoy this trick. If anybody knows the exposition of this trick, please let us know.
| You must Sign In to use this message board. | ||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
General
News
Question
Answer
Joke
Rant
Admin
|
PermaLink |
Privacy |
Terms of Use
Last Updated: 15 Sep 2008 Editor: Deeksha Shenoy |
Copyright 2008 by Mostafa Kaisoun Everything else Copyright © CodeProject, 1999-2009 Web16 | Advertise on the Code Project |