Answer Questions
Ostenda Setting not found in thread
I have an application that starts a thread that reads from an xml file. the path to this file is stored in a property setting. The problem is that i get a SettingsPropertyNotFoundException saying that it can't find the setting. (The setting is there, though; I checked.) However, if I access the setting before I start the thread, I get NO exception. Not even when I access it in the thread, later on. This only happens when I debug the applicati ...Show All
Utwig Any help For Graduating Project .. Need Just The Idea
hello .. I'm senior year at university .. next semester I have to build my project .. unfortunately my supervisor doesn't help me to choose suitalble idea ( in my university .. no one of instructor knows or even cares to know about VS C# !! all they know is poor DBS built on non-microsoft product !!) anyway .. I want my project to be worked under .Net framework ( esp C# or ASP.net with C#) thank for being care i ...Show All
xux Integrate OutLook with .net application
hi i want to integrate OutLook Express with .net Application. then plz tell me the steps or hint to code in application thanks and regards kavita You can't easily automate Outlook Express as it doesn't expose an API. Outlook, however, gives a full COM interface that you can automate like any other COM interface (ie add a reference to your .net project and code away). ...Show All
MadouKz Converting Small endian to Big Endian using C#(long value)
Could someone tell me how to write an equivalent code in C# for the following C++ code which would give me a big endian from a small endian Thanking you in Advance.. Function call - ProcessEndian((char*) &longValue, sizeof(long)); void CUtility::ProcessEndian(char * pHostData, int nHostDataLength) { char buffer[10]; int i = 0; char* pChar = NULL; for (i=0; i<nHostDataLength; i++) { pChar = pHostData+i; buffer[ i ] = *(pChar) ...Show All
Florida Keys Coder use printdocument
i am using c1.win.printdocument but i can't dispose object to free memory. can u help me Thanks! nut Please add more detail! Please include code sample and disclose what your actual problem is. ...Show All
Tommy Vinson c# switch best practice?
I have some code that cycles thru all the controls on a form. As i'm doing this i want to take action on the controls based on what type they are. When doing this in vb I would use the select statement as follows: Select Case True Case (ctrl.GetType Is GetType(TextBox)) Debug.WriteLine("textbox") Case (ctrl.GetType Is GetType(RadioButton)) Debug.WriteLine("radiobutton") ...Show All
liujj_xujj Bind with WindowsIdentity
Hi, how can I bind to the ActiveDirectory with WindowsIdentity, without requiring username and password again Thanks. And secondly, what If I don't have domain controller Well... but I can get the DirectoryEntry of user by WinNT provider without searching and also the Guid of it. What is it then (for example you can use the prefix of ...Show All
__TOM__ get Full path to User Document (to save settings)
I want to know if there is a way to get the full path to user's documents. what i want to do is save all settings my program has into the: C:\Documents and Settings\User name\Application Data\MyProgramName\settings.xml Currently i am keeping all settings in Program Files which is not so a good idea i heard. Any help would really help. Hi, I would recommend you saving your application settings in the app.config file. http://msdn.micros ...Show All
b.hesse discarding everything except Arabic letters
Hi, I need to write a C# code that takes a string containing Arabic characters and returns only the Arabic characters, discarding anything else. I don't know how can I do that. I need your help please. Thanks, Aya. ...Show All
Bill H123 c# Syntax
how do you make a carriage return in c# so..... w + \n\r + ww yes. You are correct. It has to be "\r\n". I didn't see that coming. I think you will need to use the ItemArray for adding a new line programmtically. Escaped characters are interpreted as literal. Thank you for your help Cisco ...Show All
Crof Memory leak
Hello Guys, Recently, i had used a tools to detect memory leak for .net And, it's said that i had a memory leak on exiting program. The leak is mainly on hpz2ku10.dll and hpzpm310.dll but on different line/offset. My question : How to avoid this memory leak since i don't know which code causing this leak. also, it's said that the total bytes leak is 75.104 bytes (75Kb), is this leak bad Thanks guys for the answers. ...Show All
Railmonkey How To Send a Mail Using CDO 1.21 with C#
Hi I try to write a console application in c# whichs sends a mail using CDO 1.21 (I can't use a smtp server). I found a good description for j++ ( http://support.microsoft.com/kb/216723/en-us ), but don't know how to write the cdo parts in c#. I could logon to my profile, but I wasn't able to create or send a message. I would be very happy for a code example which shows how to send a mail using CDO in C# (just a simple conso ...Show All
Sean J Mixing inherited classes and interfaces
Hello, a former c++ dev in my team is a bit worried by the following code which implies inheriting interfaces, and having inheriting implementations as well. public interface IMyInterface { /* */ } public interface IMyChildInterface : IMyInterface { /* */ } public class MyImpl : IMyInterface { /* */ } public class MyChildImpl : MyImpl, IMyChildInterface { &n ...Show All
Patrickk Serialization And Changing The Operating System
When I moved a C# application from Windows 2000 to Windows XP, the deserialization of serialized inputs failed, so that all inputs had to be rentered into the application. Is there any way around this problem It must have been encountered by many before me. The same type of problem can also arise when serialized data structures are changed. Thanks. The problem should NOT happen when changing from OS to OS. Th ...Show All
jd6strings System.Xml VS MSXML4.0
I have to work with big size .xml files and do manupulate, can any one suggest which is good (System.Xml VS MSXML4.0) in terms of performance, ease of use etc in C# Khan it all depends on what you what kind of manipulations you want to run on your XML files and what kind of access you require for it. If you are are going to load large documents into DOM it will certaintly slow down your applications since they will take up signif ...Show All
