Forum: C# Sep 18th, 2009 |
| Replies: 11 Views: 801 Then you neeed to download LINQ SDK for VS 2005 http://www.microsoft.com/downloads/details.aspx?familyid=1e902c21-340c-4d13-9f04-70eb5e3dceea&displaylang=en |
Forum: C# Sep 18th, 2009 |
| Replies: 7 Views: 380 Something I begun to note is most of askers ignore my reply... and even don't comment, what does it mean????!!!
@papanyquiL didn't you see my reply?? or I should clarify?? or you aren't satisfied... |
Forum: C# Sep 18th, 2009 |
| Replies: 7 Views: 380 This piece of code enumerate on the local drives then gets it root path then search for every exe on you can use SystemFileInfo to handle nested directories...
foreach (System.IO.DriveInfo... |
Forum: C# Sep 18th, 2009 |
| Replies: 11 Views: 801 I learnt a lot from this threadm thanks thanks thanks |
Forum: C# Sep 18th, 2009 |
| Replies: 2 Views: 452 File | You may use Move method in System.IO like that
System.IO.File.Move(@"C:\old.txt", @"C:\new.txt"); //it renames the file old to new.txt
Folder | the same
... |
Forum: C# Sep 18th, 2009 |
| Replies: 12 Views: 599 So please send your class code you want to group and order it; the class has this struct to play with this problem. |
Forum: C# Sep 18th, 2009 |
| Replies: 13 Views: 638 Why ArrayList?! Are you fond of casting??
Use generics List<Photo> photos = new List<Photo>(); and in Photo class you may have list of photos and indexer to get them by index or name anything is... |
Forum: C# Sep 17th, 2009 |
| Replies: 28 Views: 1,857 On the ComboBox double click, VS created a handler for index changed event copy and paste your code, and solve any error if exists.. |
Forum: C# Sep 17th, 2009 |
| Replies: 12 Views: 599 var col = from le in mylist
group le by le.X into g
orderby g.Key descending
select g;
On two phases
var colGrouped = from le in mylist
group le by le.X select le; |
Forum: C# Sep 17th, 2009 |
| Replies: 28 Views: 1,857 LOL! did you read my reply??!! |
Forum: C# Sep 17th, 2009 |
| Replies: 15 Views: 1,246 I see it's very simple in design and this is good, if it does its functionality well so you don't over care about its design.
Nice work, Diamonddrake |
Forum: C# Sep 17th, 2009 |
| Replies: 13 Views: 638 You just need to close the code tag by [/code] not [code].
You should have another property holding image file path
public string ImageFilePath
{
get...
set....
}
public Image Imge |
Forum: C# Sep 17th, 2009 |
| Replies: 12 Views: 599 Try to group first then order second |
Forum: C# Sep 16th, 2009 |
| Replies: 28 Views: 1,857 There's events detect that
TextBox | TextChanged
ComboBox | SelectedIndexChanged |
Forum: C# Sep 15th, 2009 |
| Replies: 3 Views: 667 currentTextBox.Text = DateTime.Today.ToShortDateString();
threeDaysTextBox.Text = DateTime.Today.Add(new TimeSpan(3, 0, 0, 0)).ToShortDateString(); |
Forum: C# Sep 15th, 2009 |
| Replies: 6 Views: 374 hmmm, look
If you have button open in Form1 to open Form2, then you should declare Form2 as global variable in Form1 to be able to play with it.
//Form 1 class
class Form1 : Form
{
Form2... |
Forum: C# Sep 15th, 2009 |
| Replies: 6 Views: 374 If you want to close all the forms, you can write this line in the event handler of the BTNNO click event handler
Application.Exit();
But if you need to close some forms, you should declare... |
Forum: C# Sep 14th, 2009 |
| Replies: 9 Views: 257 First please copy free-syntax error code
public class vehicle
{
public vehicle()
{
MessageBox.Show("I'm Vehicle");
//do some... |
Forum: C# Sep 14th, 2009 |
| Replies: 8 Views: 486 In terms of long lists and performance, Danny's solution is the best and to make it better use 'for' loop instead of 'foreach'
My test on 10000 items
Danny (for not foreach) | 39060 ticks
Danny |... |
Forum: C# Sep 7th, 2009 |
| Replies: 41 Views: 1,604 I got it!!! that's appear on your computer or not? |
Forum: C# Sep 7th, 2009 |
| Replies: 41 Views: 1,604 Attach your developed application and provide us with test case, I don't think this problem needs all those replies except you all missing something and it's not so clear. |
Forum: C# Jul 21st, 2009 |
| Replies: 8 Views: 738 Please attach picture to what happened to understand you well. |
Forum: C# Jul 20th, 2009 |
| Replies: 13 Views: 528 I don't have solution else open the downgraded project on VS 2005 then add new project (Setup wizard project) there on it.
But did you answer my questions |
Forum: C# Jul 20th, 2009 |
| Replies: 13 Views: 528 |
Forum: C# Jul 20th, 2009 |
| Replies: 13 Views: 528 Excuse me, how could you know it's compiling on 3.5 ? did you try to run this application on machine JUST HAS 2.0??
Installation project is 2.0 or 3.5? |
Forum: C# Jul 20th, 2009 |
| Replies: 13 Views: 528 If you do that, you're applications supposed to run on .NET framework 2, did you do that? with all application references?? |
Forum: C# Jul 19th, 2009 |
| Replies: 15 Views: 569 Evening, Danny :)
I didn't see your reply. |
Forum: C# Jul 19th, 2009 |
| Replies: 15 Views: 569 First please use Code tags.
Second, make class to handle this
class MyWord //may implement some interfaces
{
string word;
public string Word { get; set;}
int rank;
public int Rank { get;... |
Forum: C# Jul 19th, 2009 |
| Replies: 18 Views: 828 Because you didn't take my code and just replace field1 with c, isn't it??
Surround second if with { }
Take my code copy and paste please.
private void FieldStore()
{
foreach (Control c in... |
Forum: C# Jul 19th, 2009 |
| Replies: 18 Views: 828 What's this line field1.Text = Area.Room1;??
Modify it to
private void FieldStore()
{
foreach (Control c in panel1.Controls)
{
if... |
Forum: C# Jul 19th, 2009 |
| Replies: 18 Views: 828 Please attach the project or show us the whole code which creating\searching the TextBox. and don't forget to surround it inside code tag. |
Forum: C# Jul 18th, 2009 |
| Replies: 11 Views: 379 String html = richTextBox1.Text;
List<string> matches = new List<string>();
Regex r = new Regex("href\\s*=\\s*(?:\"(?<1>[^\"]*)\"|(?<1>\\S+))", RegexOptions.IgnoreCase |... |
Forum: C# Jul 18th, 2009 |
| Replies: 11 Views: 379 Can you please give me the link? to know what's this about. |
Forum: C# Jul 18th, 2009 |
| Replies: 3 Views: 202 |
Forum: C# Jul 18th, 2009 |
| Replies: 11 Views: 379 Sure it won't work as index not defined but what I need to say is you everytime add the same Group instance which in the index 1 of the array of Group. |
Forum: C# Jul 18th, 2009 |
| Replies: 11 Views: 379 String html = getSource();
List<Group> newGroups = new List<Group>();
r = new Regex("class=lnk href\\s*=\\s*(?:\"(?<1>[^\"]*)\"|(?<1>\\S+))", RegexOptions.IgnoreCase | RegexOptions.Compiled);
for... |
Forum: C# Jul 18th, 2009 |
| Replies: 18 Views: 828 My mistake, modify it to
== instead of =
foreach(Control c in Panel1.Controls)
{
if(c is TextBox)
if(c.Name == "field1") //or any property c.Text == "" or c........ |
Forum: C# Jul 18th, 2009 |
| Replies: 18 Views: 828 If you know anything about it. Its Text or its Name you can add a condition
foreach(Control c in Panel1.Controls)
{
if(c is TextBox)
if(c.Name = "field1") //or any property c.Text = "" or... |
Forum: C# Jul 18th, 2009 |
| Replies: 18 Views: 828 You're welcome my friend, Danny
I Hope it solves their problem. |
Forum: C# Jul 18th, 2009 |
| Replies: 18 Views: 828 foreach(Control c in Panel1.Controls)
{
if(c is TextBox)
MessageBox.Show(string.Format("TextBox Name: {0} , TextBox Text {1}",c.Name, c.Text));
} |