Search Results

Showing results 1 to 40 of 51
Search took 0.01 seconds.
Search: Posts Made By: Ramy Mahrous ; Forum: C# and child forums
Forum: C# Sep 18th, 2009
Replies: 13
Views: 653
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: 12
Views: 640
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 14th, 2009
Replies: 8
Views: 502
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 14th, 2009
Replies: 5
Views: 381
Posted By Ramy Mahrous
I've question when it loses its format? try to catch the message returned from xml webservice and see if it comes in the right format or not? I just want to put my hand on the phase content loses its...
Forum: C# Jul 20th, 2009
Replies: 15
Views: 348
Posted By Ramy Mahrous
Math.Add ??? Exists in Math class??! The answer shouldn't be to use it or not to use it.
Regardless this small operation in sometimes I shouldn't do that. Try we log error\exceptions
I can't permit...
Forum: C# Jul 20th, 2009
Replies: 13
Views: 552
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 18th, 2009
Replies: 11
Views: 390
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: 18
Views: 872
Posted By Ramy Mahrous
You're welcome my friend, Danny
I Hope it solves their problem.
Forum: C# Jul 18th, 2009
Replies: 18
Views: 872
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));
}
Forum: C# Jul 18th, 2009
Replies: 5
Views: 367
Posted By Ramy Mahrous
No, Serkan it also used as they said in desktop application SQL Server Compact 3.5 is a free, easy-to-use embedded database engine that lets developers build robust Windows Desktop and mobile...
Forum: C# Jul 17th, 2009
Replies: 12
Views: 959
Posted By Ramy Mahrous
@Lighthead
You're welcome.
Nothing called stupid, you're trying to help and you should be thanked.
Nice to have you around and trying to help others.
Forum: C# Jul 17th, 2009
Replies: 12
Views: 959
Posted By Ramy Mahrous
To get word by word then search on specific word

