We have a new kitchenaid dishwasher with a fairly simple control panel (8 buttons). We already had to have the mainboard replaced by the manufacturer. Unless your dishwasher is really old, even if it appears simple, it almost certainly is not.
One fix I found online was that if you have a hotter than normal water supply, the exhaust vent isn't big enough to let all of the steam out so the board gets wet.
The service guy crimped the vent wider after I told him about that one.