Hi, flickering PDA screen with vb2005 in vs 2005



I have created a form which is I am filling from my programe in a loop
with me.contrls
It looks like this

Public Sub autoFill(ByVal comboY As ComboBox)
Dim tname As String = comboY.Name
If comboY.SelectedItem.ToString = "No" Then
Dim control As Control
For Each control In ctrlGroup
If TypeOf (control) Is ComboBox Then
Dim combo As ComboBox = control
If combo.Name.Equals(tname) Then
combo.Enabled = False
Else
combo.Items.Add("N/A")
combo.SelectedItem = "N/A"
combo.Enabled = False
End If
End If

If TypeOf (control) Is TextBox Then
Dim txt As TextBox = control
txt.Text = "0"
txt.Enabled = False
End If
Next

End If
End Sub
where ctrlGroup is a collection of controls in a form
Now what happens is that when I call this function it starts filing
the form and scrolls down that u see on the form and it takes nearly
15 sec to complete a loop. So you see it filling all the values on the
form and creats screen flickers. what I don't want to see that
flickering on the screen.
Is there any method I can call to stop this?

Any suggestion will be grt
many thankx

.



Relevant Pages

  • RE: New to VBA, Search for hole in numeric value using string as a cri
    ... You are setting the control to true and never checking for it's ... Then loop through those looking for the gap in numbers. ... > Dim tcrNum As Integer ... > Dim tcrPull As Integer ...
    (microsoft.public.access.formscoding)
  • Re: IE sequencing and cookie notification popups
    ... ' 10Apr04: accept cookies from hotmail. ... Dim SetWindowLong ' as object ... Const sDlgCaption = " Kookie Kruncher, ... ' notifications associated with that type of control. ...
    (microsoft.public.scripting.vbscript)
  • FYI: TS client script
    ... for TS on the machine running the script, ... the web control class was not found; ... Dim m_Tracing, m_TraceStream ... Function ArgString(ByVal argName, ByVal defaultValue) ...
    (microsoft.public.win2000.termserv.clients)
  • FYI: TS client script
    ... for TS on the machine running the script, ... the web control class was not found; ... Dim m_Tracing, m_TraceStream ... Function ArgString(ByVal argName, ByVal defaultValue) ...
    (microsoft.public.windows.terminal_services)
  • Re: Transfer data from one Content Control to another Word 2007 VB
    ... unfortunately cleared the grey placeholder text and turned it black and I ... Dim cc1PtMedication As ContentControl ... you can just assign the text of one control directly to the text ... macro transfers the contents of room 1 to the controls for room 3, ...
    (microsoft.public.word.vba.beginners)