case 1: Sometimes I cannot figure out how to make things to work like in this question,Sending drive names to the combo box. In this case I know how to add items to a combo box as well as about getting drive names but I could not figure how to combine those two in order to work. So I asked the question and since I have tried I got a complete working answer so would using this answer as it is for the development of my application be considered plagiarism?
case 2: This is quite similar to case 1, but the answer is not given to me i.e. the question was asked by someone else and they received the answer and I searched the internet found the answer and used the answer as it is in my source code, would that be considered plagiarism?