i m using this code and getting error whats wrong
if (sl.ShowDialog() == DialogResult.OK)
{
mytime = sl.monthCalendar1.SelectionStart.AddHours(sl.dateTimePicker1.Value.Hour).AddMinutes(sl.dateTimePicker1.Value.Minute).AddSeconds(sl.dateTimePicker1.Value.Second);
this.Visible = false;
} }
private void timer1_Tick(object sender, EventArgs e)
{
if (mytime.CompareTo(DateTime.Now) < 0)
{
this.Visible = true;
}
}
Error 1 'login.select_values' does not contain a definition for 'dateTimePicker1' and no extension method 'dateTimePicker1' accepting a first argument of type 'login.select_values' could be found (are you missing a using directive or an assembly reference?)
Loading
Anurag SarkarPosted Aug 10, 2013, 5:23 AM
ta muPosted Aug 10, 2013, 5:38 AM
ta muPosted Aug 10, 2013, 5:17 AM
Iftikar HussainPosted Aug 10, 2013, 3:34 AM
Regards,
Iftikar
ta muPosted Aug 10, 2013, 2:32 AM
Iftikar HussainPosted Aug 10, 2013, 1:43 AM
Regards,
Iftikar
ta muPosted Aug 10, 2013, 1:19 AM
public partial class add_reminder : Form
{
public add_reminder()
{
InitializeComponent();
}
select_values sl = new select_values();
private DateTime mytime;
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
if (sl.ShowDialog() == DialogResult.OK)
{
mytime = sl.monthCalendar1.SelectionStart.AddHours(sl.dateTimePicker1.Value.Hour).AddMinutes(sl.dateTimePicker1.Value.Minute).AddSeconds(sl.dateTimePicker1.Value.Second);
this.Visible = false;
} }
private void timer1_Tick(object sender, EventArgs e)
{
if (mytime.CompareTo(DateTime.Now) < 0)
{
this.Visible = true;
}
}
}
}
Iftikar HussainPosted Aug 10, 2013, 12:50 AM
Can you please share the complete code as will help us to resolve your query?
Regards,
Iftikar