User Profile
Collapse
-
So if you check Program.cs, you'll notice the entire application runs on this one form: Form1. Application.Run (Form1), means that your program is running in an infinite loop processing *stuff* on Form1. This *stuff* includes mouse clicks, key presses, drawing your controls...etc. When you close Form1, the program's loop ends - and your application ends.
This is what is happening.
1. Form1 is displayed. This form is the main form...Leave a comment:
-
Is it possible to debug an application even with build errors?
This may not be the most appropriate forum to post in, but I couldn't find a better alternative, so I apologize in advance if this post is misplaced.
My question is, in Visual Studio 2008 and 2010, is it possible to hit F5 and debug an application even though there are build errors? Can't I make Visual Studio just ignore those build errors and let it crash when the error comes somewhere in the debugging process? I'm just wondering... -
-
How to retrieve multiple enum values?
Let's say I have an enumeration like so:
[Flags]
public enum Letters
{
A = 0,
B = 1,
C = 2,
D = 4,
E = 8
}
And let's say I have a variable like so:
Letters phrase = Letters.A | Letters.B | Letters.C;
How would I check to see if "phrase" contains Letter.A, Letter.B, and Letter.C individually?
e.g.... -
secutos started a topic [C#][XNA 3.1] How can I host two different XNA windows inside one Windows Form?in C Sharp[C#][XNA 3.1] How can I host two different XNA windows inside one Windows Form?
I am making a Map Editor for a 2D tile-based game. I would like to host two XNA controls inside the Windows Form - the first to render the map; the second to render the tileset. I used the code here to make the XNA control host inside the Windows Form. This all works very well - as long as there is only one XNA control inside the Windows Form. But I need two - one for the map; the second for the tileset. How can I run two XNA controls inside the... -
-
C# Microsoft Windows XP-Vista .NET 3.5 How fast is a mysql database query?
I have the option of storing data online as text files, or storing data online in a MySQL database. If the information is stored as a text file, all I have to do is a HttpWebRequest to the text file to retrieve the information. I'm willing to store the information in a MySQL database if its faster. For you who want to know what I'm doing to provide a better solution, I'm simply communicating client and server through the web. I don't want to use... -
secutos started a topic WindowsXP-Vista, C# :: Difference between TcpListener.Server.Send and TcpClient.Sendin .NETWindowsXP-Vista, C# :: Difference between TcpListener.Server.Send and TcpClient.Send
When a TcpListener accepts a connection, it returns a TcpClient, which allows you to recieve data. But what about TcpListener.Ser ver.Receive? Does that also allow to receive data in the same way? Or does the TcpClient returned only recieve data from that current connection while TcpListener.Ser ver.Receive receives data from all connections? I do have mutliple connections in my TcpListener. -
Thank you VERY much. you must be busy, answering a lot of questions. keep up the good work.Leave a comment:
-
C#, Windows XP and Vista, .NET Framework 3.5 :: How fast is an HTTP GET?
Hello everybody.
Specifications
Operating System: Windows XP and Vista
Language: C#
.NET Version: 3.5
Problem
I am constantly transferring data using HTTP, I need to access a website in HTTP and retrieve data in HTTP. So for example:
PSUEDOCODE EXAMPLE - operation 1
----------------------------------------------------------------------------------------------
...Last edited by Curtis Rutland; Sep 11 '08, 03:01 AM. Reason: Added code tags -- Please use the # button -
So if I used a LinkedList<stri ng> it wouldnt use too much memory generating millions of strings?Leave a comment:
-
-
First, know that this will most likely (99%) not answer your question, but will instead give you a headstart. If you were transferring a big file, you would probably have to send bits at a time. First, you convert that "big file" into a byte array. You cut off a bit of the byte array to send. For that bit you just cut off, tag it so the other side knows that there is more to come (there is a lot more byte arrays to send). To tag it, add...Leave a comment:
-
C#-APP/FORM: Determining the most efficient Collections to store a wordlist
Programming Language: C#, .NET Framework 3.5
In this context, Form and App both describe a Microsoft Windows desktop application i'm creating.
I'm creating a wordlist generator. I need to be able to store each word in an efficient manner. I don't need to search the collection or modify it - I just need to be able to write every entry in the collection back into a text file. So, what is the best collection to use? I heard ArrayLists...
No activity results to display
Show More
Leave a comment: