Enharmonic changes

I have problems with enharmonic notes. Sometimes the notes don’t follow the key change. I set the key change to B major with 5 #'s and the system shows me still 2 Eb’s in certain voices instead of a D#. Does anybody know how to automatically change that in the system and/or by hand?

If you add a key signature, Dorico won’t automatically respell any notes with explicit accidentals that follow the key signature. You can select that passage of music and, say, transpose it up a semitone and then back down again via Write > Transpose. You can alternatively select an individual note and type Alt+= (equals) to respell using the note name above (e.g. D# becomes Eb) or Alt± (minus) to respell using the note name below (e.g. D# becomes C#x).