|
He is clearly not making a website.
|
|
|
|
|
How do you know? Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|
|
He said so in his previous posts, and he's still asking about the same subject just phrased slightly differently, IMO it's entirely reasonable to assume that he's still trying to do the same thing
|
|
|
|
|
Okay. Sorry for my wrong answer sanforjackass. Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|
|
no it is my problem for not making the first Q. more clear but as he said i want to make my program works over nonstatic IPs over the internet
|
|
|
|
|
No sweat. Is it that you do not know the clients IP in advance? Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|
|
If you know the IP addresses, as you have stated, then it is a matter of opening a TCP connection between them. Plenty of documentation for that.
I know the language. I've read a book. - _Madmatt
modified on Saturday, February 20, 2010 11:05 AM
|
|
|
|
|
Static or non-static is not important. All that is necessary is that you know the IP-address of the computer you wish to connect to, at the time of making the connection. If this information is not publicly available (via hosts or DNS) then you need some other way of finding it. txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Message Closed
modified 23-Nov-14 7:12am.
|
|
|
|
|
sanforjackass wrote: for every connection i know the IPs
If you have the IP addresses of the machines you don't need DNS. I know the language. I've read a book. - _Madmatt
|
|
|
|
|
thanks all
i found what i want in (skype bing)
but now i want to send files over it how?
(there is "sendcommand" command what is it if some one know?)
|
|
|
|
|
Hi. I have included the code
this.hide();
in the shown, and load event just to make sure that the form is not seen immediately after starting but resides on the task bar, till someone gets it from there but this does not work since the form is still shown on starting. What could be the problem?Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|
|
Okay. I solved it in a hack kind of way. I set the Windows Start property to minimized, then, i set it ShowAtTaskbar false.
In the tray i reversed all this and now im happy. Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|
|
set this.Hide() in form_Shown event. it will work.
|
|
|
|
|
I want when a button is clicked, my application shuts down then restarted by the Operating System. I am using Visual Studio 2008 on Vista (TM), and of course programming with C Sharp.
Is it possible to make a new Object like:
MainForm mf = new MainForm();
mf.Show();
Then immediately kill the application?Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
modified on Saturday, February 20, 2010 5:12 AM
|
|
|
|
|
Application.Restart() Best Regards,
Chetan Patel
|
|
|
|
|
Thank you. Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|
|
Sir
I am doing my project in C#.net&SQl server. I have dought about How to fetch the image data into data formet through OCR technology
|
|
|
|
|
|
Okay, i think you would need a plug in of some sort and consider the BLOB data type, atleast i know it exeist in MysQL. Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|
|
Hi all,
I was able to format strings relatively easily when writing Console applications when I use WriteLine methods and place holders to ouput strings. However when I want to out put strings via text boxes I am having a little problem. For Example suppose I want to output a number that has 3 numbers to the right of the decimal point how do I do it if my code is currently written like the following
txtPercent.Text = Convert.ToString(myMoney.getInterestRate)
Thanks in advance for your help.
|
|
|
|
|
Not sure if I totally understand your question as to what your wanting but I think what your wanting to do is convert the text to a decimal.
basically if you have Price 1.99 in your text box your wanting to convert that to a decimal do i Understand you correct ? If so, then do this
Decimal myConvertedString = (Decimal)textbox.text;
or are you trying to simply get the value from your getInterestRate method and put it in your text box ?
If so then do this
txtPercent.Text = (myMoney.getInterestRate).tostring();
or if your wanting to split the values so you get the numbers to the right of the decimal and the numbers to the left in separate indexes then use a split.
String[] splitstring = null;
string stringtosplit = txtPercent.text;
this way you will end up having an array with the number(s) to the left of the . stored as index 0
and the numbers to the right of the decimal stored as index 1;
hope this helps.
|
|
|
|
|
I believe the OP just wanted to format a number (double, float, whatever) as a string with a certain number of decimal places. Though that seemed like a specific example of a more general question (how to apply formats to objects when serializing them). See my answer the the OP's question for more info.
|
|
|
|
|
Look into string.Format(). This page shows specifically how to format with a given number of decimal places. Also, if you just need to work with one number (day, a double), you can just use ToString to do the formatting for you:
MessageBox.Show((0.1111233d).ToString("0.000"));
|
|
|
|
|
How would I do something like this
var distinctBooks = query
.GroupBy(x => x.BookID)
.Select(x => x.FirstOrDefault());
to this
List<FillGrid> query = (from b in db.Books
join ba in db.BookAuthors on b.ID equals ba.BookID
join a in db.Authors on ba.AuthorID equals a.ID
join bn in db.BookNumbers on b.ID equals bn.BookID
where a.AuthorFirst == splitstring[1].ToString() && a.AuthorLast == splitstring[0].ToString()
select new FillGrid
{
AuthorID = a.ID,
Author = string.Format("{0} {1}", a.AuthorFirst, a.AuthorLast),
Title = b.Title,
Price = (decimal)b.Price,
BookNumber = bn.SurrogateNumber,
BookID = b.ID,
Count = db.BookNumbers.Count(c => c.BookID == b.ID)
}).ToList();
I keep getting a conversion error...
I also tried taking and doing query.tolist().firstordefault(); still no go any help would be great thanks
|
|
|
|