Re-painting Of Form Controls

Mar 4 2006 7:33 PM
Hi: I'm new to VB and am trying to develop a simple screen that when someone presses a "Start" button the button is hidden and a "Cancel" button is displayed. Then a dataset is read. They problem I am having is that the "Cancel" button is never displayed until after the dataset has been completely read. Is there any way to get that button displayed before the dataset read starts? Here is a snipet of the code I have: btnLoad.Visible = False btnstop.Visible = True For counter = 0 To dsExcel.Tables(0).Rows.Count - 1 SelectStr = "SELECT AR_DOC FROM C_IHHDR WHERE AR_CCN = '1' AND AR_DOC_TYPE = 'I' AND LTRIM(AR_DOC) = '" & dsExcel.Tables(0).Rows(counter)("Invoice") & "'"