or
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick |
Dim Diff As TimeSpan = TargetTime.Subtract(Now) |
If Diff.Seconds = 0 And Diff.Minutes = 0 Then |
Label1.Text = "Data Refresh Now! Stand By!" |
Me.ExpediteTableAdapter.CommandTimeout = 0 |
Me.ExpediteTableAdapter.Fill(Me.MSQL_ERPLXFDataSet.Expedite) |
TargetTime = Now.AddMinutes(30) |
ElseIf Diff.Seconds < 0 And Diff.Minutes >= 0 Then |
Label1.Text = "-" & Format(Diff.Minutes, "#0") & ":" & Format(System.Math.Abs(Diff.Seconds), "00") |
Else |
Label1.Text = "Data Refresh In " & Format(Diff.Minutes, "#0") & ":" & Format(System.Math.Abs(Diff.Seconds), "00") |
End If |
End Sub |
This error only Q1 2010 in version Q2 2009 works.
Which alternative for Telerik.WinControls.UI.RadListBox.SelectedIndices in Q1 2010 ?
thanks
private void MainForm_Load (object sender, EventArgs e) |
{ |
if (this.IsMdiContainer != true) |
this.IsMdiContainer = true; |
string theme = ThemeResolutionService.ApplicationThemeName; |
ThemeResolutionService.ApplicationThemeName = "Office2007Silver"; |
this.Text = Properties.Resources.AppName; |
this.dock.AutoDetectMdiChildren = true; |
this.dock.DocumentManager.DocumentInsertOrder = DockWindowInsertOrder.ToBack; |
this.MdiChildActivate += new EventHandler (MainForm_MdiChildActivate); |
FormPosition.LoadFromRegistry (this, Properties.Resources.AppName); |
} |
EditorForm frm = new EditorForm (file); |
frm.MdiParent = this; |
RichTextBoxEx txt = frm.Editor; |
txt.CursorPositionChanged += new System.EventHandler (CursorPositionChanged); |
txt.SelectionChanged += new System.EventHandler (SelectionChanged); |
txt.MouseDown += new MouseEventHandler (OnRichTextBox_MouseDown); |
frm.Show (); |
grdDifferences.MasterGridViewTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.None; |
grdDifferences.MasterGridViewTemplate.BestFitColumns(); |
int iTotalWidth = grdDifferences.Width; |
int iCountWidth = 0; |
foreach (GridViewColumn column in grdDifferences.Columns) |
{ |
iCountWidth += column.Width; |
} |
if (iCountWidth < iTotalWidth) |
{ |
grdDifferences.MasterGridViewTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill; |
} |