Graphics question

  • Thread starter Thread starter Kevin
  • Start date Start date
K

Kevin

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?
 
Kevin said:
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.
 
Kevin said:
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.
 
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.
 
Back
Top