The de-icing fluid has what is call a 'holdover time' which means that it will continue to keep the aircraft frost free for a period of time, on the ground this can stretch to hours.
In the air I believe there are systems using engine bleed air and electronics to help keep the aircraft frost and ice free.