A step by step tutorial teaching you how to create your own chat client and chat server easily in C#, for local networks or the Internet.
A C# tutorial showing you how to make use of WMI to extract information on disk drives, such as model, capacity, sectors and serial number.
This tutorial will teach you how to calculate the shipping cost based on the weight, height, length and depth of the box, the distance and the UPS service type.
Creating a Rich Text Editor using JavaScript is easier to do than you might think, thanks to the support of modern browsers; this tutorial will walk you through it.
I am trying to capture a mouse click anywhere on the system while I have a modal dialog box up. I am using the code in http://support.microsoft.com/kb/318804 - and it doesn't work. 1) I only get...
| On Sunday, November 8th 2009 at 06:39 PM by David | No Replies |
Hi; To create an HTML version of a mail message I do: StreamReader htmlStream = new StreamReader(html.GetReport(), Encoding.UTF8); MailMessage mail = new MailMessage(); mail.AlternateViews...
| On Thursday, September 17th 2009 at 12:54 PM by David | 1 Reply |
Is there any wizard in visual studio or online example for creating a custom Data Provider service C# which can be connected to with ADO.NET?
| On Monday, July 13th 2009 at 09:07 PM by DR | No Replies |
How to create a vertical tool bar for IE with C#?
| On Saturday, June 20th 2009 at 03:02 AM by DR | No Replies |
How to programmatically resize the height of a custom IE toolbar written in C#? When I resize it, it shrinks but the real-estate it is in stays the same size.
| On Saturday, June 20th 2009 at 03:02 AM by DR | No Replies |
Hi; When email we send is forwarded all the images are removed from the email and instead become attachments. Is there a link somewhere that spells out the correct way to put images in a message...
| On Friday, June 19th 2009 at 04:35 PM by David | 2 Replies |
Hi; Here's the basic problem, I have a boatload of code that is J# and a small amount that is C#. In a perfect world VS 2005 would let me put both in the same project. But VS 2005 does not support...
| On Monday, June 15th 2009 at 12:35 AM by David | 3 Replies |
Hi all, My development environment was initially set up with vs2005, and the ..net 2.0 sdk. I upgraded to vs2008 sp1 with .net 3.5. I also used the microsoft .net configuration tool to install...
| On Thursday, April 23rd 2009 at 10:47 AM by Carlos | 1 Reply |
Hi; According to http://msdn.microsoft.com/en-us/library/ms998326.aspx medium trust only allows DB access of Sql Server. Our library allows the caller to pass us an DBConnection so it could be...
| On Wednesday, March 25th 2009 at 12:31 PM by David | 3 Replies |
Hi; We need to create an event log named AutoTag if one does not exist. This requires write permission to HKLM\System\CurrentControlSet\Services\Eventlog. What is the best way to set this up...
| On Thursday, March 19th 2009 at 07:50 PM by David | No Replies |
Hi; When all of our DLLs were signed our load speed was about 45 seconds. So we dropped back to only signing 2 of our DLLs (they are all still strongly named). This sped things up a lot. However...
| On Friday, March 13th 2009 at 05:55 PM by David | 2 Replies |
Hi; I am using named pipes to communicate between 2 of my windows apps on the same computer. On XP it works fine. On Vista running each as an admin it works fine. But running on Vista as a regular...
| On Tuesday, January 20th 2009 at 07:19 PM by David | 2 Replies |
Hi Guys, Created a site using ASP.NET. When trying to download a wav file cannot download the file but it works for Fire Fox. Why is that? Thank you for help
| On Monday, January 12th 2009 at 04:09 PM by Anonymous | 1 Reply |
Hi; We have an Office AddIn written in C# and in one case we need to write to the HKLM registry (when they give it the license to enable it). If they are running as a user that does not have those...
| On Monday, January 5th 2009 at 07:36 PM by David | 2 Replies |
Hi; Is there a .NET call, or if not, a SDK call where I can pass in a WMF/EMF and the resolution to render at, and get back a PNG? These would be file images in memory, not physical files. thanks...
| On Monday, January 5th 2009 at 02:30 PM by David | No Replies |
Hi all; Ok, for simple IPC between 2 .NET apps I wrote a simple named pipes set of classes. If anyone needs them - http://www.davidthielen.info/programming/2008/12/named-pipes-in-net.html thanks...
| On Tuesday, December 16th 2008 at 05:14 PM by David | No Replies |
I just noticed that we now have a bin\release\de and in that dir we have Lib1.resources.dll and Lib2.resources.dll. Do we need to install these files with our program, and do we do so in a de directory...
| On Sunday, November 23rd 2008 at 03:15 PM by David | No Replies |
Hi; When I install our program and we go to run it, it gives the Windows program hit an error message. When we click Debug it says it can't find a dll it needs. The dll is strongly named (and...
| On Thursday, November 20th 2008 at 07:33 PM by David | No Replies |
When I call EventLog.SourceExists("Report Scheduler") I get: Exception: System.Security.SecurityException Message: The source was not found, but some or all event logs could not be searched. Inaccessible...
| On Friday, November 7th 2008 at 04:58 PM by David | 1 Reply |
Hi there, Can any Regular Expression expert explain the meaning of the following for me: (\p{L}{2}[0-9]{7}) Thanks very much! Mike
| On Thursday, November 6th 2008 at 09:10 PM by Anonymous | 2 Replies |
I need to lookup TXT records in my application but it appears that the System.Net.DNS class is not capable of doing so. GetHostEntry() seems to be the closest match, but the IPHostEntry that it returns...
| On Thursday, October 23rd 2008 at 08:58 AM by Kevin Dean | No Replies |
Hi; When running dorfuscator it calls ildasm. When it does the following message box pops up. ildasm.exe - Application Error The application failed to initialize properly (0xc015004). Click on...
| On Wednesday, October 22nd 2008 at 11:13 PM by David | 5 Replies |
Hi; What's the nest news group for programming questions in Virtual Server? thanks - dave david@at-at-at@windward.dot.dot.net Windward Reports -- http://www.WindwardReports.com me -- http://...
| On Tuesday, October 21st 2008 at 06:39 PM by David | 1 Reply |
I need to do FindWindow() to find the main window of an app of mine (to pos a message from another app). I can't use the title because it is localized and can have status info in it. So I need to...
| On Tuesday, October 21st 2008 at 06:38 PM by David | 1 Reply |
Hi; Ok, we now need to localize our Form app. We have the text in all the controls as well as text we set inside our code. What's the best approach? I just need big picture of which of the various...
| On Tuesday, October 21st 2008 at 06:35 PM by David | 4 Replies |
Hi; If a user tries to start an app of mine, and that app is already running, I want to make the already running app normalized (it's usually in the tray) and give it the focus - and then exit the...
| On Sunday, October 19th 2008 at 04:13 PM by David | 2 Replies |
I want to use sn.exe in a batch file to sign multiple assemblies (resources that have been translated into a foreign language). Is there a way to avoid having to manually type in the password for...
| On Saturday, October 18th 2008 at 06:16 PM by Anonymous | 1 Reply |
Hi; Hitting google the best I found was to have a windo in the tray area is to call Hide() when it is minimized. This strikes me as a hack - is there a better way to do this - such as assign the...
| On Friday, October 17th 2008 at 06:21 PM by David | 2 Replies |
Iam Developing a Multi monitor Application in C++ MFC VC 6.0 in which i need to manage the diffrent monitor IDs for eg if 6 monitors are connected windows will assign IDs as 1,2,3......6 to the monitors...
| On Tuesday, October 14th 2008 at 03:03 AM by Anonymous | No Replies |
What's the easiest way to do this? I treid the following but it didn't work: midiFile = Path.GetFullPath(midiFile); midiFile = GetShortPathName(midiFile); // gets the 8.3 filename mciSendString...
| On Tuesday, October 7th 2008 at 07:43 PM by David | 4 Replies |
Hi; Is there a url that explains how in C# to create my own log in the event viewer and then write to it? I am writing to Application fine but would like to have my own. thanks - dave david...
| On Friday, October 3rd 2008 at 07:11 PM by David | 3 Replies |
I have written a .NET NT service which was compiled with the ANY CPU option. I am now trying to deploy service to an x64 platform, but wish to force the service to run as 32-bit under WOW64. I thought...
| On Wednesday, October 1st 2008 at 01:32 PM by Anonymous | 3 Replies |
Hi All, I want to create an application as 'Object Browser' in Visual Studio.Net. In which I just want to give it a Dll or PDB file, then it will show the information about references used by this...
| On Monday, September 29th 2008 at 03:01 AM by ashishgupta.kalpi@gmail.com | No Replies |
Hi; What is the best way to open a FileStream where the file might be locked and I am willing to wait 2 seconds for the lock to be released? thanks - dave david@at-at-at@windward.dot.dot.net...
| On Wednesday, September 24th 2008 at 05:35 PM by David | 2 Replies |
Hi; I'm trying to have a good default from email address & name as well as a mail server for a user when our app sends email for them. Is there some way to query the system to get that info - at...
| On Wednesday, September 24th 2008 at 04:12 PM by David | 3 Replies |
What's the best mechanism to use for 2 apps to pass data between them. Both apps will always be on the same machine, both apps are .NET apps, one is an Office AddIn and the other is a Windows Forms...
| On Wednesday, September 24th 2008 at 12:35 PM by David | 6 Replies |
I want to create an image list (in c#) from the specified bitmap with a specified size as with native function Image_LoadImage. http://msdn.microsoft.com/en-us/library/bb761557(VS.85).aspx Thanks...
| On Monday, September 22nd 2008 at 04:57 AM by Mihai Popescu | No Replies |
Hi; I have a Word AddIn and in a Timer event I need to do the equivilent of Control.Invoke(). The problem is, I have no Control to do it on - my code is a Word AddIn and so when the timer fires,...
| On Saturday, September 20th 2008 at 05:20 PM by David | 1 Reply |
Hi; I've got 2 questions about features in the new C#. The first is where I can do "var x = new MyObject()" instead of "MyObject x = new MyObject()". This strikes me as a step back to Basic as...
| On Saturday, September 20th 2008 at 04:12 PM by David | 2 Replies |
I create a new dll using following using System; using System.ComponentModel; using System.Security.Permissions; using Microsoft.ManagementConsole; in csharp and copy it to same path where...
| On Friday, September 19th 2008 at 09:30 AM by Ashish | No Replies |
I create a new MMC 3.0 dll in csharp and copy it to same path where InstallUtil.exe exists. When i try to install this using InstallUtil.exe it given folowing error An exception occurred during...
| On Friday, September 19th 2008 at 07:31 AM by Ashish | No Replies |
Hi all, My application hangs many times in a strange call stack as reported by DebugDiag output, seems like in writing-to-console. This is the call stack reported by DebugDiag.exe: ntdll!KiFastSystemCallRet...
| On Wednesday, September 17th 2008 at 08:34 AM by Anonymous | No Replies |
Hello everyone. I have a question. How to develop a software that support multi-culture? I want develop a software with console and dlls. Customers can use dlls for develop. There's solutions for...
| On Friday, September 5th 2008 at 12:01 PM by John Liu | 2 Replies |
What is the latest version of MgmtClassGen.exe? Version 1.0 had problems with generating classes from namespaces other than Root\Cimv2. Version 2.0 is better, but still has some issues. Is there a...
| On Wednesday, September 3rd 2008 at 03:16 PM by Anonymous | No Replies |
thanks - dave david@at-at-at@windward.dot.dot.net Windward Reports -- http://www.WindwardReports.com me -- http://dave.thielen.com Cubicle Wars - http://www.windwardreports.com/film.htm
| On Friday, August 29th 2008 at 01:52 PM by David | 9 Replies |
Hi; For XmlReader.Create(string filename) is it possible to pass a URI like how java allows: jar:file:c:/data.zip!order.xml and it will then use the file order.xml in the data.zip file as the...
| On Thursday, August 28th 2008 at 06:15 PM by David | 3 Replies |
Hi all, Could anyone help me out in getting the WM 6.1 SDK and the documentation? -- Thanks & Regards.
| On Monday, August 25th 2008 at 05:24 AM by Anonymous | No Replies |
I need to change the Intranet Zone for .Net 2.0 programs to fully trusted. I can use the .NET Framework 2.0 configuration tool on my PC but most PCs don;t have this isntalled. Can I use Caspol...
| On Monday, August 18th 2008 at 10:56 AM by Anonymous | No Replies |
When using System.IO.FileStream, I write 8 bytes, then seek to the start of the file, does the 8 bytes get flushed on seek and the buffer become a readbuffer at that point instead of being a write...
| On Monday, July 28th 2008 at 09:38 PM by DR | No Replies |
I am trying to get the directory that a "directory" symbolic link "points to" in Vista. (I actually need this in my application!) To do this I have to call the "NtQuerySymbolicLinkObject" Windows...
| On Thursday, July 24th 2008 at 11:15 PM by Anonymous | No Replies |