It depends on what you are gluing the hardboard to. I haven't had very good results using yellow (carpenter's) glue on hardboard and would suspect contact cement would be better, would need to rough up the hardboard first and apply a couple of layers of cement to the hardboard. I think a better alternative would be something like PL400, it can be messy and difficult to clean, so be careful, but it is a very good adhesive.