Setting Win Title Bar

  • Thread starter Thread starter inadsad
  • Start date Start date
I

inadsad

Greetings Group,
I have a form in VS2005 with serveral controls bounded to a
dataset and two buttons. On Add button click event
I set the window title name as follow

Me.text = Me.text + sNewRecord

the above line would set the CPU usage to 90% on multiple add button
clicks. The only way to reduce the CUP usage is to add doevents:

Me.text = Me.text + sNewRecord
Application.DoEvents <----------- not sure ???

Not sure why setting the me.text would cause so much CUP Usage. I
would appreciate feedback.

Ian
 
Iadsad,

I cannot see why either

If you use the variable 'sNewRecord' & it's assigned the value beforehand then
Me.Text += sNewRecord should me fine.

What is needed is what is the code to assign the new record & pulling it out
from the dataset?

Please supply more of your code for the newsgroup to examine to see what is
happening.
 
Back
Top