Search:
Type: Posts; User: matthewsanford@gmail.com
Search:
Search took 0.03 seconds.
-
July 23rd, 2010, 06:43 PM
who told you there are no pointers in C#. That is a fable they tell the noobs, in my opinion to their own determint. Understanding that most everything in C# is in reality a pointer helps greatly...
-
July 23rd, 2010, 05:53 PM
Then I suppose you are going to have to do it the hard way, by reading each character as a char and adding it into a StringBuilder. Then you can use the StringReader class.
-
July 23rd, 2010, 04:45 PM
using (BinaryReader breader = new BinaryReader(stream))
{
///find tags etc here
using (StringReader sreader = new StringReader(breader.ReadString()))...
-
July 23rd, 2010, 04:36 PM
If you get clever with partial classes and some compiler directives you can make it so that in debug mode you can run as a process not a service, it makes it much easier to debug, you just have to...
-
July 23rd, 2010, 04:17 PM
As a suggestion I have always thought that a calculator is a great project to use to learn a new language. Everything is well defined as far scope goes, and it requires the use of some simple data...
-
July 19th, 2010, 01:10 PM
I dont want to "make" a new one, I want to do as little as possible to make an old one compliant, there is quite a large differance.
At any rate the slides did answer the question, there is no way...
-
July 16th, 2010, 07:11 PM
unless your system is from the 1980's there is no way your computer is crashing creating 60,000 points. The problem is something else. As a simple test bring up the task manager and watch your...
-
July 16th, 2010, 07:08 PM
Arjay is correct, deep down on the inside the timer send a WM_TIMER message to your WndProc, and if your thread is blocked then it can not process the message in a timely manner.
-
July 16th, 2010, 06:59 PM
What BigEd says is right, but you can do it by setting the "Modifiers" property of the label to "public"
-
July 16th, 2010, 06:54 PM
Does anyone know how or if you can have an application switch into admistrator mode to run a particular section of code without having to launch it as a process that requests adminstrative...
-
Datatable.BringToFront()
OR
Datatable.SendToBack()
I can never remember which one I need...
-
Yeah C# sucks about that. I have tried a million different ways to do this including putting the projects all in one folder (Don't do that by the way). For some reason MS just does not want to...
-
I would just kill explorer.exe and then lock of Alt+Tab as HanesTheGreat suggests.
-
If you ask me those application settings that they give you are pretty darn worthless. Ypu are far better off to just make your own settings class and implement IXMLSerilizable, then you can have...
-
June 30th, 2010, 05:50 PM
Is that a compile error that you are getting? Did you make sure to get the "try" at the top?
-
June 30th, 2010, 05:40 PM
Wow learn something new everyday. Thanks for the update, Im going to file that one away in a safe spot, because that would suck to try and debug that. I would just assume it would always call the...
-
June 30th, 2010, 05:35 PM
try
{
System.Net.WebClient client= new System.Net.WebClient();
client.DownloadFile("http://localhost/test.txt", string.Concat("C:/test.txt"));
}
catch(Exception ex)
{
throw new...
-
June 30th, 2010, 05:30 PM
It bugs me just a little when I see people do that too. I guess it just comes down to which exception you want to hunt down null object or InvalidCast, either one provide about the same information I...
-
June 30th, 2010, 03:03 PM
In order to get the inner control to resize, you must change the size of parent panel, you know that right? The inner control will size with the parent panel.
Also get rid of all the AnchorStyle...
-
June 30th, 2010, 02:51 PM
I can argue why it would call foo(Bar) or foo(object) with equal enthusiasm, but what does not make any sense is why It calls foo(bar) when the calling foo(0) and then calls foo(object) with foo(1)
-
June 30th, 2010, 01:14 PM
try doing it this way
private void drawingPanel_Paint_1(object sender, PaintEventArgs e)
{
using (Bitmap bmp = new Bitmap(s.Width, s.Height))
{
-
June 30th, 2010, 01:06 PM
I am glad that I could be of help. You have no idea how much help I have gotten from "gurus" in the past. After going on 15 years of reading error messages I can nail one everyonce in a while, you...
-
June 30th, 2010, 12:57 PM
I have to admit when I first read this I thought you were smoking crack. Obviously the solution to your example is an Explicit cast, but I get your point. I have absolutly no idea why it behaves this...
-
June 30th, 2010, 12:22 PM
All you need is to calculate the standard deviation?
I feel like I am missing something but here you go
public static float LatchTimeStdev()
{
float sum = 0.0f...
-
June 29th, 2010, 03:55 PM
Why dont you have your "Init" Method called in the constructor. From the code I see init will never be called, and therefore intermediateResult will always be null, which is exactly what the...
|
Click Here to Expand Forum to Full Width
|