I am a Lotus Notes developer trying to write code in VB. I have a number of scripts running to hide rows, and it flashes whenever the code is run.

Is there a way to run this code in the background so that the user does not see the flashing?

you can change the form properties
visible = false -> to hide form
show in taskbar = false -> to hide from taskbar

if you want to hide application from task manager
add this in your code :
app.taskvisible = true
actually your application not shown in application list but still detect in process list in task manager.