473,385 Members | 1,486 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,385 software developers and data experts.

A big dynamic image grid

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
how many columns the grid has; the Height indicates how many rows the grid
has, and the Size indicates both the Width and Height of each individual
unit, or cell, on the grid (all cells are to be square, n x n).

Each cell of the grid must be receptive to a drag & drop operation, be able
to display an image. Each cell of the grid needs to be somehow aware of
what picture it's holding so that it can write that information out to a
file later.

My initial attempt at this is quite the horrific and abysmal failure :) It
"works", but it is *laughably* inefficient. Thinking I was being somewhat
cleaver, I created a custom control that inherits from picturebox and taught
it to handle the drag/drop operations in the way I want & output it's
contents to the file. Next, I created another custom control that can be
fed the Width, Height & Size values, which then populates & resizes itself
accordingly, housing any given number of my custom picturebox controls to
create a "grid" of them as per the dimension settings. This control, in
turn, goes on a form where I can specify new dimensions for the grid and
drag & drop pictures into it's cells.

Unfotunately, at some point I'll need this grid to reach sizes of say, 10000
x 10000. Very soon this becomes an obviously unreasonable request upon my
poor little program. It takes it several seconds to render a grid even 100
x 100, let alone ten thousand. I didn't even bother to attempt making one
of that size. So I don't think my "cleaver" idea was very cleaver at all,
in hindsight.

What controls should I research (or make) to make this project a reality?
There is no database involved; but should I try tinkering with a datagrid,
or would that be more frustration than it's worth? Would I be better off
simply OwnerDrawing a single picture box and simulating the whole grid/cell
thing under the hood, relying on x,y coords of drag/drop operations,
indexing what was being displayed where, all the while allowing the thing to
be dynamically sized (that seems like a somewhat daunting task but I suppose
I could do it if I had to).
Nov 21 '05 #1
0 1466

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

Similar topics

8
by: Ashish Shridharan | last post by:
Hi All I have been trying to add a control to the header cell of a datagrid on my ASP.NET page. These controls are defined in the HTML as ASP.NET web controls. They are being added into the...
13
by: Chris Thunell | last post by:
I have created several grids dynamically and have added them to different HTML placeholders on a vb.net web form. The grids and controls within them come up and view beautifully when the web page...
4
by: mwhalen | last post by:
Hi, I have a page that has a datagrid bound to a dataset. Items are added to the dataset at particular times (ie the click event of an item in a tree control) then bound to the grid. The grid...
1
by: JMann101 | last post by:
I am writing a ASP.NET(VB) application and am having some trouble. I have a datagrid which list users and when an admin clicks "edit" a defined column becomes visible and a dynamic listbox control...
10
by: kaczmar2 | last post by:
Hey there, I have a large image in a browser window, and I would like a way to overlay grid lines on top of the image, so a user can show the grid or hide the grid lines. The grid would cover...
3
by: kaczmar2 | last post by:
Hey there, I have a large image in a browser window, and I would like a way to overlay grid lines on top of the image, so a user can show the grid or hide the grid lines. The grid would cover...
2
by: Noctiluca | last post by:
Hi folks, Very much a learner when it comes to programming so excuse me if this is a silly question... I'm trying to generate a map of the positions of moth records in a mysql database using PHP...
0
by: Andrew | last post by:
Hello Ive been messing around with a simple raw image viewer using Pil and Tkinter However I am running into problems displaying the images they appear to be not correct I believe it is cause of...
1
by: yo | last post by:
I need to display some geographic related database records on an image map object. So far all the examples I found show hard coded hotspot coordinates. I would like to get some sameple code...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.