Forum: C# Aug 12th, 2009 |
| Replies: 4 Views: 246 What exception it is throwing?
How do you know its not working? |
Forum: C# Aug 11th, 2009 |
| Replies: 10 Views: 734 Based on what information you want to add child nodes?
Can you explain more about why you want to do this, this will help us to provide better solution. |
Forum: C# Aug 10th, 2009 |
| Replies: 7 Views: 850 Simple way will be to fill the data in to DataTable and simply set DataSource property as table:
DataTable table = new DataTable();
//fill the table with data
dataGridView1.DataSource = table;
... |
Forum: C# Aug 10th, 2009 |
| Replies: 7 Views: 850 Some suggestions:
==============
1. Use data grid for it.
2. First divide number.
3. Fill it in data grid. |
Forum: C# Aug 7th, 2009 |
| Replies: 18 Views: 566 @ adatapost thanks for mentioning my mistakes. :)
regarding StreamWriter from msdn: "StreamWriter defaults to using an instance of UTF8Encoding unless specified otherwise."
so i think it would... |
Forum: C# Aug 7th, 2009 |
| Replies: 18 Views: 566 if you have to create a file then you should not use:
StreamWriter oFile = new StreamWriter(@"C:\Users\fjones\Documents\Visual Studio Projects\bin\Debug\output.txt");
[code]
instead use this:... |
Forum: C# Aug 6th, 2009 |
| Replies: 5 Views: 344 The link i have is given is good to start what else you need? |
Forum: C# Aug 6th, 2009 |
| Replies: 5 Views: 344 wpf (http://en.wikipedia.org/wiki/Windows_Presentation_Foundation)
wcf (http://en.wikipedia.org/wiki/Windows_Communication_Foundation)
wwf (http://en.wikipedia.org/wiki/Windows_Workflow_Foundation) |
Forum: C# Aug 5th, 2009 |
| Replies: 2 Views: 242 Hi
Do this:
if (e.KeyChar == (char)Keys.Enter)
{
//do something
}
inside textBox1_KeyPress function |
Forum: C# Jul 31st, 2009 |
| Replies: 7 Views: 260 Dividing means dividing the big (complex number) struct in to several other classes. Or I should say regrouping all your methods in to several classes.
I am sure you wont use all of the methods at... |
Forum: C# Jul 31st, 2009 |
| Replies: 3 Views: 426 Hi,
Simply user XmlDocument and its method LoadXml().
You can find example code here (http://msdn.microsoft.com/en-us/library/system.xml.xmldocument.loadxml.aspx). |
Forum: C# Jul 31st, 2009 |
| Replies: 7 Views: 260 What about creating a small complex number struct and dividing methods around it in different classes? |
Forum: C# Jul 24th, 2009 |
| Replies: 7 Views: 538 if you dont want to display more than 1 Form2
keep following code out side the foreach statement:
Form2 form2 = new Form2();
form2.Show(); |
Forum: C# Jul 23rd, 2009 |
| Replies: 2 Views: 447 do in this way:
...............
Object x;
x = s.Pop();
ArrayList al=x as ArrayList ;
if(al!=null)
{
al.Add("Something");
} |
Forum: C# Jul 23rd, 2009 |
| Replies: 5 Views: 437 Hi,
Read example here (http://msdn.microsoft.com/en-us/library/system.data.oledb.oledbdatareader(VS.71).aspx). It will help you. You have to call dataReader4.Read() before reading it. If still... |
Forum: C# Jul 23rd, 2009 |
| Replies: 2 Views: 453 there is a problem in following line:
string FileList = Directory.GetFiles(DirPath).ToString();
it should be :
String[] FileList=.............. |
Forum: C# Feb 19th, 2009 |
| Replies: 2 Views: 196 install framework 2.0, it will have backward compatibility, but vice verse is not going to work. |
Forum: C# Feb 11th, 2009 |
| Replies: 3 Views: 247 return true or false from WPChk() based on success or failure,
on the base of return value of WPChk() you decide whether you want to proceed further or not. ex:
if(WPChk())
{
//do this
}... |
Forum: C# Feb 11th, 2009 |
| Replies: 14 Views: 2,809 check this (http://harriyott.com/2006/05/using-begininvoke-to-update-gui-safely.aspx). |
Forum: C# Feb 10th, 2009 |
| Replies: 14 Views: 2,809 Create a method as RamyMahrous said then invoke it using any UI thread. You can do it by control.BeginInvoke(). |
Forum: C# Aug 29th, 2008 |
| Replies: 2 Views: 562 Hi,
FastCar fc = new FastCar();
Car c1 = fc;
will be ok.
but what you have done is opposite.
you can assign pointer of object of child class to pointer variable of... |