Search Results

Showing results 1 to 27 of 27
Search took 0.02 seconds.
Search: Posts Made By: nmaillet ; Forum: C# and child forums
Forum: C# Aug 5th, 2009
Replies: 4
Views: 431
Posted By nmaillet
When creating Form 1, use this method:
Application.Run(new Form1());
This should set Form 1 as the main window of the program, and should terminate the program when it is closed.
Note: This calls...
Forum: C# Aug 4th, 2009
Replies: 16
Views: 90,274
Posted By nmaillet
Take a look at this:
using System;
using System.Collections.Generic;

public class Global
{
private static readonly List<Global> CLASSES = new List<Global>();
public static int Count
...
Forum: C# Aug 4th, 2009
Replies: 16
Views: 90,274
Posted By nmaillet
efficacious,

You could just add a static List to a class. For example:

public class Global
{
//instance variables

static List<Global> CLASSES = new List<Global>();
public static...
Forum: C# Aug 3rd, 2009
Replies: 6
Views: 433
Posted By nmaillet
The Suspend method has been deprecated because it is unsafe, since you are never certain where you stopped the threads execution. Instead you could declared a boolean variable, and then check it at...
Forum: C# Jul 27th, 2009
Replies: 3
Views: 305
Posted By nmaillet
One thing I might recommend, is adding some header information to the file. It may not be necessary for your needs, but you may want to simply add some version information, just in case you modify...
Forum: C# Jul 26th, 2009
Replies: 7
Views: 308
Posted By nmaillet
i = i + 1 would be equivalent to ++i. Since the expression (i = i + 1) evaluates as i + 1.
Forum: C# Jul 26th, 2009
Replies: 7
Views: 308
Posted By nmaillet
I always though it was executed after the entire expression, however if you run this code:
class Program
{
static void Main(string[] args)
{
int i = 0;
int d = (i++) +...
Forum: C# Jul 24th, 2009
Replies: 14
Views: 678
Posted By nmaillet
Well, the file shown in the image says it uses UTF-8 encoding; try using the UTF8Encoding class instead of the ASCIIEncoding class.
Forum: C# Jul 17th, 2009
Replies: 6
Views: 857
Posted By nmaillet
The new ThreadStart(Method1) simply encapsulates a method that will be called when the thread is started. The new Thread(new ThreadStart(Method1)) creates a new Thread object that can be used to...
Forum: C# Jun 26th, 2009
Replies: 4
Views: 494
Posted By nmaillet
The FileStream.Read method uses the offset to define a position in byte array, not in the file, file position is 0, and increases each time a byte is read from the file. Or you can use...
Forum: C# Jun 11th, 2009
Replies: 2
Views: 287
Posted By nmaillet
An instance method is called by referencing an instance to a class. Therefore it can reference any member in the instance of a class. A static method is called by referencing the class, it can only...
Forum: C# Jun 10th, 2009
Replies: 1
Views: 395
Posted By nmaillet
Well, you could simply use the Split method (e.g. str.Split('%');). Every even, or 0, numbered index in the string array would be the regular part of the string, and every odd numbered index would...
Forum: C# May 8th, 2009
Replies: 5
Views: 512
Posted By nmaillet
That depends on what namespace it is in and what you are doing, but you would call it the same way as if it was in the same project.
Forum: C# May 8th, 2009
Replies: 5
Views: 512
Posted By nmaillet
You need to add a reference to the class library. Right click on References, click Add References..., click on the project tab, and add the library. This is assuming the class library is in the...
Forum: C# May 8th, 2009
Replies: 9
Views: 1,643
Posted By nmaillet
Try this (http://lmgtfy.com/?q=graphs+in+c%23).
Forum: C# Apr 29th, 2009
Replies: 3
Views: 446
Posted By nmaillet
You usually won't get a response unless you put in some effort.
Forum: C# Apr 29th, 2009
Replies: 3
Views: 446
Posted By nmaillet
Here is a pretty good tutorial on SQL http://w3schools.com/sql/default.asp
Forum: C# Apr 26th, 2009
Replies: 6
Views: 817
Posted By nmaillet
I found it in the class library reference at the MSDN. http://msdn.microsoft.com/en-us/library/ms229335.aspx
Forum: C# Apr 26th, 2009
Replies: 6
Views: 817
Posted By nmaillet
Try str.Split(new char[] {' '}, StringSplitOptions.RemoveEmptyEntries);.
Forum: C# Apr 22nd, 2009
Replies: 2
Views: 1,235
Posted By nmaillet
I believe you can use "%programfiles%" and it should result in the path [Default drive letter]:\Program Files\.

Edit: If not you can use "%SystemDrive%\\Program Files\\".
Forum: C# Apr 20th, 2009
Replies: 6
Views: 2,005
Posted By nmaillet
Some of the code you are using might be helpful, but using the Close event is probably what you are looking for.
Forum: C# Apr 19th, 2009
Replies: 7
Views: 1,421
Posted By nmaillet
If you want 1000.26 to round to 1000.30, you would have to use Math.ceil.
Forum: C# Apr 19th, 2009
Replies: 1
Views: 360
Posted By nmaillet
You could use a Thread and a loop that simply checks to see if the drive is accessible with each iteration...
Forum: C# Apr 19th, 2009
Replies: 1
Views: 420
Posted By nmaillet
You can use the CheckedChanged event of the radio button, then set the Text property of the text box.
Forum: C# Apr 18th, 2009
Replies: 1
Views: 1,452
Posted By nmaillet
I don't know how you went about implementing the printing, but you can create a PrintDocument, then call the Print method. It does not show a Print Dialog, since you can manually set the options.
Forum: C# Apr 15th, 2009
Replies: 2
Views: 417
Posted By nmaillet
If you set TabStop to true, it should work for you. I believe that scrolls bars are generally not selectable.
Forum: C# Feb 25th, 2009
Replies: 5
Views: 596
Posted By nmaillet
By complete, do you mean not an empty string, or do they need to meet some criteria?
Showing results 1 to 27 of 27

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC