Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

mrx100

@mrx100
About
Posts
26
Topics
11
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • get row values on datagrid
    M mrx100

    i don't want to do that but there is a problem with my browser so when i click post nothing happen so i think my question not posted :)

    C# database security

  • get row values on datagrid
    M mrx100

    hi all , i use this code to fill datagrid with data from my database

    private void btn_by_Click(object sender, EventArgs e)
    {

    DataTable dt = new DataTable(); SqlConnection con = new SqlConnection("Data Source=MS-TOSHIBA;Initial Catalog=dalily system;Integrated Security=True"); SqlCommand cmd = new SqlCommand("select place.name,place.address,place.telephone,place.website,place.email,place.info from place,subcateogry where place.subcat_id=subcateogry.id And subcateogry.name='" + subcat_comboBox.SelectedItem.ToString() + "' ", con); con.Open(); SqlDataReader dr = cmd.ExecuteReader(); dt.Load(dr); dataGridView1.DataSource = dt; dr.Close(); con.Close(); } now i want when i click on row select coordinate_x & coordinate_y from place table where name is in row i clicked on And store coordinate_x & coordinate_y as double thanks in advance

    C# database security

  • embed javascript code in c#
    M mrx100

    thanks ryanb31 for answer but iam already solve this problem using webbrowser control :)

    JavaScript csharp javascript

  • rle or huffman c#
    M mrx100

    hi , can anyone help me & give me run length encoding or huffman in c# & thanks

    C# csharp help

  • send data from google api v3 javascript to c#
    M mrx100

    loyal ginger wrote:

    I believe my answer to your previous question (http://www.codeproject.com/Messages/4243389/Re-csharp-windows-form-google-api-v3.aspx[^]) actually contains answer to this question. Check the first half of that answer for more information.

    when i use first From JavaScript to C# i have this error in javascript: unable to get property 'report_location' object is null or undefiend see image please : http://www.mediafire.com/?rh2ml2645fajoio[^] do you know why this error appeared i am really appreciate your help thanks in advance

    C# javascript csharp html com iot

  • send data from google api v3 javascript to c#
    M mrx100

    hi all , i want to sent latitude & longitude on click on map to c# windows form textbox_latitude & textbox_longitude this code send latitude & longitude on click on map but it send it to html input type="text" name="lat" ,input type="text" name="lng" i want to transfer var lat , var lng to c# windows form textbox_latitude & textbox_longitude <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <title>Google Maps JavaScript API v3 Example: Dragable and clickable marker with lat and lang in form</title> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript"> var map; function initialize() { var myLatlng = new google.maps.LatLng(30.050077, 31.238594); var myOptions = { zoom: 7, center: myLatlng, mapTypeId: google.maps.MapTypeId.ROADMAP } map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); var infowindow = new google.maps.InfoWindow({ content: "Drag marker to position
    or click to place" }); infowindow.open(map); google.maps.event.addListener(map, 'click', function(event) { var clickedLocation = new google.maps.LatLng(event.latLng); var marker = new google.maps.Marker({ position: event.latLng, title:"Marker position", draggable: true, map: map }); infowindow.open(map,marker); map.setCenter(event.latLng); google.maps.event.addListener(map, 'click', function(event) { marker.setMap(null); }); google.maps.event.addListener(marker, 'dragend', function(event) { var point = event.latLng; var lat = point.lat(); var lng = point.lng(); document.getElementById("frmLat").value = lat; document.getElementById("frmLon").value = lng; }); var point = event.latLng; var lat = point.lat(); var lng = point.lng(); document.getElementById("frmLat").value = lat; document.getElementById("frmLon").value = lng; }); } </script> </head> <body onLoad="initialize()">

    Lat: <input type="text" name="lat" id="frmLat" >
    Lng: <input type="text" name="lng

    C# javascript csharp html com iot

  • c# windows form & google api v3
    M mrx100

    when i put this line of code in webbrowser control it works thanks for all for answers :) if (e.Url.Equals(webBrowser1.Url)) { webBrowser1.Document.InvokeScript("initialize", new object[] { latitude, longitude }); }

    C# question csharp javascript json

  • c# windows form & google api v3
    M mrx100

    loyal ginger wrote:

    In my example, wb_map is the WebBrowser control on the Form. You need to replace it with the WebBrowser control in your application

    of course i replace wb_map by webBrowser1 control but i have error i don't know what causes this error object reference not set to an instance of an object ????!!!!!!!!!!!

    C# question csharp javascript json

  • c# windows form & google api v3
    M mrx100

    loyal ginger wrote:

    wb_map.Document.InvokeScript( "set_location", new string[]{ "30.050144", "31.240042" } );

    thanks for this simple & great answer but when i use this code i have this error object reference not set to an instance of an object

    C# question csharp javascript json

  • c# windows form & google api v3
    M mrx100

    this code i use in html page <%--!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> --%>   html { height: 100% } body { height: 100%; margin: 0; padding: 0 } #map_canvas { height: 100% } function initialize() { var myOptions = { center: new google.maps.LatLng(30.04866, 31.23688), zoom: 8, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); var myLatlng = new google.maps.LatLng(30.050144, 31.240042); var myOptions = { zoom: 20, center: myLatlng, mapTypeId: google.maps.MapTypeId.ROADMAP } var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); var marker = new google.maps.Marker({ position: myLatlng, map: map, title: "Hello World!" }); }

    & this code i have used in c# form StringBuilder queryAddress = new StringBuilder(); queryAddress.Append("file:///C:/Users/mrx1000/documents/visual studio 2010/Projects/testgoogleapi3/testgoogleapi/HTMLPage1.htm"); webBrowser1.Navigate(queryAddress.ToString()); this image for my form in running http://www.mediafire.com/?rqckg28xb4rlahb as you see i didn't enter anything in latitude text box or longitude text box i find away but it's very difficult in this example & when i use it gives me errors // webBrowser1.DocumentText = //"" + //"function test(message) { alert(message); }" + //"" + //""; what i should i do now?

    C# question csharp javascript json

  • c# windows form & google api v3
    M mrx100

    var myLatlng = new google.maps.LatLng(30.050144, 31.240042); this javascript code works but, i want to replace the static values of latitude (30.050144) & longitude (31.240042) in javascript code with any value entered by user in latitude textbox & longitude textbox

    C# question csharp javascript json

  • c# windows form & google api v3
    M mrx100

    hi all, i use c# windows form application & i want to change latitude & longitude in google api v3 JavaScript code var myLatlng = new google.maps.LatLng(30.050144, 31.240042); according to C# form latitude text box & longitude text box entered value I can display the page in webbrowser control but it's static how can i do this??? thanks in advance

    C# question csharp javascript json

  • embed javascript code in c#
    M mrx100

    i want to use google api v3 javascript code i want this javascript code : var myLatlng = new google.maps.LatLng(30.050144, 31.240042); take latitude & longitude from my windows form application i can show page in webbrowser control but it's static

    JavaScript csharp javascript

  • embed javascript code in c#
    M mrx100

    please i want to embed javascript code in c# windows form application & i use web browser control to display page what should i do & thanks

    JavaScript csharp javascript

  • embed javascript code in c#
    M mrx100

    please i want to embed javascript code in c# windows form application what should i do & thanks

    C# csharp javascript

  • send data from c# to html
    M mrx100

    help,please ????????

    C# csharp java html tools tutorial

  • send data from c# to html
    M mrx100

    hi , i have html webpage and contains java script code i want to send data from c# windows form which already have webbrowser control to display the page to html page to change values of java script variables & i can display the html page in webbrowser control but it's static values so i want to know how to transfer data between windows form & html page

    C# csharp java html tools tutorial

  • select in star schema
    M mrx100

    don't download image just click on preview on medifie

    Database database com xml question

  • select in star schema
    M mrx100

    i have used union select mall.name from mall,places where mall.place_id=places.id UNION select hospital.name from hospital,places where hospital.place_id=places.id UNION select clinic.name from clinic,places where clinic.place_id=places.id UNION select shop.name from shop,places where shop.place_id=places.id but it's very long i should select name from 25 table can you use nested query i think it will solve the problem

    Database database com xml question

  • select in star schema
    M mrx100

    hi ,i want to select name from all around tables & i have near 25 tables such as : select name from pharmacy , hospital , theater ,etc... all of them is linked with place table by id this picture show sample of tables : http://www.mediafire.com/?20rsb4q25kyj14w[^]

    Database database com xml question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups