Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TimeTable - Best Control, Method etc. Please share your view and opini 1

Status
Not open for further replies.

x508

Programmer
Jun 26, 2003
396
ZA
Hi

I am creating a TimeTable for my app.

Which do you think would be the best control to use for this purpose? I thought of using a Datagrid...but it doesn't look that kewl...

I decided now that I think that I am going to use a Listview in report style for this purpose, what do you think.

Alos I have not yet gotten around to the logic of how I am gonna "work out" the time table, how it will be stored in DB etc...Can u maybe also point me in a direction of how I can create,remove(with Code), tables and fields to hold value of my time table, as the matrix will not allways be the same size...

Thanks in advance

*****************************************
May the Code Be With You...[lightsaber]
----------
x50-8 (X Fifty Eigt)
 
It takes a bit of code, but i use a picturebox, and labels. All my data is saved in a database, where ever entry has a start and end time. I return a recordset of all events that occur during the period you want to view, and then using a few maths sums, change the date into a .left figure, and the end - start into a .width value. I also use the individual doing the task as a value to create a .top value.

As all the labels are an array of a single label, I then use the click sub to open a new form with a more detailed version of the event.

As my db is saved to a web-based server, I also have a webpage where individuals can log in from home, and update their own schedule, and make changes. This method means that, although they cannot do everything from the web (my choice), the user can login from any where in the world, and update diaries, and post notes for others.

Hope it helps.

BB
 
Very interesting BB...although I think that this is a brillinat approach, it might be a little steep for me at this time...seeing that I am quite pressed for the T*m% word...lol

Thanks for your ingenious advice...I will definatley remember this for future use.

P.S. I am not used to working with control arrays...does all the arrays not make your app a bit slow..also what do you use to simulate a grid where in all the data appears

Thanks in advance

*****************************************
May the Code Be With You...[lightsaber]
----------
x50-8 (X Fifty Eigt)
 
There is only one array of labels, and the display isn't a grid (in the sense of being a grid control) Each label's vertical position is it's row number (representing one individual) and each label's horizontal position is determined by .left (as start time) and .width (as end-start=duration).

What you see is a whole bunch of labels with each row for one person. It works for diaries (as this app) and for machine schedules (where I've used it in the past)

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'
 
if you want a grid, so that start times are shown by vertical lines, then place a line across the pcture box at what equates to 1hr intervals.

BB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top