Forum: C# Jan 14th, 2007 |
| Replies: 3 Views: 20,794 Yeah, C# doesn't support falling through on switch statements ;) |
Forum: C# Jun 16th, 2005 |
| Replies: 1 Views: 4,703 I've got a project going where I need to do some extensive searching, so I decided it would be best to put that code into a new thread. To make it a little more user friendly I decided to pop up a... |
Forum: C# Jun 14th, 2005 |
| Replies: 4 Views: 9,205 int[] x = y = z = new int[10];
// or I THINK this works too
int[] x, y, z = new int[10]; |
Forum: C# Jun 14th, 2005 |
| Replies: 2 Views: 6,013 Actually what you should do is add an event handler to either the Load event or the VisibleChanged event. It all depends on if you want the code to execute everytime the form is shown, or only the... |
Forum: C# Jun 14th, 2005 |
| Replies: 6 Views: 18,531 What exactly are you wanting to do? |
Forum: C# Jun 14th, 2005 |
| Replies: 7 Views: 9,473 I've never actually done that, but I'm guessing you're going to have to create some sort of BinaryStream then create a file out of that, then use the BitMap.LoadFromFile() method to load the... |
Forum: C# Jun 14th, 2005 |
| Replies: 2 Views: 21,405 You have to set the Visible property to false, or call the this.Hide() method. |
Forum: C# Jun 14th, 2005 |
| Replies: 1 Views: 8,415 I think you need to invoke a method on a client computer that calls the Directory.GetFolders() (can't remember if it's Directory or DirectoryInfo) method and pass an argument of type SpecialFolder... |
Forum: C# Jun 14th, 2005 |
| Replies: 3 Views: 16,810 You could use the Process or ProcessStartInfo classes to call the perl.exe process with the argument being the script.
Then you could use the properties of said classes to see if the script is still... |
Forum: C# Jun 14th, 2005 |
| Replies: 2 Views: 32,816 What do you mean? I would just open up something like Visual Studio .NET and start with what I normally call "MainForm" which is the main GUI, then create the main functionality on there and create a... |
Forum: C# Jun 14th, 2005 |
| Replies: 2 Views: 5,023 You need to post specifc problems, not just "Help Me". Plus, your deadline is already up, so this is just for future reference. |
Forum: C# Jun 14th, 2005 |
| Replies: 1 Views: 7,899 have you ever looked at http://sf.net/ there might some projects there you could join. |
Forum: C# Jun 14th, 2005 |
| Replies: 1 Views: 1,683 A programming language derived from C++ (which implies C as well) with focus on Object orientation and a runtime environment. |
Forum: C# May 16th, 2005 |
| Replies: 6 Views: 3,817 What?
You want to be able to select part of an image so the user can have further usage? Please rephrase ;) |
Forum: C# May 13th, 2005 |
| Replies: 2 Views: 21,320 try:
publicstatic Response Message(string doc)
{
XmlTextReader textReader = new XmlTextReader(doc);
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(textReader);
... |
Forum: C# May 13th, 2005 |
| Replies: 1 Views: 5,406 Have you tried msdn.microsoft.com or the .NET SDK Documentation? Both of those provide good explanations...I prefer msdn, but to each his own. |
Forum: C# May 10th, 2005 |
| Replies: 1 Views: 5,493 Are you wanting to store it as
<somesetting>12</somesetting>
or
<somesetting>1100</somesetting>
?
What I'm asking is, by binary data, are you wanting to write is as binary, or just write it,... |
Forum: C# May 10th, 2005 |
| Replies: 3 Views: 10,907 You're going to need to explain that one a little better :P |
Forum: C# Apr 29th, 2005 |
| Replies: 4 Views: 19,774 It's just string. It's built in. Using that exact, word for word, example you'll get their ip. |
Forum: C# Apr 28th, 2005 |
| Replies: 1 Views: 10,979 It's the exact same as if you were doing it on a desktop application. ASP.NET doesn't change anything. |
Forum: C# Apr 28th, 2005 |
| Replies: 4 Views: 19,774 Request.ServerVariables["REMOTE_ADDR"].ToString() |
Forum: C# Apr 28th, 2005 |
| Replies: 2 Views: 4,485 Search the SDK Documentation for XmlDocument class and for Application Configuration and XmlReader(or Writer) you'll find tons of examples and tutorials ;) |
Forum: C# Apr 13th, 2005 |
| Replies: 13 Views: 5,520 Then you're probably going to want VS.NET. It really makes many aspects of programming much less hasslesome, especially when wanting to build quality, professional software. But yes, it is very... |
Forum: C# Apr 12th, 2005 |
| Replies: 10 Views: 44,264 If you're application consists of of a main form (i.e. one created by using Application.Run(new Form()); ) then closing that form exits the application. Although, if you're doing it programaticly,... |
Forum: C# Apr 12th, 2005 |
| Replies: 13 Views: 5,520 I've used #Develop and VS.NET 2003. And there is a world of difference! #Develop is good if you're doing simple tasks, and not in a work environment. If you are at all concerned with scheduels and... |
Forum: C# Apr 12th, 2005 |
| Replies: 3 Views: 13,821 To print to an actual document you're going to have to use a PrintDocument object, and override the PRINT event. Keep in mind though, that printing to a printer is very tricky at times, it's just... |
Forum: C# Apr 12th, 2005 |
| Replies: 12 Views: 8,820 C# is also supported by more things. Such as language specific tasks, and ASP.NET. Where as C++.NET isn't.
Not to mention the easy at which you can develope with C#. |
Forum: C# Mar 17th, 2005 |
| Replies: 4 Views: 4,204 Just because it tells you there's an error doesn't mean your using try/catch block correctly. It will tell you there is an error even if you have any try/catch blocks. You need to try to handle the... |
Forum: C# Mar 10th, 2005 |
| Replies: 8 Views: 24,372 Don't quote me on this, but it might have something to do with making it a service, rather than an application. |
Forum: C# Mar 10th, 2005 |
| Replies: 12 Views: 41,205 I recently wrote a program that did exactly that. It imported a .csv file into a dataset then exported all the data to a SQL Server 2000 DB. I would give you the source, except there is a lot... |
Forum: C# Mar 10th, 2005 |
| Replies: 20 Views: 30,486 C# For the absolute beginner is quite good. Really, I haven't seen that many "bad" C# beginner books. You just need to search amazon and you'll find like a thousand. Most of the time from reading the... |
Forum: C# Jan 13th, 2005 |
| Replies: 3 Views: 14,804 I know this thread has been marked solved, but for anyone else wondering the same thing; you could also use the == operator. It's been overloaded in C#, so it works just fine ;) |
Forum: C# Oct 14th, 2004 |
| Replies: 2 Views: 9,592 Umm...what are you tryng to do? To use an array (for example and array of int's) you just do this
int[] dieSides = new int[6];
dieSides[0] = 1;
dieSides[1] = 2;
etc..
and please use the... |
Forum: C# Oct 14th, 2004 |
| Replies: 2 Views: 4,460 When using VS.NET clikc Debug->Start or press F5 |
Forum: C# Sep 6th, 2004 |
| Replies: 11 Views: 64,449 It looks to me like you were trying to make a statement and were proven wrong :D |
Forum: C# Aug 3rd, 2004 |
| Replies: 1 Views: 42,140 I would try not to use ToString() instead used:
dataTbl.Rows[grdResults.SelectedIndex]["Boolean"].Checked == true
More broken down it looks like:
DataRow dr =... |