Forum: C# Sep 18th, 2009 |
| Replies: 13 Views: 653 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 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 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 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 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 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 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 You're welcome my friend, Danny
I Hope it solves their problem. |
Forum: C# Jul 18th, 2009 |
| Replies: 18 Views: 872 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 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 @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 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 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 @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 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 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 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 To allow multiple selection from report parameters check Multi-value |
Forum: C# Jul 7th, 2009 |
| Replies: 3 Views: 201 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 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 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 WHAT :) I think they should overcome this!!! |
Forum: C# Jun 29th, 2009 |
| Replies: 19 Views: 1,161 hehehehehee extraordinaryyyyyyyyyyyyyyyyyyyyyyyyyyyy |
Forum: C# Jun 28th, 2009 |
| Replies: 8 Views: 378 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 Yes I say it inherits from DBCommand and overrides Dispose method |
Forum: C# Jun 24th, 2009 |
| Replies: 13 Views: 787 SqlCommand inherits from DBCommand |
Forum: C# Jun 24th, 2009 |
| Replies: 11 Views: 747 It's my pleasure really adatapost when you correct for me, thanks a lot :) |
Forum: C# Jun 24th, 2009 |
| Replies: 7 Views: 321 Very good adatapost, I forgot to open connection! |
Forum: C# Jun 22nd, 2009 |
| Replies: 6 Views: 697 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 No friend it's poosible.
From ComboBox properties let
AutoCompleteMode = SuggestAppend
AutoCompleteSource = ListItems |
Forum: C# May 10th, 2009 |
| Replies: 9 Views: 733 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 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 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 I attached the images, I hope it clarifies... |
Forum: C# Feb 3rd, 2009 |
| Replies: 1 Views: 776 ASP.NET forum is better for web applications http://www.daniweb.com/forums/forum18.html |
Forum: C# Jan 30th, 2009 |
| Replies: 4 Views: 539 So, debug your code :) you'll see if Antenka got the solution or not. |
Forum: C# Jan 7th, 2009 |
| Replies: 3 Views: 12,619 int value type.. TextBox reference type you should new it... |
Forum: C# Jan 3rd, 2009 |
| Replies: 36 Views: 2,669 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 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 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; |