By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,286 Members | 1,672 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,286 IT Pros & Developers. It's quick & easy.

Graphics question

P: n/a
I'm trying to create a scheduler program to keep track of what parts
of our training grounds are being used on what days.

I'd like to have a drawn out representation of our training areas and
show the reserved areas shaded. Is there an easy way to do this in
VB2005?
Sep 28 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Kevin wrote:
I'm trying to create a scheduler program to keep track of what parts
of our training grounds are being used on what days.

I'd like to have a drawn out representation of our training areas and
show the reserved areas shaded. Is there an easy way to do this in
VB2005?
Probably not the best way of doing this, but this is what my first shot
would be. ( im still a newbie ).

Perhaps create a bitmap of your "grounds". Since im assuming this will
stay stagnenet.

Paste that to the form

Then, create other objects ontop that are invisible ( visible = false )
and visibleize them as you need them / or create them dynamically thru
code ontop of your bitmap picture.
M.
Sep 28 '07 #2

P: n/a
On Sep 28, 1:41 pm, Kevin <kmahoney@nospam_fireacademy.orgwrote:
I'm trying to create a scheduler program to keep track of what parts
of our training grounds are being used on what days.

I'd like to have a drawn out representation of our training areas and
show the reserved areas shaded. Is there an easy way to do this in
VB2005?
Sure, I have similar projects that are used for managing stock in
warehouses. I built my project using a mix of usercontrols and GDI+.
If you google GDI, you will find a lot of articles on how to do this.

Start with adding a new custom control to you project and overriding
the onPaint event. grab the Graphics object from onPaint like so..

Protected Overrides Sub OnPaint(ByVal e As
System.Windows.Forms.PaintEventArgs)
dim g as Graphics = e.Graphics

'your drawing code here
End Sub

The graphics object has a lot of methods for drawing that are fairly
simple to follow.

Sep 28 '07 #3

P: n/a
Kevin wrote:
I'm trying to create a scheduler program to keep track of what parts
of our training grounds are being used on what days.

I'd like to have a drawn out representation of our training areas and
show the reserved areas shaded. Is there an easy way to do this in
VB2005?
Probably not the best way of doing this, but this is what my first shot
would be. ( im still a newbie ).

Perhaps create a bitmap of your "grounds". Since im assuming this will
stay stagnenet.

Paste that to the form

Then, create other objects ontop that are invisible ( visible = false )
and visibleize them as you need them / or create them dynamically thru
code ontop of your bitmap picture.
M.
Sep 28 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.