|
A quick google search for "c# virtual Earth" gave me this thread. I think it can give you the answers you need.
|
|
|
|
|
Does using Webbrowser control in your windows application solves the problem?
|
|
|
|
|
Well, if your app will be on a computer that is not on the internet, then I guess you want to rewrite google maps.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
What you need is a GIS application (believe me, you don't want to write one yourself - these are seriously complicated). There's an open source implementation called SharpMap here[^]. Beyond that, you need the actual map images - and these are going to cost you, unless you use something like OpenStreetMap[^].
Alternatively, you could (as others have suggested) just use Google Maps.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Hello My Friends
I think some misunderstanding happened.
I don't need the GIS application or web solution.
I only want insert a simple ground map (no a map with zoom capability or street map, only earth map) in C# and each times determine certain latitude and longitude in the map with color point(for example).
Best Regards,
Reza Shojaee
|
|
|
|
|
Reza - a GIS solution is still your best option. If you don't have one, then the maths behind your lat/long can be seriously complicated due to issues such as Mercator projections.
Basically, when you represent a sphere (technically the earth isn't a sphere, but let's keep things simple) in a 2D format, you need to distort portions of the unwrapped sphere to represent it. This means that you need to take things like altitude into account when you perform your calculations.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
I implementing a application for satellite orbit predicting, and in my program need the insert satellite in the certain lat/long on the map.
for example you can see the track of NOAA 15 in the below link:
http://science.nasa.gov/temp/NOAA15Loc.html[^]
Best Regards,
Reza Shojaee
|
|
|
|
|
Fine, so why doesn't GIS satisfy your needs? Please read this[^] link and then think about how you are planning to tackle this - all I ask is that you don't try to reinvent a particularly well defined wheel.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
I create a application for the track the browsing centers with their ip address.
1) First they install my application in their system then only they access the Internet.
2) Second they could not kill my process because if they kill my process i could not track them.
3) So how to prevent my application process from End Process in Task Manager and also hide my application process from the Task Manager and System Tray.
They also Uninstall my application without my permission. How it is possible using C# code. plz help me with your useful ideas.
Thanks,
Vasanth.A
|
|
|
|
|
Disable Task Mgr. using Microsoft.Win32
modified on Tuesday, July 28, 2009 3:49 AM
|
|
|
|
|
vasanth arivali wrote: How it is possible using C# code. plz help me with your useful ideas.
There is absolutely no way this is possible. The only way to do it, is to set the machine your code is running on so that the login people use, does not have access to task manager, or add/remove programs. Otherwise, it's a fantasy. There are things you could try, but all, by definition, can be defeated.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
...you'll not get help here writing malware.
|
|
|
|
|
His explanation is plausible, and it sounds like the sort of job that would be farmed off to the third world and end up in the lap of someone who didn't know enough to know that it's not possible. I mean, who else but a third world outsourcer would commit to writing this, THEN try to find out if it's possible or not ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
That is a very very small minded opinion! Plenty of development shops in all countrys have a track record of commiting to things without knowing if they are feasible.
|
|
|
|
|
Easy, in part...
If you're a network admin writing something for a bunch of users on an Intranet, write it as a system service (Running as the System account), and don't give your users administrator rights.
Then they won't be able to kill the process, or uninstall it... It will still show up in Task Manager, and there's nothing you can do about that.
Other than that, you're pretty much out of luck. No one here is going to help you write malware, or anything that acts similarly.
|
|
|
|
|
Is that the sort of thing you want running on your system?
|
|
|
|
|
I use the following code to add linkbutton to footer of a grideview, but it cause error sometimes!!!!!
In my computer as local server it works, but another users see the error.
LinkButton lbtn = new LinkButton();
lbtn.Text = " |< ";
Panel pnl = GridView1.FooterRow.FindControl("pnlFooter") as Panel ;
lbtn.CommandArgument = (pageindex).ToString();
lbtn.Command += new CommandEventHandler(lbtn_Command);
pnl.Controls.Add(lbtn);
the error accurs at line
Panel pnl = GridView1.FooterRow.FindControl("pnlFooter") as Panel ;
what could I do to solve it?!!!!
any help would be useful!!
HTML For footer gridview:
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" AllowPaging="False" GridLines="None" ShowHeader="False" onpageindexchanged="GridView1_PageIndexChanged" ShowFooter="True" FooterStyle-Font-Bold="True">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<table style="width:100%">
<tr>
<td>
<!-- <asp:LinkButton Text='<%# Eval("Title") %>' ID="libtnGRV" CommandArgument='<%# Eval("URLProduct") +"&Companyurl="+ Eval("URLCompany")%>' runat="server" oncommand="libtnGRVcommand" Font-Bold="True"></asp:LinkButton>-->
<!--<a href='<%# Eval("Title") %>' style="text-decoration: none; font-weight: bold" runat="server"><%# Eval("Title") %></a>-->
<asp:HyperLink ID="HyperLink1" runat="server"
NavigateUrl='<%# "ShowProductDetails.aspx?ARG="+(Eval("URLProduct") +"&Companyurl="+ Eval("URLCompany")).Replace("./?", "http://www.sme.ir/&") %>'
Text='<%# Eval("Title") %>' Font-Bold="True"></asp:HyperLink>
</td>
</tr>
<tr>
<td>
<label runat="server" visible="false"><%# Eval("Price")%></label>
</td>
</tr>
<tr><td>
<!-- <a href='<%# Eval("URLCompany") %>' runat="server"> <%# Eval("CompanyName")%></a> -->
<asp:LinkButton ID="liCompany" Text='<%# Eval("CompanyName")%>' CommandArgument='<%# Eval("URLProduct") +"&Companyurl="+ Eval("URLCompany") %>' OnCommand="libtnGRVcommand" runat="server" ></asp:LinkButton>
<%#Eval("Location") %>
</td></tr>
<tr>
<td>
<label id="Label1" runat="server" ><%# Eval("RESOURCE") %></label>
<br />
<br />
</td></tr>
</table>
</ItemTemplate>
<FooterTemplate>
<asp:Panel ID="pnlFooter" runat="server">
</asp:Panel>
</FooterTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
|
|
|
|
|
how do i convert cmd.executenonscalar to int
its giving exception
This code was posted by me...
|
|
|
|
|
With code. How about posting some code so we can see what you're doing wrong ? I thought it returned an int anyhow, if not you should be able to cast it. Code and an error message would help us.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
First of all - what's the exception? Secondly, there's no ExecuteNonScalar command (I assume you mean ExecuteScalar here). Third, retrieve the value into an object, and then use int.TryParse to attempt to convert the object into an integer.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
If you're querying an int from a database with ExecuteScalar , then the value is already an int , you don't need to convert it. All you need to do is use a cast to unbox it:
int x = (int) cmd.ExecuteScalar() ;
|
|
|
|
|
Please reconfirm the method
|
|
|
|
|
Hi,
Has any one every used the latest version of the patterns from www.dofactory.com? I am working through their code and some stuff don't make sense to me. When I enter the service layer from the client side (code behind), the call a mathod like GetProduct, and this method will return a ProductResponse. In this method the GetProduct method is called from the ProductDao and it returns a Product object. Then the Product's properties are assigned to that of a data transfer object, and this is returned.
Can someone please try and explain why they would use it like this, especially requests and responses? Normally requests and responses are used with web services, but they don't use web services here. Is this a new way of doing things?
Regards
Brendan
|
|
|
|
|
I've not looked at the most recent patterns but judging by the fact they've got a service layer it implys the design would be using a web service or WCF. It is possible that the design will be for a multi tiered app with a service but for simplicitys sake for the setup they've made it a logical service layer rather than physical.
|
|
|
|
|
Thanks. How do you rate the previous design that they used? Do you think it is good implementing? In the newer version they had a service, but you don't have to use it. You can disable it. I disabled it, but there is still the request and response objects.
|
|
|
|