473,411 Members | 1,982 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

grid controls?

Hey there, just wondering if there are any built-in grid controls or what
people use.

N.B below isnt correct code (obviously) its just my mental interpretation so
you guys can understand easier

My purpose is a game, i need a grid about 12x12 'cells', i need to be able
to apply code to each 'cell' for the purpose of adding text, and reading.
e.g
cell1a.text = "R"

I also need to create a loop (that, i can do) that starts at one cell, and
then moves along the row,
e.g
cell1a.text = "" then check cell1b

and so on, and then i need to be able to move down onto the next row in the
event of a cell having information.
e.g
cell1a.text = "" then check cell1b
cell1b.text = "" then check cell1c
cell1c.text = "D" then check sell 2c

(notice in cell1c how i want it too move down?)

thanks guys i got a really good and quick respons last time good work :-D,
if u cant help me with the whole thing thats fine, - help appreciated!!

-Jason

Jul 17 '05 #1
2 2007

"margetts" <ma******@bigpond.com> skrev i en meddelelse
news:Uv*******************@news-server.bigpond.net.au...
Hey there, just wondering if there are any built-in grid controls or what people use.

N.B below isnt correct code (obviously) its just my mental interpretation so you guys can understand easier

My purpose is a game, i need a grid about 12x12 'cells', i need to be able to apply code to each 'cell' for the purpose of adding text, and reading. e.g
cell1a.text = "R"

I also need to create a loop (that, i can do) that starts at one cell, and then moves along the row,


Make a simple UserControl that acts as like you want it. This
should not take an hour to program (Worst case scenario)

--
/\ preben nielsen
\/\ pr**@post.tele.dk
Jul 17 '05 #2

"margetts" <ma******@bigpond.com> wrote in message
news:Uv*******************@news-server.bigpond.net.au...
| Hey there, just wondering if there are any built-in grid controls or
what
| people use.
|
| My purpose is a game, i need a grid about 12x12 'cells', i need to be
able
| to apply code to each 'cell' for the purpose of adding text, and
reading.
| e.g
| cell1a.text = "R"
|
| I also need to create a loop (that, i can do) that starts at one cell,
and
| then moves along the row,
| e.g
| cell1a.text = "" then check cell1b
|
| and so on, and then i need to be able to move down onto the next row
in the
| event of a cell having information.
||

Try the Microsoft Hierarchical Flexgrid Control 6.0 (so named in the
components list).

This code shows how to setup a 12 x 12 grid and fill it with random
data, and should give you an idea of how to make loops that check
things, etc.

Private Sub Form_Load()
Dim n As Long
Dim j As Long
Dim r As Single

Randomize

With Me.MSHFlexGrid1

.FixedCols = 0
.FixedRows = 0
.Cols = 12
.Rows = 12

For n = 0 To .Cols - 1
.ColWidth(n) = 400
Next n

For n = 0 To .Cols - 1
For j = 0 To .Rows - 1
r = Rnd
If r > 0.75 Then
.TextMatrix(j, n) = "R"
End If
Next j
Next n

End With

End Sub


Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: SAM | last post by:
Hey guys, Long time Access programmer, but never had to bother with these things until now. First, I use ADO all the time in VB, but now I need to use it in Access 2K. I never remember/know...
9
by: Michael Howes | last post by:
I'm looking for a power grid control to use for some C#/Windows forms development. There are a LOT of grids out there and trying to analyzes them could turn into a long task. Some things I'm...
6
by: Paul | last post by:
Hi I have 2 data grids and several controls on a web page. The grids will vary in size, just wondering if the lower grid could be covered by part of the upper grid depending on its size or is there...
6
by: Tom | last post by:
I need to make up a 'grid' of controls at run time. The controls (of which I wrote) I will instantiate, then I need to arrange these in a row/column layout. For example, let's say I instantiate 20...
2
by: Tom | last post by:
I need to display a series of controls (in my case, a custom control) in a grid-like fashion. This means this particular control would be repeated multiple times, arranged in a row/column format....
0
by: Workgroups | last post by:
Not sure the best way to go about making this: I have 3 user defineable values - Width, Height, and Size. These values need to define a "grid" of some kind in the following manner: The Width is...
2
by: C Glenn | last post by:
I have both a DataGrid and collection of data editing controls within a form connected to the same table within the same DataSet with a CurrencyManager. But they don't remain in sync with one...
3
by: Dave | last post by:
I am designing a web page using VS2003 ASP.NET. The page contains various DIVs (panels), one of which is in grid layout. The controls in this DIV render correctly in IE, but when using Firefox they...
1
by: sonali_aurangabadkar | last post by:
i want to edit whole grid on singel button click
0
by: patogenic | last post by:
I want to use the grid for record insertion. Everything works fine except after saving the new record; all controls for record insertion are still visible besides the "Add New" button. I think...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.