Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #1K
~11.2K People Reached
Favorite Tags

32 Posted Topics

Member Avatar for Rajnesh

[QUOTE=Rajnesh]I thing Microsoft Vista is designed in C#, isn't it?[/QUOTE] LOL

Member Avatar for kvprajapati
0
928
Member Avatar for tayspen
Member Avatar for tgreer

Hi, for padding you can use this: [code] string a = "123"; string b = String.Format("{0,-20}", a); [/code] b is of length 20, containing "123" (padded to the left) and the rest is filled with spaces Hope, this helped.

Member Avatar for Geekitygeek
0
275
Member Avatar for Soundgarden

Yes, because you must use the window handle of the Application: [code] theprocess.MainWindowHandle [/code] use that one...

Member Avatar for Soundgarden
0
252
Member Avatar for choudhuryshouvi

Here: [code] RegistryKey subKeys = HKCU.OpenSubKey("Software\\VB and VBA Program Settings\\Company\\", true); [/code]

Member Avatar for choudhuryshouvi
0
220
Member Avatar for aminit

[QUOTE=JerryShaw;549396] The problem is the way you declare the out of class timer. The way it is defined, means it will run in its own thread. [/QUOTE] What?:D That timer is certainly NOT out of class. [QUOTE] Threads can not adjust non-thread safe components in other threads (like this main …

Member Avatar for JerryShaw
0
156
Member Avatar for Killer_Typo

Or just put that code into a try/catch block and output the error message or a custom message

Member Avatar for Jugortha
0
322
Member Avatar for johnroach1985

Here is corrected source: [code=C#] using System; using System.Collections; using System.ComponentModel; using System.Drawing; using System.Net; using System.Net.Sockets; using System.Reflection; using System.Security.Principal; using System.Text; using System.Threading; using System.Windows.Forms; namespace LanChat { public class LanChat : Form { public Button buttonAdvertise; public Button buttonSend; public Button buttonStop; public ComboBox comboBoxUserNames; public IContainer …

Member Avatar for johnroach1985
0
208
Member Avatar for csy

There are overloads for that method, have a look here : [url]http://msdn2.microsoft.com/en-us/library/wcxyzt4d.aspx[/url] should be the one you need

Member Avatar for _r0ckbaer
0
86
Member Avatar for fishsqzr

[QUOTE=fishsqzr;461940]From what I can tell, C# doesn't do that, at least by default. Is there a compiler directive or attribute which will allow that?[/QUOTE] So basically you think c# doesn't support short-circuit evaluation ? Have a look here: [url]http://msdn2.microsoft.com/en-us/library/2a723cdk(VS.71).aspx[/url] @iamthwee: Those kind of answers are not very helpful, altough they …

Member Avatar for iamthwee
0
484
Member Avatar for daidaiboyboy

Hi, i tried out your code and it seems to work even with the spaces, however one remark: i don't know if it was your intention to initialize the split variable inside the loop...so keep in mind that it will be overwritten all the time and just keeps the latest …

Member Avatar for tphuynh
0
2K
Member Avatar for pkj7461

Try this: [inlinecode] string[] lines = Regex.Split(s, "(.+?)(\\*{0,13}RECIVED MAIL)\\s*(PQR.+)(New PQR.+)(Respond.+)"); [/inlinecode]

Member Avatar for _r0ckbaer
0
109
Member Avatar for nullified

Hi, if every line starts with the date, this should do the trick: [code] List<string> lines = new List<string>(); using (StreamReader r = new StreamReader(new FileStream(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + @"\data.txt", FileMode.Open))) { string line; while ((line = r.ReadLine()) != null) { lines.Add(line); } } lines.Sort(); [/code]

Member Avatar for _r0ckbaer
0
331
Member Avatar for MillStrike

This is usually done with recursion: [code] void Fetch (string SourceString) { arrayCount = 0; DirectoryInfo di = new DirectoryInfo(SourceString); FileInfo[] rgFiles = di.GetFiles("*.mp3"); foreach (FileInfo fi in rgFiles) { fileIndex[arrayCount] = fi.FullName; MessageBox.Show(fileIndex[arrayCount]); // Temp for testing arrayCount++; } DirectoryInfo[] dirs = di.GetDirectories(); foreach (DirectoryInfo diNext in dirs) { …

Member Avatar for MillStrike
0
122
Member Avatar for covertx

What i don't understand in your code is that you first format the DateTime to a string and then you construct another DateTime object from that same string; is that step absolutely necessary? By reading that small snippet you posted I can't see any obvious reason why one should do …

Member Avatar for _r0ckbaer
0
145
Member Avatar for dev.cplusplus

Have a look at [URL="http://msdn2.microsoft.com/en-us/library/microsoft.win32.registrykey.openremotebasekey.aspx"]http://msdn2.microsoft.com/en-us/library/microsoft.win32.registrykey.openremotebasekey.aspx[/URL]

Member Avatar for dev.cplusplus
0
106
Member Avatar for shsh_shah

You can do something like this: [code] if (st.ToLower().Contains(data.ToLower())) [/code]

Member Avatar for shsh_shah
0
107
Member Avatar for covertx
Member Avatar for _r0ckbaer
0
97
Member Avatar for DDoSAttack

It's possible that your custom RandomNumberGen class is not seeded properly, where is the seed set?

Member Avatar for DDoSAttack
0
134
Member Avatar for Rocksoft

This is because you instantiate the stringbuilder object via [code] strbuild = new StringBuilder(); [/code] in the loop, you have to instantiate it outside when you first declare it [code] StreamReader reader = new StreamReader(@"d:\web_extract.txt",Encoding.Default); StringBuilder strbuild = new StringBuilder(); <--here [/code]

Member Avatar for _r0ckbaer
0
115
Member Avatar for jerryodom

[QUOTE=jerryodom;303488] [I]Error 1 The best overloaded method match for 'string.ToString(System.IFormatProvider)' has some invalid arguments[/I] [/quote] This is because you call ToString on type string instead of long. Make sure your code looks like this: [code] long num = 4445556666; string s = num.ToString("(###)-###-####"); [/code]

Member Avatar for jerryodom
0
324
Member Avatar for x2012

[QUOTE] [COLOR=#008080]Console[/COLOR][COLOR=#000000].Read();[/COLOR] [/QUOTE] It's waiting for the user to press the ENTER key here, so it stops

Member Avatar for _r0ckbaer
0
139
Member Avatar for ashneet

It would help us if you would paste use the complete source code, otherwise it's hard to recreate your problem (and eventually help you).

Member Avatar for Lord Soth
0
116
Member Avatar for beuls

have a look at that: [url]http://msdn2.microsoft.com/en-us/library/system.threading.waithandle.aspx[/url]

Member Avatar for _r0ckbaer
1
272
Member Avatar for acezrwild817

I don't see where you actually declared your delegate ? somewhere in the namespace put this: [code] public delegate void ProcessingCompleteDelegate(); [/code] also to fire an event you usually do it like this: [code] if (SearchComplete != null) SearchComplete() [/code] that code would go in your Start() method

Member Avatar for _r0ckbaer
0
111
Member Avatar for tgreer

What about having a look at Convert.ToBase64String and Convert.FromBase64String ?

Member Avatar for _r0ckbaer
0
207
Member Avatar for alc6379

Hi, i don't know exactly what you want to do there, but if you want only to make your int array public by a property you could do this in your class: [code] public int[] MyArray { get { return myArray; } } [/code] Then when you want to call …

Member Avatar for alc6379
0
2K
Member Avatar for viet_mafia

try this solution: [code] bool SortBylength(const string& a, const string& b) { if (b.length() > a.length()) { return true; } return false; } int _tmain(int argc, _TCHAR* argv[]) { vector<string> v; for (int i = 0; i < 3; i++) { cout << "enter word " << i + 1 …

Member Avatar for Lerner
0
286
Member Avatar for Drowzee

[url]http://www.codeproject.com/csharp/highperformancetimercshar.asp[/url]

Member Avatar for Drowzee
0
491
Member Avatar for saman
Member Avatar for _r0ckbaer
0
116
Member Avatar for nanosani

well, to make registry access read only you could log into your windows without admin rights :P another thing maybe would be to store that data in a file and fiddle with the security rights of it (right click file -> choose security tab) and modify these to have some …

Member Avatar for f1 fan
0
250
Member Avatar for monicachapmanal

Well, honestly i m MCSD.NET and it didn't help me that much getting a job. What they look for nowdaddays is a MS in computer science, wether you code or are at the helpdesk (sad but true). As for the the 70-315 preparation have a look here, it might help:[url]http://www.testking.com/70-315.htm[/url] …

Member Avatar for _r0ckbaer
0
78

The End.