|
Hi All,
A quick question regarding mapping? I supply a free app to our customers for downloading GPS data from a handheld. What i have is an array of long/lat positions. What i would like to do is plot that information inside the Windows application... I've had a look at Google Maps / Live Maps API and altho they look good, they look like their supposed to be used on a website... not a winform app?
My question to you guys is what would be the propper / ideal technology to use to acheive this?
Many many thanks!
Will
|
|
|
|
|
|
mmmmm thats a tad expensive!!
is there any free alternative??
|
|
|
|
|
|
Who can do mouse gesture?
I need to create source code same program "Stroke It" with C#
Please help me...
Please create source code or advice to me...
Thank a lot for everybody.
|
|
|
|
|
Please don't post the same question twice. You already received reply here: how to mouse gesture without window[^]
Also, don;t expect anyone to write code for you. We can give you hints but we are not going to do your job.
|
|
|
|
|
hi all
i want to seacrh in a text like "hello code project"
and i want to know how many time the letter 'e' for example comes in this text
and i want to know how many time the letter 'e' for example comes in the first in the word , last in the word, middle in the word
is there a way to do that
please help me
thanks for all
Kareem Elhosseny
|
|
|
|
|
You could simply iterate the string. You can use IndexOf method to search for desired characters and Split method to break the sentence into words.
The need to optimize rises from a bad design.
My articles[ ^]
|
|
|
|
|
plz my friend can u write for me the simple code
here is my code and it works but i dont know how can i know the letter in first or in middle or in last
thanks for ur help my friend
string convertedPw;
int counter = 0;
int uLetters = 0;
//string quran = "Allah Akber";
//CharEnumerator charenum = quran.GetEnumerator();
string mytext= "hi code project";
CharEnumerator charEnum = mytext.GetEnumerator();
while (charEnum.MoveNext())
{
convertedPw = Convert.ToString(pw[counter]);
// here i use the unicode tro define the letter
if (convertedPw == "\u0645")
{
uLetters++;
}
counter++;
}
lblDetails.Text += "ur entry letter comes: " + uLetters.ToString() + "\n";
Kareem Elhosseny
|
|
|
|
|
You could try investigating something like this:
string mytext = "hello code project";
string[] words = mytext.Split(' ');
int wordcount = words.Length;
int numberOfInterestingCharacters;
foreach (string word in words) {
numberOfInterestingCharacters = word.Split('e').Length - 1;
}
The need to optimize rises from a bad design.
My articles[ ^]
modified on Saturday, November 22, 2008 1:10 PM
|
|
|
|
|
thanks my dear friend i'll try it
Kareem Elhosseny
|
|
|
|
|
There are three 'e' characters
There is one 'e' in each word.
I really don't see the need to write software to do the counting in that situation. If you did it with .Net 3.5, you'd need to ship your 30k program and the 305mb runtime installer. Let's talk about overkill.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
I'm sorry that someone did your homework for you. I suggest you spend some time REALLY understanding the code you were given, so you're capable of building on it with the next assignment.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Christian Graus wrote: I'm sorry that someone did your homework for you
That would be me. Based on his profile I didn't consider this as a homework assignment, but you could be right Oh well, still lots of things to learn...
The need to optimize rises from a bad design.
My articles[ ^]
|
|
|
|
|
execuse me if u have agood word u can say it , if not plz keep your tange in ur mouth
this is not a homework and here is a comunity so any body can learn from me and i also have to learn from otherbody
thanks for ur helpfull replay but plz remember my first words
Kareem Elhosseny
|
|
|
|
|
elhosseny wrote: execuse me if u have agood word u can say it , if not ...
من كان يؤمن بالله واليوم الآخر فليقل خيرا أو ليصمت Same to you Kareem!
Hostility will get you nowhere. Especially in a community environment.
Besides, Christian said nothing wrong about you!
And even if, I hope you would find these words as nice as I do:
كن كالنخيل عن الأحقاد مرتفعا... تُلْقَى بحجر فتُلْقِي بأطيب الثمر
|
|
|
|
|
string.Split is a good tool for what you need; some counting jobs can be based on string.Replace too!
|
|
|
|
|
thank's for ur help my dear friend
Kareem Elhosseny
|
|
|
|
|
Hi,
I have multiline textbox which will has input as HTML code,How to fetch a particular data from that?
|
|
|
|
|
string sText = TextBox1.Text;
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
|
Hi,
I'm stuck on a little situation. I am aware that controls can be added to group boxes - but how can I add graphics to groupboxes?
The situation is:
I have created a groupbox. Inside this groupbox, I want to graph a function. I am able to draw the graph and everything, but if I display the graph, it shows behind the group box! This function is graphed during runtime, but how can I add it inside the group box?
A screenshot might help explain what I mean:
http://img260.imageshack.us/img260/6081/ssoa8.jpg
Any help would be appreciated.
Thanks.
|
|
|
|
|
Did you put your drawing codes in GroupBox's Paint event?
I died as a mineral and became a plant,
I died as plant and rose to animal,
I died as animal and I was Man.
Why should I fear? When was I less by dying?
-- Rumi[^]
|
|
|
|
|
Thank you!
I did not know it can work this way (I am a beginner), but it worked well. I did this to test it out:
private void menuEGram_Click(object sender, EventArgs e)
{
Rectangle grid = new Rectangle(5, 100, 100, 100);
PaintEventArgs hi = new PaintEventArgs(groupBox_egram.CreateGraphics(), grid);
groupBox_egram_Paint(menuEGram, hi);
}
private void groupBox_egram_Paint(object sender, PaintEventArgs e)
{
e.Graphics.DrawRectangle(new Pen(Color.Black),new Rectangle(5, 100, 100, 100));
}
This might seem like another really basic question.. but is there a way that I can use the Rectangle that I created inside PaintEventArgs e instead of creating a new one?
Thank you.
modified on Saturday, November 22, 2008 10:35 AM
|
|
|
|
|
See_Sharp wrote: drawing the rectangle twice: 1x inside the group box, 1x outside of the group box
No, It draws a rectangle inside your GB.
See_Sharp wrote: is there a way that I can use the Rectangle or Graphics that I created inside PaintEventArgs e instead of creating a new one?
I don't think so and I don't think so it's necessary to do that. You can do whatever you want by cleaning current Rectangle and redrawing a new one.
Hope can help you.
I died as a mineral and became a plant,
I died as plant and rose to animal,
I died as animal and I was Man.
Why should I fear? When was I less by dying?
-- Rumi[^]
|
|
|
|