Breaking News
Loading...
Sunday 6 July 2014

How to bind Google Map in C#.net application.




Download Project: GoogleMap.zip
1.       Fist take control as shown in image textbox, button, web browser…
2.       Now generate the click event of the button an write code:
                     string strstate = txtState.Text;
            string strpin = txtPinCode.Text;
            string strcity = txtCity.Text;
            string strstreet = txtStreet.Text;


            StringBuilder objstrbud = new StringBuilder();
            objstrbud.Append("http://maps.google.com/maps?q=");
            if (strstate!="")
            {
                objstrbud.Append(strstate + "," + "+");
            }
            if (strcity != "")
            {
                objstrbud.Append(strcity + "," + "+");
            }
            if (strpin != "")
            {
                objstrbud.Append(strpin + "," + "+");
            }
           
            if (strstreet != "")
            {
                objstrbud.Append(strstreet + "," + "+");
            }

            webBrowser1.Navigate(objstrbud.ToString());


See Also :
  Follow Me On Facebook

--
/\/ir@\/  <(.'.)>

0 comments:

Post a Comment

Thanks for comment

 
Toggle Footer