int GetWordIndex(string word)
{
char[] splitters = new char[]{' '};
string[] wordsArr = RichTextBox1.Text.Split(splitters,...
Forum: C# Jul 14th, 2009
Replies: 6
Views: 534
Posted By Ramy Mahrous
How you bind your ComboBox?
Because we may wrap it by custom class and get unique items
Forum: C# Jul 14th, 2009
Replies: 7
Views: 872
Posted By Ramy Mahrous
@Scott, they say SQL Server 2005 not 2000, Express not MSDE, because if they need to search on some code to attach they'll be confused.
Forum: C# Jul 11th, 2009
Replies: 11
Views: 698
Posted By Ramy Mahrous
How to validate user input?
http://www.daniweb.com/code/showsnippet.php?codeid=1257

Numeric patterns: http://regexlib.com/DisplayPatterns.aspx?cattabindex=2&categoryId=3
Forum: C# Jul 10th, 2009
Replies: 2
Views: 1,368
Posted By Ramy Mahrous
Here's I wrote some code to move controls on the form
1- Assign (Control_MouseMove, Control_MouseDown, and Control_MouseUp) to the controls you need it movable.
Forum: C# Jul 9th, 2009
Replies: 7
Views: 1,495
Posted By Ramy Mahrous
Excuse me I've another solution :) due to being fan of SMO I'll do it using it


public void (string databaseName, string filePath)
{
try
{
Server localServer = new...
Forum: C# Jul 9th, 2009
Replies: 4
Views: 293
Posted By Ramy Mahrous
To allow multiple selection from report parameters check Multi-value
Forum: C# Jul 7th, 2009
Replies: 3
Views: 201
Posted By Ramy Mahrous
And adatapost forgot to say check MSDN.com after welcoming you :p
C#
http://msdn.microsoft.com/en-us/vcsharp/default.aspx
SQL Server
http://msdn.microsoft.com/en-us/sqlserver/default.aspx
For...
Forum: C# Jul 5th, 2009
Replies: 3
Views: 350
Posted By Ramy Mahrous
http://msdn.microsoft.com/en-us/magazine/cc163730.aspx
http://msdn.microsoft.com/en-us/library/ms998549.aspx#scalenetchapt06_topic18

ASP.NET Forum for asp.net questions :)...
Forum: C# Jul 3rd, 2009
Replies: 6
Views: 393
Posted By Ramy Mahrous
hmmm, why should I do that, we take salaries based on number of tasks we do neither number of hours nor number of lines of code :D
Forum: C# Jun 30th, 2009
Replies: 22
Views: 1,126
Posted By Ramy Mahrous
WHAT :) I think they should overcome this!!!
Forum: C# Jun 29th, 2009
Replies: 19
Views: 1,161
Posted By Ramy Mahrous
hehehehehee extraordinaryyyyyyyyyyyyyyyyyyyyyyyyyyyy
Forum: C# Jun 28th, 2009
Replies: 8
Views: 378
Posted By Ramy Mahrous
WorkSheet.... because you use COM, which you didn't terminate it yourself and if you open the task manager you will see Test10.exe is running. Try adatapost help it solves your problem
Forum: C# Jun 24th, 2009
Replies: 13
Views: 787
Posted By Ramy Mahrous
Yes I say it inherits from DBCommand and overrides Dispose method
Forum: C# Jun 24th, 2009
Replies: 13
Views: 787
Posted By Ramy Mahrous
SqlCommand inherits from DBCommand
Forum: C# Jun 24th, 2009
Replies: 11
Views: 747
Posted By Ramy Mahrous
It's my pleasure really adatapost when you correct for me, thanks a lot :)
Forum: C# Jun 24th, 2009
Replies: 7
Solved: Query Problem
Views: 321
Posted By Ramy Mahrous
Very good adatapost, I forgot to open connection!
Forum: C# Jun 22nd, 2009
Replies: 6
Views: 697
Posted By Ramy Mahrous
ex.InnerException and plus you didn't show the error because you are working on Windows-based application
modify your catch block to

catch (Exception ex)
{
// Display any exceptions...
Forum: C# May 15th, 2009
Replies: 6
Views: 635
Posted By Ramy Mahrous
No friend it's poosible.
From ComboBox properties let
AutoCompleteMode = SuggestAppend
AutoCompleteSource = ListItems
Forum: C# May 10th, 2009
Replies: 9
Views: 733
Posted By Ramy Mahrous
I just need to answer one question and dig the other.
To handle keys pressed when your application on top or activated (any term you prefer) you need to set Form property (Key preview = true) then...
Forum: C# Apr 28th, 2009
Replies: 8
Views: 1,298
Posted By Ramy Mahrous
If you execute SQL Statement against SQLite, add distinct!! DataSet hasn't do to any much work over it carries data for you!
Forum: C# Apr 25th, 2009
Replies: 3
Views: 1,290
Posted By Ramy Mahrous
Yes, Danny, it's Vista problem (Aero, and Vista basic) color scheme, if you turn it into Windows Classic it'd work.

Or, remove Vista style

[STAThread]
static void Main()
{
...
Forum: C# Feb 8th, 2009
Replies: 3
Views: 356
Posted By Ramy Mahrous
I attached the images, I hope it clarifies...
Forum: C# Feb 3rd, 2009
Replies: 1
Views: 776
Posted By Ramy Mahrous
ASP.NET forum is better for web applications http://www.daniweb.com/forums/forum18.html
Forum: C# Jan 30th, 2009
Replies: 4
Solved: queue help
Views: 539
Posted By Ramy Mahrous
So, debug your code :) you'll see if Antenka got the solution or not.
Forum: C# Jan 7th, 2009
Replies: 3
Views: 12,619
Posted By Ramy Mahrous
int value type.. TextBox reference type you should new it...
Forum: C# Jan 3rd, 2009
Replies: 36
Views: 2,669
Posted By Ramy Mahrous
I think it's the time to close this thread! really I feel shame when I look to the question then find these huge number of replies!
Forum: C# Dec 31st, 2008
Replies: 36
Views: 2,669
Posted By Ramy Mahrous
Here's some codes...

List<Human> Humans = new List<Human>();

void Add(Int16 humanID, string humanName, Int16 humanAge, float humanSalary)
{
Humans.Add(new...
Forum: C# Dec 24th, 2008
Replies: 2
Views: 1,145
Posted By Ramy Mahrous
Set the property SelectedIndex to the item's index you want it to be the default...
Say we want to show the 6th item
In form load handler add this piece of code

comboBox1.SelectedIndex = 5;
Showing results 1 to 40 of 51

 


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

©2003 - 2009 DaniWeb® LLC