Microsoft Developer Network > 포럼 홈 > Off-Topic Posts (Do Not Post Here) > how to display time value based on width of the line
질문하기질문하기
 

제안된 답변how to display time value based on width of the line

  • 2009년 11월 6일 금요일 오후 9:49ManasMSDN 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    hi,

    how can i display time on a line based on its width

    if i
    case 1: increase the line width, time value s should be interms of  minutes and seconds
    case 2: decrease the line width, time values  should be interms of  hours and minutes
    case 3: days
    case 4: months like that


    any formula plz help me!

    thanx in advance
    • 편집됨ManasMSDN 2009년 11월 6일 금요일 오후 9:49description
    • 편집됨ManasMSDN 2009년 11월 6일 금요일 오후 10:11text
    • 이동됨eryangMSFT2009년 11월 12일 목요일 오전 8:02 (From:.NET Base Class Library)
    •  

모든 응답

  • 2009년 11월 7일 토요일 오후 7:04DeborahKMVP사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     코드 있음
    There is an Add method for a date that you can use to increase a date by minutes, seconds, hours, or whatever.

    Here is an example:

            Dim dt1 As DateTime
            dt1 = DateTime.Now
            dt1 = dt1.AddDays(2)
            Debug.WriteLine(dt1.ToString)
    


    Hope this helps.
    www.insteptech.com ; msmvps.com/blogs/deborahk
    We are volunteers and ask only that if we are able to help you, that you mark our reply as your answer. THANKS!
  • 2009년 11월 9일 월요일 오전 2:02konikula 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    Use myDate.Format(formatString)

    for example Now().Format("HH\:mm") will writeout current time in 24 short format

    check out custom format strings
    http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx

    you may also know that each valuetype (integer, double, timespan, time) has custom format strings which are very usefull time from time...

    Cheers, Matt
  • 2009년 11월 9일 월요일 오후 3:14ManasMSDN 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     

    Hi,

    i am talking about , GDI+ stuff.

    how to draw a line based on time values.

    how can i display time on a line based on its width

    if i
    case 1: increase the line width, time value s should be interms of  minutes and seconds
    case 2: decrease the line width, time values  should be interms of  hours and minutes
    case 3: days
    case 4: months like that

  • 2009년 11월 11일 수요일 오전 6:51eryangMSFT사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    Hi,
    If you are interested in GDI+ technology, you can consider posting it at GDI+ related forum for quicker and better support.

    Thanks,
    Eric
    Please remember to mark helpful replies as answers and unmark them if they provide no help.
  • 2009년 11월 18일 수요일 오후 10:47ManasMSDN 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     

    hi,

    can anyone tell me where is the link   for GDI+ Forum.
    thanks

  • 2009년 11월 19일 목요일 오전 6:12Saju Mathew 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     제안된 답변
    May be you can raise this in Windows Forms General

    http://social.msdn.microsoft.com/Forums/en-US/winforms

    • 답변으로 제안됨Saju Mathew 2009년 11월 23일 월요일 오전 4:44
    •