Click here to Skip to main content
15,888,908 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello.
How can i make a slideshow og show images from Google Images?

My form is like this:

1. I have a textbox, and a picturebox(or something that can show slideshow).
2. When i type f.eks. "Apple Inc", in the textbox, i want images related to that text to show in the picturebox/slideshow box

Is there any Image Search API i can use?

How can i do this? I have no idea myself..

CSS
How can i use this API: http://pixplorer.co.uk/#/
How can i use it to a pictureBox in C# Form?


I tried like this:
"pictureBox1.ImageLocation = "http://pixplorer.co.uk/#/apple";"
But doesn't load the image..
Posted
Updated 7-Oct-14 22:35pm
v3

 
Share this answer
 
Comments
Fail4FunTV 8-Oct-14 7:14am    
How can i use this API: http://pixplorer.co.uk/#/

http://pixplorer.co.uk/getimage/cat
MuhammadUSman1 10-Oct-14 0:57am    
You got answer or not
MuhammadUSman1 9-Oct-14 6:56am    
Check solution i have tested it is working fine for me.
Dear please check solution.
it is working fine i have tested.
C#
string yourSearchingWord = "dog";
           //yourSearchingWord : you can add you textbox value here
           HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://pixplorer.co.uk/getimage/" + yourSearchingWord);
           WebResponse response = request.GetResponse();
           var val = new StreamReader(response.GetResponseStream()).ReadToEnd();
           var ans = val.Substring(val.IndexOf("http:"));
           ans = ans.Substring(0, ans.IndexOf("\""));
           request=(HttpWebRequest)WebRequest.Create(ans);
           response = request.GetResponse();
           Image image = Image.FromStream(response.GetResponseStream());//it will fetch image from web
           pictureBox1.Image = image; //it will show image in image box



and thanks because of you i learn so many new things.

you can use it according to your requirements.


if any Question then let me know.


-> M.U
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900