Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
89% Quality Score
Upvotes Received
8
Posts with Upvotes
7
Upvoting Members
5
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
0 Endorsements
Ranked #2K
~10K People Reached
Favorite Forums
Favorite Tags

20 Posted Topics

Member Avatar for chathuD

You can also use: [CODE]string[] files = Directory.GetFiles(@"C:\Images\", "*.jpg", SearchOption.AllDirectories);[/CODE] to avoid having to manually check whether the files you've added are images ones, and also with the SearchOption enum you can tell it whether you want only the images in the top directory or the top directory and all …

Member Avatar for lucysome
-1
816
Member Avatar for vckicks
Member Avatar for Acute
Member Avatar for Acute
0
3K
Member Avatar for Raj2786

One way is usign delegates, another one which is easier for smaller applciations is using the BackgroundWorker class, here is an example: [CODE]void StartWork() { BackgroundWorker worker = new BackgroundWorker(); worker.WorkerReportsProgress = true; worker.ProgressChanged += new ProgressChangedEventHandler(worker_ProgressChanged); worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(worker_RunWorkerCompleted); worker.DoWork += new DoWorkEventHandler(worker_DoWork); worker.RunWorkerAsync(OptionalObject);// can pass any object …

Member Avatar for Diamonddrake
0
122
Member Avatar for PDLajus

file://localhost/c:/Program%20Files/ Thats what my browser opened if I pointed it to a local path, did you try "file://[B]localhost[/B]/c:/Program%20Files/" ?

Member Avatar for PDLajus
0
114
Member Avatar for pkinoc

Or you could just use the FormClosing event and pop a MessageBox asking the user if he wants to save his work.

Member Avatar for herbie643
0
531
Member Avatar for ooandioo

[CODE]if (e.KeyData == Keys.LControlKey) { isCtrlDown = true; e.Handled = true; }[/CODE] Use e.Handled to tell whether the key should go through to the active window. Also I've made such an app myself and one problem I had was that the SendKeys method did not work for fullscreen games(such as …

Member Avatar for Ravenheart
0
1K
Member Avatar for janhoy

Can you please send me code to access Area51 servers and download everything, thanks.

Member Avatar for Geekitygeek
0
102
Member Avatar for charqus

I do like this: [CODE]ProcessStartInfo info = new ProcessStartInfo("http://mywebsite.com"); info.UseShellExecute = true; Process.Start(info);[/CODE]

Member Avatar for ashishkumar008
0
130
Member Avatar for ben_

[CODE]MyString.Trim(Path.GetInvalidFileNameChars()).Trim(Path.GetInvalidPathChars());[/CODE] Try that.

Member Avatar for Ravenheart
0
135
Member Avatar for educated_fool

I'd personally just search for a better audio lib, or you could put the audio player in another thread and just call it from there.

Member Avatar for educated_fool
0
192
Member Avatar for Malaoshi

We don't do homework you know. If you want some help then show us that you have put some work into your project. System.IO.Directory you can use that static class to manipulate directories. System.Net.WebClient class to download your files. Use google to find a helpful lib to print the files.

Member Avatar for Malaoshi
1
201
Member Avatar for vksingh24

Well if you don't have the source code and can't ask the developer to upgrade it to use .NET 2.0: One solution would be to disassemble the application with Reflector to a VS project, open it up in VS fix the problems of the decompilation (there will be some) and …

Member Avatar for Ravenheart
0
115
Member Avatar for Medic873

I recommend the [URL="http://code.google.com/p/aforge/"]AForge.NET library[/URL]. Here is an example how it works: [CODE=C#]bool MatchImages(Bitmap WhatToSearchFor, Bitmap TheImageInWhichToSearchFor) { bool result = false; TemplateMatch[] match = Match(WhatToSearchFor, TheImageInWhichToSearchFor); if (match.Length == 0)// no matching images could be found { return result; } if (match[0].Similarity > 0.90)// if a match is found …

Member Avatar for Ravenheart
0
297
Member Avatar for Drahmina

DateTime datetime = DateTime.ParseExact("10/10/2009 12:00:00", "MM/dd/yyyy HH:mm:ss", System.Globalization.CultureInfo.InvariantCulture); Assuming the 10/10/2009 is day/month/year and really, the above solutions should work just fine.

Member Avatar for Ravenheart
0
262
Member Avatar for Alicito

Is the console capable of outputting all that text without the need to scroll up? Are you having to work with someone else's pasta code or is this some sort of frankenstein DB design you have?

Member Avatar for Alicito
0
172
Member Avatar for botaxsmaniz

uSql = "UPDATE Material SET MaterialName=@MaterialName,MatGroupID=@MatGroupID WHERE MaterialID=@MaterialID"; Add a MaterialID parameter and try using the above query.

Member Avatar for Ravenheart
0
93
Member Avatar for blazted

Or you could just use a NumericUpDown control as you SHOULD have done in the first place.

Member Avatar for Nick Evan
0
554
Member Avatar for RoyMicro

Do this: [code=C#]MyForm form = new MyForm(); form.ShowDialog();[/code] What you need is a modal form and the way to pop a modal form up is to use ShowDialog() instead of just Show(). Hope I helped :)

Member Avatar for RoyMicro
0
108
Member Avatar for gogodr

Yup as jonsca said, you haven't initialized the array. Either do: [CODE=C#]sprite2D[] AllianceCharacters = new sprite2D[2]; // hold 2 sprite2D objects[/CODE] Or use a List<T>: [CODE=C#]List<sprite2D> AllianceCharacters = new List<sprite2D>;[/CODE]

Member Avatar for Ravenheart
0
101

The End.