Search Results

Showing results 1 to 40 of 511
Search took 0.04 seconds.
Search: Posts Made By: Ramy Mahrous
Forum: C# Sep 18th, 2009
Replies: 11
Views: 801
Posted By Ramy Mahrous
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
Posted By Ramy Mahrous
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
Posted By Ramy Mahrous
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
Posted By Ramy Mahrous
I learnt a lot from this threadm thanks thanks thanks
Forum: C# Sep 18th, 2009
Replies: 2
Views: 452
Posted By Ramy Mahrous
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
Posted By Ramy Mahrous
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
Posted By Ramy Mahrous
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
Posted By Ramy Mahrous
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
Posted By Ramy Mahrous
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
Posted By Ramy Mahrous
LOL! did you read my reply??!!
Forum: C# Sep 17th, 2009
Replies: 15
Views: 1,246
Posted By Ramy Mahrous
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
Posted By Ramy Mahrous
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
Posted By Ramy Mahrous
Try to group first then order second
Forum: C# Sep 16th, 2009
Replies: 28
Views: 1,857
Posted By Ramy Mahrous
There's events detect that
TextBox | TextChanged
ComboBox | SelectedIndexChanged
Forum: C# Sep 15th, 2009
Replies: 3
Views: 667
Posted By Ramy Mahrous
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
Posted By Ramy Mahrous
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
Posted By Ramy Mahrous
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
Posted By Ramy Mahrous
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
Posted By Ramy Mahrous
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
Posted By Ramy Mahrous
I got it!!! that's appear on your computer or not?
Forum: C# Sep 7th, 2009
Replies: 41
Views: 1,604
Posted By Ramy Mahrous
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
Posted By Ramy Mahrous
Please attach picture to what happened to understand you well.
Forum: C# Jul 20th, 2009
Replies: 13
Views: 528
Posted By Ramy Mahrous
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
Posted By Ramy Mahrous
Forum: C# Jul 20th, 2009
Replies: 13
Views: 528
Posted By Ramy Mahrous
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
Posted By Ramy Mahrous
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
Solved: help in sorting
Views: 569
Posted By Ramy Mahrous
Evening, Danny :)
I didn't see your reply.
Forum: C# Jul 19th, 2009
Replies: 15
Solved: help in sorting
Views: 569
Posted By Ramy Mahrous
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
Posted By Ramy Mahrous
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
Posted By Ramy Mahrous
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
Posted By Ramy Mahrous
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
Posted By Ramy Mahrous
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
Posted By Ramy Mahrous
Can you please give me the link? to know what's this about.
Forum: C# Jul 18th, 2009
Replies: 3
Views: 202
Posted By Ramy Mahrous
Forum: C# Jul 18th, 2009
Replies: 11
Views: 379
Posted By Ramy Mahrous
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
Posted By Ramy Mahrous
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
Posted By Ramy Mahrous
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
Posted By Ramy Mahrous
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
Posted By Ramy Mahrous
You're welcome my friend, Danny
I Hope it solves their problem.
Forum: C# Jul 18th, 2009
Replies: 18
Views: 828
Posted By Ramy Mahrous
foreach(Control c in Panel1.Controls)
{
if(c is TextBox)
MessageBox.Show(string.Format("TextBox Name: {0} , TextBox Text {1}",c.Name, c.Text));
}
Showing results 1 to 40 of 511

 


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

©2003 - 2009 DaniWeb® LLC