Click here to Skip to main content
15,881,789 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hi guys , I need the sample code for this one
I have 2 variables the day which is the number of days in a month and the dayofweek which is the number of the actual day (sunday = 1, monday = 2, tuesday =3 and so on)

now for example i have day = 30 and dayofweek = 2 which is monday and i have 35 buttons in my form
How can i make it to look like this?

NULL  1   2   3    4    5    6 
   7  8   9   10   11   12   13
  14  15  16  17   18   19   20
  21  22  23  24   25   26   27
  28  29  30  Null Null Null Null


Any other Implementation is accepted as long as the dates are clickable

NOTE: I need the code cause im a beginner and im having a hard time for now :D
Thank You
Posted
Updated 10-Dec-13 16:55pm
v3
Comments
Sergey Alexandrovich Kryukov 10-Dec-13 23:01pm    
What have you tried so far?
—SA
Goenitz 11-Dec-13 1:14am    
Any suggestions sir?
Sergey Alexandrovich Kryukov 11-Dec-13 2:23am    
I suggest you 1) read Solution 1 thoroughly, 2) put more effort and thought in your work. 3) avoid re-posting your question; instead, edit previously posted ones using "Improve question".
—SA

1 solution

You posed this same question ealier and OriginalGriff kindly outlined the logic for you, yet you have shown no attempt to implement that logic.

So I say: No, you do not need the code because you are a beginner, but you want some-else to write it for you because you are too lazy to make an attempt at doing your own work.

Show some initiative by writing some code. If you are unable to get it to perform as you want, then ask for help with showing your code and explaining what is not working the way you want it to.
 
Share this answer
 
v2
Comments
Goenitz 11-Dec-13 1:10am    
Are there any implementation you would suggest to make it more easier than i planned?
I just need the individual dates to be clicked :)
TnTinMn 11-Dec-13 18:17pm    
What plan? You still have not shown any code implementation that you wrote.
Sergey Alexandrovich Kryukov 11-Dec-13 2:23am    
Good advice, appreciated it. I added my comment to the question crediting it and voted 5.
—SA
TnTinMn 11-Dec-13 18:15pm    
Thanks. Unfortunately based on his comment, it appears that he just does not understand the concept of showing some code.
Sergey Alexandrovich Kryukov 11-Dec-13 19:06pm    
Aha... it's not so easy to explain...
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900