manu pai

manu pai

  • NA
  • 1
  • 693

C# CHART APPLICATION

Oct 5 2016 3:16 AM

HI CAN ONE ONE HELP ME WITH THIS.I am trying to take Max and Min values from two Tetbox.text for Time...i;e my X-AXIS on C# chart is Time and i want to set the min and max time on runtime through textbox.text,,,code is here:

chart1.ChartAreas[0].AxisX.Minimum = DateTime.Parse(textBox7.Text).ToOADate(); chart1.ChartAreas[0].AxisX.Maximum = DateTime.Parse(textBox8.Text).ToOADate();

 
 
 
and when i give values like textbox7.text = 09:27 and textbox8.text= 09:28, I am getting just a black x-axis when i run this code 
 
 
and when i do debugging I get some magic values like 42648.39375...,which you can see in the attached pic....
 
 
 
plz help me out... 

Answers (1)