In this work, we elucidate the electronic charge redistributions that occur within the cyanuric acid (CA) and melamine (M) molecules upon formation of the triple H-bond between the imide group of CA and the diaminopyridine group of M. To achieve this, we investigated 2D H-bonded assemblies of M, CA and CA*M grown on the Au(111) surface, using X-ray photoemission (XPS) and near edge X-ray absorption fine structure (NEXAFS) spectroscopies. Compared to the homomolecular networks, the spectra of the mixed sample reveal core level shifts in opposite directions for CA and M, indicating a nearly complementary charge accumulation on the CA molecule and a charge depletion on the M molecule. These findings were further confirmed by theoretical simulation of the ionization potentials (IPs), which were computed using unsupported models of the H-bonded networks. A natural bond orbital (NBO) analysis performed on the three systems helped to rationalize the net charge transfer form M to CA. Finally, we observed that intramolecular interactions (electron delocalization effects) contribute progressively to the charge redistributions inside the two molecules when going from the homomolecular to the heteromolecular networks.