We do it all the time.
When things don't go as we would have hoped, very few actually praise God and thank him for our misfortunes. Instead we throw a fit at God - we stop praying and studying our bibles. We often say to our little ones, 'you get what you get and don't throw a fit' how about we lead by example in that hour of discouragement, trial or affliction.
Are you undergoing trials? Is the Christian life getting harder and harder? Does it appear as though God is giving you the silent treatment? I have often found myself throwing tantrums at God BUT experience has taught me that, it's at our moment of great disappointment that divine help is nearest. Giving up on God at such a time is the worst thing you want to do!
Our lives are much like construction sites, but instead of seeing signs that say "men at work" we see the sign "God at work." God is always present but in times of trouble or need He is 'very present!' He will place barriers to prevent you from going over a cliff or making a bad decision. He will create a mudslide of events that will have you on a fast slope that seemingly leads to nowhere, only to have you standing somewhere thinking, "Wow! That's my God."
God through his word uses a beautiful analogy that He is the potter and we are the clay. "As the clay is in the potter's hands so are you in My hand." Jeremiah 18:6 - a beautiful pot is made by shaping clay into a vessel and then refining it in fire until it is purified and hardened. Only then is it worth of use.
Moral of the story: We must show a firm, undeviating trust in God. Often He delays to answer us in order to try our FAITH or test the genuineness of our desire. Having asked according to His word, we should believe His promise and press our petition with the determination that we will not be denied. God doesn't not say; ask once and you will receive. He bids us ask. Unwearingly persist in prayer. The persistent asking brings the petitioner into a more earnest attitude, and gives him an increased desire to receive the things for which he asks. Christ said to Martha at the grave of Lazarus, "If thou wouldst believe, thou shouldest see the glory of God." (John 11:40).