Search Results

Showing results 1 to 40 of 69
Search took 0.05 seconds.
Search: Posts Made By: Ramy Mahrous
Forum: C# Sep 18th, 2009
Replies: 13
Views: 656
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: 649
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: 518
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: 385
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: 349
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: 581
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: 399
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: 875
Posted By Ramy Mahrous
You're welcome my friend, Danny
I Hope it solves their problem.
Forum: C# Jul 18th, 2009
Replies: 18
Views: 875
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: 372
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: 967
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: 967
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: 537
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: 902
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: 701
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,386
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,550
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: Geeks' Lounge Jul 9th, 2009
Replies: 43
Views: 2,842
Posted By Ramy Mahrous
I also nominate Danny (ddanbe) and adatapost, please take this issue into your consideration.
Forum: C# Jul 9th, 2009
Replies: 4
Views: 295
Posted By Ramy Mahrous
To allow multiple selection from report parameters check Multi-value
Forum: C# Jul 7th, 2009
Replies: 3
Views: 202
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: 353
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: ASP.NET Jul 5th, 2009
Replies: 7
Views: 503
Posted By Ramy Mahrous
It depends?
If it depends on users and secure data -> Session
If it depends on users and not secure data -> Cookies
If it doesn't depend on users -> Cache or Application variables
It just hints...
Forum: C# Jul 3rd, 2009
Replies: 6
Views: 398
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,130
Posted By Ramy Mahrous
WHAT :) I think they should overcome this!!!
Forum: C# Jun 29th, 2009
Replies: 19
Views: 1,180
Posted By Ramy Mahrous
hehehehehee extraordinaryyyyyyyyyyyyyyyyyyyyyyyyyyyy
Forum: C# Jun 28th, 2009
Replies: 8
Views: 379
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: 789
Posted By Ramy Mahrous
Yes I say it inherits from DBCommand and overrides Dispose method
Forum: C# Jun 24th, 2009
Replies: 13
Views: 789
Posted By Ramy Mahrous
SqlCommand inherits from DBCommand
Forum: C# Jun 24th, 2009
Replies: 11
Views: 748
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: 323
Posted By Ramy Mahrous
Very good adatapost, I forgot to open connection!
Forum: C# Jun 22nd, 2009
Replies: 6
Views: 712
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: 656
Posted By Ramy Mahrous
No friend it's poosible.
From ComboBox properties let
AutoCompleteMode = SuggestAppend
AutoCompleteSource = ListItems
Forum: MS SQL May 12th, 2009
Replies: 2
Views: 1,111
Posted By Ramy Mahrous
Your thread subject is totally different than the thread itself.
Sknake, they can't use SQL Profiler as
Log file is your eye, you can see through each transaction happened.
Forum: C# May 10th, 2009
Replies: 9
Views: 738
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,330
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: DaniWeb Community Feedback Apr 27th, 2009
Replies: 2
Views: 619
Posted By Ramy Mahrous
Daniweb just shows everything 32 days ago... please check this!
Forum: C# Apr 25th, 2009
Replies: 3
Views: 1,344
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: VB.NET Mar 16th, 2009
Replies: 5
Views: 2,822
Posted By Ramy Mahrous
Forum: VB.NET Feb 21st, 2009
Replies: 11
Views: 809
Posted By Ramy Mahrous
See that it may help http://geekswithblogs.net/mtreadwell/archive/2004/06/06/6123.aspx
Forum: C# Feb 8th, 2009
Replies: 3
Views: 357
Posted By Ramy Mahrous
I attached the images, I hope it clarifies...
Showing results 1 to 40 of 69

 


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

©2003 - 2009 DaniWeb® LLC