Click here to Skip to main content
15,891,567 members
Everything / Operating Systems / Windows

Windows

Windows

Great Reads

by Dr. WPF
.NET 3.5 SP1 is here! It's time to break out your DirectX skills. This article provides the information necessary to get started using a new DirectX interop feature in WPF called D3DImage.
by Szymon Roslowski
Just another approach to understanding communication between HID devices and C#.
by Jeffrey Walton
Import and export Cryptographic Keys in PKCS#8 and X.509 formats, using Crypto++, C#, and Java.
by Martin Mitáš
How to support scrolling within your controls.

Latest Articles

by Bert O Neill
This article explains how to install and configure AWS LocalStack on a Windows machine for SQS (Simple Queue Service).
by Ștefan-Mihai MOGA
This article is about the IntelliFile application which is a free alternative Windows version to Total Commander and uses many components that have been published on CodeProject.
by GabrieleTronchin
A simple stored procedure to add at your database to keep it reactive
by GabrieleTronchin
Automatic creation of non clustered indexes using system SQL entities

All Articles

Sort by Updated

Windows 

20 Aug 2009 by "Fish" (David B. Trout)
A command-line tool to run multiple programs in parallel (i.e. concurrently, as a group).
19 Oct 2010 by "Fish" (David B. Trout)
Simple parsing of VS_VERSIONINFO version information strings displayed in an XP-style file-properties "Version" tab
16 Apr 2001 by #realJSOP
Technique for utilizing a CResizablePage in a CFormView-derived class
6 Jun 2001 by #realJSOP
Extension of Paolo Messina's CResizableDialog concept
14 Mar 2002 by #realJSOP
Parse strings with specified delimiter and specified quote character
7 May 2001 by #realJSOP
Track a mouse click, even in a scrolled view
12 Dec 2001 by #realJSOP
A small function to either accept or create a UUID* and return a CString
15 Apr 2008 by #realJSOP
Helps with copying a device independant bitmap to the clipboard.
8 Dec 2002 by #realJSOP
Some dialogbox code to give the Blonde a clue
9 Dec 2002 by #realJSOP
One technique for performing a binary insertion sort on a std::list
22 Dec 2003 by #realJSOP
Add a scrollbar to a property page when the SIP is displayed.
13 May 2005 by #realJSOP
Create blinking cells for Chris Maunder's grid control.
9 Aug 2005 by #realJSOP
Enumerate all controls in a dialog box or form view.
28 Jul 2006 by #realJSOP
Copy a bitmap over a portion of another bitmap
3 Aug 2006 by #realJSOP
A passable workaround for the COleDateTime formatting behavior in MFC8.
17 Nov 2006 by #realJSOP
A technique for making stdio functions compile clean regardless of the Microsoft compiler used
29 Nov 2006 by #realJSOP
Here's some code that will automatically start your app on a secondary monitor if it's compiled with debug info.
30 Nov 2006 by #realJSOP
Two methods to retrieve the path/name of a VS2002 or higher DLL from within that DLL.
4 Dec 2006 by #realJSOP
Compare floating point numbers for equality at programmer-specified precision.
27 Jan 2007 by #realJSOP
Implement XML application profiles that are similar (but not too similar) to using INI files
15 Apr 2008 by #realJSOP
The right way to code using CodeProject for occasional support
15 Apr 2008 by #realJSOP
The right way to code using CodeProject for occasional support
27 Jan 2007 by #realJSOP
The right way to code using CodeProject for occasional support
15 Apr 2008 by #realJSOP
The right way to code using CodeProject for occasional support
12 Jan 2010 by #realJSOP
The right way to code using CodeProject for occasional support
26 Jan 2007 by #realJSOP
Add menu items to, and learn how to handle the system menu
7 May 2007 by #realJSOP
The VBScript version of my C# article about the very same thing
21 Dec 2008 by #realJSOP
Parse a string with quoted elements, insert/add/delete elements, and is CLS compliant
11 Dec 2010 by #realJSOP
Scrape the My Articles page here on CodeProject to keep an eye on your articles.
2 Jan 2010 by #realJSOP
This is how I do it:public static System.Environment.SpecialFolder m_specialFolder = Environment.SpecialFolder.CommonApplicationData;
11 Jan 2010 by #realJSOP
I wouldn't do it because it's a system DLL, and Vista/Weven don't like it when you mess with system DLLs.
17 Jan 2010 by #realJSOP
Don't use MS Shell Dlg for your font. Select a specific font (and I recommend selecting one that comes with a standard Windows install). I use Arial (I like it better than MS San Serif).EDIT =============I don't understand why this was voted a 3. You may not LIKE the answer, but it's...
22 May 2010 by #realJSOP
Don't drink the kool-aid. You still need to know how to use the Windows API in .Net apps.
22 May 2010 by #realJSOP
No change is too small for a complete regression test.
25 Jan 2010 by #realJSOP
Try googling your wireless router with this text"TP-LINK 841N" + "intermittent disconnect"It might be a firmware issue, or it might be that your router is inherently flawed.
26 Jan 2010 by #realJSOP
Did you change the bios to allow booting from DVD/removable media?BK> Yes. I'm going to try an mount the Windows 7 Recovery Disk on my flashdrive, boot from that, and then directly run the 2008 setup.exe.
27 Jan 2010 by #realJSOP
Yes, it's possible. I would make all the settings in the app.config user settings through.
27 Jan 2010 by #realJSOP
They need a PDP-11, or maybe a VAX.
4 Feb 2010 by #realJSOP
Maybe use google? I found this:http://www.dreamincode.net/forums/showtopic34831.htm[^]
5 Feb 2010 by #realJSOP
This is not an appropriate Quick Answer question. The chance that the person you're trying to contact will even see this is remote at best.
21 Feb 2010 by #realJSOP
My guess is that you laptop NIC isn't compatible with the 5Ghz band.BTW, you didn't provide the entire model number of the NIC.
14 Mar 2010 by #realJSOP
All you have to do is iterate through the array and create a string that appends one byte at a time formatted as a hex value.
15 Mar 2010 by #realJSOP
Each printer has a minimum margin setting. Maybe 10mm smaller than your printer's minumum.I googled "C# printing margins", and found this:http://msdn.microsoft.com/en-us/library/system.drawing.printing.margins.aspx[^]
24 Mar 2010 by #realJSOP
You can either 0) Derive a new class from CollectionForm, and subscribe to the button event of the up/down botton1) have the form handle the up/down button and perform the desired action on the CollectionForm object.
27 Mar 2010 by #realJSOP
Make sure you've specifically set your tab order on all controls in the form and see if it fixes it.It might be that you've written some code for the control to prevent the tab key from working.
4 Apr 2010 by #realJSOP
The Quick Answers feature on this web site isn't intended for people to ask for entire entire applications to be written for them. If you need someone to write code for you, hire a programmer.
10 Apr 2010 by #realJSOP
Just instantiate the child form like you would any other object:MyForm form = new MyForm();form.ShowDlg();[EDIT - Removed unclosed bold tag which was making rest of the page bold]
26 Apr 2010 by #realJSOP
What you should do is have your server listen for client connections (TcpListener), and have each client request the new file. If it exists, respond by sending the contents of the file to the client. If it doesn't exist, send an appropriate response.The important thing to notice here is that...
26 Apr 2010 by #realJSOP
I don't see why not. At the very most, you'd have to set compatibility on the executables associated with the compiler, but I doubt you'd even have to do that.I didn't even know Borland was still making compilers...
26 Apr 2010 by #realJSOP
Well, what are you trying to accomplish? In the code you've posted, as long as pwnd isn't null, you should be good to go. What else are you concerned about?
30 Apr 2010 by #realJSOP
Instead of having to go through all the enable/disable stuff, try it this way:http://www.codeproject.com/Tips/53695/Multiple-Subsequent-Main-Forms-in-Csharp-Apps.aspx[^]
2 May 2010 by #realJSOP
Unless you know how it was encrypted there's no point in trying to decrypt it.
3 May 2010 by #realJSOP
So accept the answer (there's a button there for it).
4 May 2010 by #realJSOP
This is - well - impossible. The only way you can resolve the issue is to force the machine to start in safe mode, and you can only really do that as it's booting up.At that point, you can manually examine the various system logs and try to find the issue.In short, writing an app to...
8 May 2010 by #realJSOP
Try the SetWindowPos windows api function (you'll need pinvoke for that), and it looks like it takes many of the same parameters.
12 May 2010 by #realJSOP
Try changing the property of the executable to always run as admin.
23 May 2010 by #realJSOP
Google the phrase "WMI C++". I'm sure you'll come up with a bunch of hits.
24 May 2010 by #realJSOP
Send an email. I personally hate popup messages because you usually have to dismiss them before doing anything else.
25 May 2010 by #realJSOP
The only thing I can think of is it's because you haven't overridden the ENTIRE style/template. Microsoft has all of the standard templates available as a download, or if you have Expression Blend, you can just create a copy of the template.
26 May 2010 by #realJSOP
Is it especially troublesome to just do it in Outlook? My advice is that you investigate the Office SDK.
2 Jun 2010 by #realJSOP
First, you need a handle to the target application's main window. This is much easier to achieve if your application launches the target application interally (using the Process object). After you get the window handle, you can send the window any Windows message that you wish.BTW, if...
9 Jun 2010 by #realJSOP
You're after the Environment.SpecialFolder.MyDocuments enumeration. What do you mean by "redirected"?According to the MSDN page, it should know how to retrieve folders that have been specified by the user.Is it possible for you to try it using .Net 3.5 instead of 2.0?
19 Jun 2010 by #realJSOP
If they changed your system password on Windows, your only option is to reformat and reinstall windows from scratch. Period.If they hacked your router, you can usually reset it because most routers have an external method for doing that (like holding a button in for x number of...
27 Jun 2010 by #realJSOP
I know there are limitations involved with using "Express", but I don't know what all of them are. You can get VS2008 Standard for $279 on Amazon. I know for a fact that you don't need to spend the money on Pro to get the features you need.
27 Jul 2010 by #realJSOP
The "quick" answer is "manually". Create a new project (either dialog based, sdi, or mdi), and manually move your code to it. Believe me when I say this will be the easiest approach.
28 Jul 2010 by #realJSOP
You need to retrieve the xml file with HTTPWebRequest or WebClient before you can parse it.
2 Aug 2010 by #realJSOP
Do all of these things:0) Set the HorizontalAlignment and VerticalAlignment properties to Center.1) Remove the Margin property completely2) Set the Width and Height to something that does not exceed the resolution of the monitor.
12 Aug 2010 by #realJSOP
I have to submit a project name by this saturday You're running out of time...Challenging & innovative ideas are required How about software that accepts a series of random words that it uses to generate an idea for a studen't final year project.our college is very strict & not...
18 Aug 2010 by #realJSOP
shiva's answer is almost there. When you try to open the file, use FileShare.None. If the file is already open, attempting to open the file with FileShare.None with throw an exception that you can react to.
22 Aug 2010 by #realJSOP
You should be putting the data file into the appropriate user-specific folder.
25 Aug 2010 by #realJSOP
Review this web page:http://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest.aspx[^]
25 Aug 2010 by #realJSOP
Because a DLL isn't a unix format. I think you want to build a .SO file, and for that, you need a unix compiler.
2 Sep 2010 by #realJSOP
You're back. Use google to find a library that does what you want. there are literally dozens of ways to do this, certainly too many for us to list here.Like I said yesterday, it's a waste of time. Anything that can be done with software, can be UNDONE with software.
6 Sep 2010 by #realJSOP
Because Windows 7 is - well - different.
14 Sep 2010 by #realJSOP
The letters are already in a collection (what do you think a string is?)
16 Sep 2010 by #realJSOP
Well, all of the software you're trying to install or use is compatible with SP2. Since there appears to be a problem, change your minimum requirement o includ XP/SP3 and you're golden.Anyone running XP should be running SP3 anyway.
16 Sep 2010 by #realJSOP
You have to paint the control yourself. And why on earth would you want to NOT use the frameworks available to you?
20 Sep 2010 by #realJSOP
What you're trying to do is not going to be very efficient. As you add a control, you're going to have to check each control already on the form to see if the rectangles intersect, and then every time you move one so it doesn't overlap a given control, you're going to have to make sure that the...
28 Sep 2010 by #realJSOP
Man, I'm really getting tired of saying try google first:http://msdn.microsoft.com/en-us/library/system.windows.forms.control.keypress.aspx[^]
28 Sep 2010 by #realJSOP
Again, google is your friend:http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/451871ac-bc88-4c71-a840-386c21d8125e[^]
4 Oct 2010 by #realJSOP
You can't possibly be serious. Questions and Answers is not meant for this type of "question". It's to ask for help on a specific programming problem you're having.
5 Oct 2010 by #realJSOP
One way to create a completely random encryption key, and sharing it with a client application
8 Oct 2010 by #realJSOP
Google "c# credit card payment", and revel in the 554 THOUSAND results you get back.You're probably going to have to pick a service and use their API.
17 Oct 2010 by #realJSOP
Have you tried manually invalidating the listbox?
21 Oct 2010 by #realJSOP
Are you sure you're entering the correct password?You may be able to boot up with a Linux Live CD and modify the password that way. I don't know how you'd do it, but there are probably detailed instructions hidden somewhere in the depths of a google search.
22 Nov 2010 by #realJSOP
Why don't you just create a static string value that is global to the app, and use it in both forms...
22 Nov 2010 by #realJSOP
I have an idea. Since you're a programmer, why don't you try both ways and answer your own question?EDIT --------------I would use DirectoryInfo.GetFiles("*.xyz", true); and be done with it. BTW, LINQ is always slower.
7 Dec 2010 by #realJSOP
What you could do is change the icon when the object is dragged over an app that's running in admin mode (and your app isn't).
20 Dec 2010 by #realJSOP
You want to use double-buffering. Google is your friend.http://stackoverflow.com/questions/76993/how-to-double-buffer-net-controls-on-a-form[^]
20 Dec 2010 by #realJSOP
Yeah, you can set up a windows service that allows connections via TCP/IP sockets, WCF, or whatever. At that point, you can make the service do anything you want on the remote machine.
21 Dec 2010 by #realJSOP
You need admin access to run regsvr32...
23 Dec 2010 by #realJSOP
The NTFS File System[^]Google is your friend.
24 Dec 2010 by #realJSOP
Accounts that have been more frequently used tend to take longer to start up. This is caused by a LOT of things, such as desktop icons, populating the All Programs menu, starting services for installed software, loading fonts, etc.You can take steps to clean it up, but it won't help much. ...