Click here to Skip to main content
15,890,185 members
Everything / .NET / .NET 3.5

.NET 3.5

.NET3.5

Great Reads

by Jeffrey Walton
Import and export Cryptographic Keys in PKCS#8 and X.509 formats, using Crypto++, C#, and Java.
by Daniel Vaughan
Calcium provides much of what one needs to rapidly build a multifaceted and sophisticated modular application. Includes a host of modules and services, and an infrastructure that is ready to use in your next application.
by Sacha Barber
It would probably be like Cinch, an MVVM framework for WPF.
by Marc Clifton
Review your project dependencies.

Latest Articles

by NikStar
Using OutgoingMessageProperties and OperationContextScope to implement authorization by http header for WCF client that communicates with non WCF-based web services.
by Sufyan S Jabr
All that you need to know when working with MSDTC, troubleshooting and problem solving.
by Jayson Ragasa
Multi RDP Client .NET is used for managing your RDP connections. It allows you to Import/Export .RDP files, disconnect all connection at one click, and connect all your servers at one click as well.
by Rahman Masudur
Few tricks about using a Resource Dictionary in WPF

All Articles

Sort by Updated

.NET 3.5 

17 May 2008 by #realJSOP
One method for loading common and object-specific data from your app.config file.
28 Sep 2008 by #realJSOP
Put text on a bitmap, make your winform app go full-screen, and say hello to some simple LINQ code.
1 Oct 2008 by #realJSOP
Implement repetitive tasks at consistent intervals
2 Oct 2008 by #realJSOP
Discusses windows authentication and application-specific authentication for WinForm applications
11 Dec 2010 by #realJSOP
Scrape the My Articles page here on CodeProject to keep an eye on your articles.
17 Dec 2008 by #realJSOP
A not-so-dotNet way to allow multiple programs to share a single settings file
4 Jan 2009 by #realJSOP
A utility that you can use to "exercise" your inkjet printer without wasting a lot of ink or paper
12 Jan 2010 by #realJSOP
If you remove the resource file, your *application* won't find it. I think your ownly recourse is to merge the resource file in each window that needs it (and take the merging out of your app.xaml file).
17 Jan 2010 by #realJSOP
It looks like you're leaving a message for someone specific, and probably in a forum for an article. Nobody has any idea what you're talking about.
21 Jan 2010 by #realJSOP
USE THE DEBUGGER.It would have allowed you to discover that there is only one item in the rdr object. Using a value greater than 0 will almost always result in an exception.
23 Jan 2010 by #realJSOP
If you're talking about merging dll files and exe files into one executable, google "ilmerge", and you'll be off and running/. It can also merge app.config files.
24 Jan 2010 by #realJSOP
Why don't you pass all of the selected files on the command line and start a transform thread for each one (use a thread pool). Then, you could have a progressbar for each file, or just one that somehow shows the combined progress. I imagine you've already written a shell extension that adds a...
25 Jan 2010 by #realJSOP
You can build for one environment at a time. Select x86, and build. Then, select x64, and build.When you look in the bin/debug (or release) folder, you'll see two appropriately named sub-folders "x86" and "x64".
5 Feb 2010 by #realJSOP
There are several issues with your "plan".0) Not everyone has auto-run turned on for removable media (for instance, I don't).1) You can't "disable" a particular CD. It's simply impossible to do. 2) Your only recourse is to have the application register its media when it's run. This...
19 Mar 2010 by #realJSOP
If it were me, I'd change the protection level (if necessary) on the internal UserControl, and then subscribe to the appropriate event from the main form.private void Load(){ this.userControl.innerUserControl.Button.Click += ....}I know, it's not very OOP-centric to expose...
23 Mar 2010 by #realJSOP
I found this exchange with google:WPF's DataGrid is a bit different than ASP.net's DataGrid. One way you can export to excel with WPF's DG is to use the DataGrid.CopyToClipboard command which makes a copy in a CSV, html, and text format. From there you can either just create a csv file or...
30 Mar 2010 by #realJSOP
Look at the DirectoryInfo.GetFiles() method. It does exactly what you need (returns an array of strings that represents the file names that exist in the folder in question.
11 Apr 2010 by #realJSOP
Yes. Surface is written completely with WPF. There are plenty of details if you'd only use google.
28 Apr 2010 by #realJSOP
What kind of audio file? If it's a MP3, how do you propose handling variable bit rate files?
30 Apr 2010 by #realJSOP
Did you try googling "wpf linkbutton"? You would have gotten thousands of hits.
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...
13 May 2010 by #realJSOP
liorogi wrote:should i use a new thread for the motor movement?You mean you haven't actually tried that yet? Most of us have no experience with this kind of controller stuff, so we can't comment.
3 Jun 2010 by #realJSOP
Can you make the rest of the pie chart transparent?
4 Jun 2010 by #realJSOP
The problem I think is that your tiNew variable is being reallocated, so the program has the same tab twice. You sholud write a method that creates a new TabItem and sets all the appropriate properties, and returns the TabItem to be added to the TabControl.Items collection.
7 Jun 2010 by #realJSOP
I googled the phrase "asp.net progressbar", and found an article right here on CodeProject:ASP.NET ProgressBar Control[^]
9 Jun 2010 by #realJSOP
Why don't you create a master copy of the (empty?) table, clone it when you need to, and add the cloned table to the document. Not knowing exactly why this is a problem, I can't suggest anything better.You could also just create a class that builds the table for you with the data you...
11 Jun 2010 by #realJSOP
It depends on how you're uploading it. If it's via windows sockets or the query string, you have to write code that will open the file in such a was as to overwrite the file if it already exists.If you're doing it via FTP, (I think) you have to delete the file on the remote machine...
11 Jun 2010 by #realJSOP
It's pretty obvious what the problem is - you simply have to read the error message. It's telling you that....Oh look! Something shiney!
17 Jun 2010 by #realJSOP
You have more control over what's happening with method #2. That's the one I would choose. However, don't forget to add the requisite try/catch/finally block to handle any exceptions that might occur.
17 Jun 2010 by #realJSOP
You're not going to be able to conduct a meaningful search if you don't require a certain pattern for the search criteria.I would require the user to type something like "first=john;last=simmons" in order to find someone named "john simmons".You could extend this to be "first=john" +...
28 Jun 2010 by #realJSOP
As far as I know, you can develop for any version of Silverlight in VS2008, you just have to install all of the required tools and libraies to do it. A little googling gave up this link:http://www.silverlight.net/getstarted/[^]
30 Jun 2010 by #realJSOP
Set the minimum value and the maximum value on the axis. Since you didn't say what chart control or what platform, that's the best I can do for you.
19 Jul 2010 by #realJSOP
Your question makes little sense. If you are asking if you can get aweb serive's settings from a database in order to communicate with the web service, yes you can, but only if that database can be accessed without the use of the web service. Typically, a web service can only be accessed...
29 Jul 2010 by #realJSOP
You could just eat the event if the button is locked. However, making the button disabled is the standard indisutry way of saying "you can't use this control right now". If you don't like the grayed-out appearance, you could always completely hide them, but I can tell you from a number of...
22 Aug 2010 by #realJSOP
Just start a UserControl project in Visual Studio. It will provide everything you need to start.
3 Sep 2010 by #realJSOP
Well, you're pretty much on your own because we can't possibly help you with memory leaks in your code because we don't have a copy of it. It's up to you and your ability to make use of the debugger.All you can do is become familiar with how memory is used in a .Net app, where potential...
16 Sep 2010 by #realJSOP
You could also set up a global static class that contains an event that fires when a property is changedand handle that event in the desired form.
27 Sep 2010 by #realJSOP
If the computer on which you're performing the impersonation is a member of a domain which does not trust the domain of the user account you are trying to impersonate, then the impersonation attempt will fail. So, set up a trust, and see if it then works.
27 Sep 2010 by #realJSOP
If the computer on which you're performing the impersonation is a member of a domain which does not trust the domain of the user account you are trying to impersonate, then the impersonation attempt will fail. So, set up a trust, and see if it then works.For more info, try googling...
5 Oct 2010 by #realJSOP
One way to create a completely random encryption key, and sharing it with a client application
12 Oct 2010 by #realJSOP
Most (if not all) enterprise-capable obfuscators are retail products. You may as well stop looking for "free" stuff now, before your head explodes.
28 Oct 2010 by #realJSOP
1) Yes, you can iterate network drives as well. You may have to use WMI to get the shares, but it should be possible.2) I don't know if the best or not, because I've never wanted to do anything like this.3) I would use linq to write it to a xml file4) Just, ummm, encrypt it....
1 Dec 2010 by #realJSOP
There is no built-in functionality for this. For what it's worth, this question (or some variation of it is asked here about once per month or so. Just use the search functionality on the site, and you'll find them.
5 Dec 2010 by #realJSOP
0) This question is unanswerable, other than to recommend that you hire a programmer.1) Don't use your email address as a user ID. It's beyond stupid...
14 Dec 2010 by #realJSOP
First, I wouldn't wait for a failure. I would write the current transaction to a file BEFORE starting to process it. Even better, I would log EVERY tarnsaction in a database somewhere. That way, you can just pick up at the most recent failed/incomplete transaction in the database, and go from...
23 Dec 2010 by #realJSOP
Find a program that you like, and write a program that duplicates its functionality and appearance.
3 Jan 2011 by #realJSOP
It's actually the table that controls this:
27 Jan 2011 by #realJSOP
Homework is assigned because your instructor wants you to learn something. One of the keys to being a good programmer is not necessarily immediately knowing the answer, but knowing how to FIND the answer. Instead of taking the easy way out and waiting for someone to provide you with the answer,...
9 Feb 2011 by #realJSOP
0) Copy the files from one server to the other.1) Fix any issues that come up.Seriously, it should be just that easy, but we have no idea what your requirements are. EVERY migration effort is different.
17 Feb 2011 by #realJSOP
.Net manages CPU use on its own, and you don't have to do anything. Just write your code, and move along.
23 Feb 2011 by #realJSOP
You could run a thread that simply watches the array for changes, and then re-bind the array to the control when a change is detected.Or, you could run an array watcher thread that automatically moves the array into an observable colletion , and let the natural WPF binding mechanism do the...
23 Feb 2011 by #realJSOP
I suppose it's pretty safe to assume that you can't know approximately what block of array elements is most likely to change, so...You could kind of load-balance by divvying up index blocks among several threads. Since the number of elements is variable, I would setup some way to determine...
3 Mar 2011 by #realJSOP
Are you asking for a global variable that holds the current date/time?Any time you need the current date/time, just do this:DateTime now = DateTime.Now;
16 Mar 2011 by #realJSOP
This library might help:nAudio on Codeplex[^]
23 Mar 2011 by #realJSOP
The only thing I can suggest is that you make sure your client app is connecting correctly and that you're actually sending the data that you think you're sending.
24 Mar 2011 by #realJSOP
Personally, I would never use a piece of software that required a dongle be plugged in so that it would run. You'd be better off having it verify itself over the internet, which could be easily configured to allow the software to run a certain number of times without an internet connection...
24 Mar 2011 by #realJSOP
It's also a possible attribute for enumerators :[Flags]public enum MyProperties { None=0, Left=1, Right=2, Center=4, Top=8, Bottom=16, Middle=32, All=64 }Go here for a complete example (and scroll down to the section labeled Enumeration Types as Bit...
5 Apr 2011 by #realJSOP
As far as I know, you can't specify a web page as the source for an image unless you set that page's content type to an image. Since it's probably not advisable to change the content type of an existing page, you should consider getting the actual images that you want to display, and putting...
15 Apr 2011 by #realJSOP
It means that the file you're trying to access from your code has an invalid character in the path name. I'm only guessing because you provided no code or other intelligible info.
20 Apr 2011 by #realJSOP
Why are you defining grid rows and columns when you only have one of each? That's just pointless. Also, the AcceptsReturn property is only useful if it's a multi-line text box. Finally, your problem is caused by the fact that you're trying to use the Popup control in a way that is nt...
29 Apr 2011 by #realJSOP
No. If an application requires an interface, you can't open it from a Windows service (at least not in Vista/Windows 7). In XP (and earlier), you can set the service to "interact with the desktop", and even then, that will only work when a user is logged in.
3 May 2011 by #realJSOP
Wowser! I googled "asp.net publish site", and got back over 7.3 MILLION hits! That is an amazing amount of resources in which you yourself can conduct research. Give it a try.7.3 MILLION results[^]
5 May 2011 by #realJSOP
You can't run another application in your app's window - well, technically you can, but only if your application is a shell for the OS (kinda like the fact that the Windows desktop is actually Windows Explorer running in full-screen mode, or a VM client that runs a completely different OS).
11 May 2011 by #realJSOP
The best way to find sample code is to google itresults for "CRUD entity framework LINQ"[^]
17 May 2011 by #realJSOP
This Codeproject tip/trick may help you:Multiple Subsequent "Main" Forms in C# Apps[^]
13 Jun 2011 by #realJSOP
How are you going to "learn about WPF" if we do the work for you? You already have the requirements. Go forth, and write code. If you need help with WPF, google is a great place to conduct research. If you have a *specific problem* with code you've already written, come baclk and ask a...
1 Jul 2011 by #realJSOP
You simply can't read that much data at once. You're going to have to be more selective iin the data returned from the query. We have a web page that returns no more than 250 records at a time from a 4-million record table.
1 Aug 2011 by #realJSOP
Understanding Interfaces and Their Usefulness[^]What is an Interface?[^]Abstract Class vs Interface[^]I could go on, but you could just as easily have googled ".net interface" yourself and gotten the same 326 MILLION results that I did.
12 Aug 2011 by #realJSOP
The Form has a Loaded event. You can use that handler and enumerate through the controls and if you find a textbox, do whatever you need to do.
14 Aug 2011 by #realJSOP
You're missing some files. Go here [^]
18 Aug 2011 by #realJSOP
You could always change the column's width to 0.
23 Aug 2011 by #realJSOP
Are you storing the config file anywhere other than the user's app data folder?
2 Sep 2011 by #realJSOP
I wrote an article that kinda does that.Synchronicity - A Folder Synchronizing Application[^]
8 Dec 2011 by #realJSOP
Assuming you've implemented an appropriate level of exception handling which isn't showing you where the problem might be...Write diagnostic info to the system log (or a text file). This is going to take a while because unless you have an idea of where/why it's breaking, you're doing to have...
18 Dec 2011 by #realJSOP
How are we supposed to help you? None of the objects used are .net framework objects, so you must have gotten this code from an article or some other library. If it WAS a CodeProject article, go BACK to the article, and ask the question in the article forum area at the bottom of the page.
19 Dec 2011 by #realJSOP
If possible, the TryParse method populates the specified out variable. Before using the out variable, you need to check the retur n value of TryParse which indicates whether or not the conversion was succsessful. The reason TryParse exists is so that you don't have to rely on exceptions to...
13 Mar 2012 by #realJSOP
I wouldn't store a method name in the database. I would store a (numeric) indicator that tells the code which method to use for the delegate. That way, the method name can be changed (if desired/required), and the database doesn't need to (and shouldn't need to) know about it.
1 Sep 2011 by $aikumar$ Cilamkoti
How to Retrive the XML sheet data into windows application in c#.net From XML Form
8 Mar 2009 by Đonny
This article introduces and describes a framework that allows the creation of managed plug-ins for the Total Commander file manager.
31 Jan 2009 by -- Abhi --
An article on how to utilize session variables
21 Sep 2010 by .Net Dada
Hi Everyone,I want to implement the slide show in c# .net with grid view control.Right now I m fetching the data from the database and bind in the Gridview with the page size=1 and then giving the paging to display next.Now i want to do same thing but no with the paging but after...
22 Sep 2010 by .Net Dada
I had just retrieve the data from database and bind it in the grid view with page size =1 and add the next previous buttons to show remaining records.
25 Sep 2010 by .Net Dada
Hey thank you friends, finally i did it and get what i want.Thank you for your support. :-D
17 Dec 2017 by .Net Dada
Hello Everyone,I have project which is in asp.net 3.5 and the code file are in the vb.but i want to convert that vb code into the c#.Is there any s/w that convert whole project or individual file from vb to C#.
26 Aug 2013 by 007himanshu
CLR is Excutive environment of .NET Applications..Net source code converted into MSIL code and then CLR converts machine understanable code by using JIT compliers.CLR takes care about of Code Access Security,Gerbage Collector,Converting compile code to mechine understable...
23 May 2011 by 0905v49
If click on modify then debug ,trace and other entries will go to web config .If u click on second option you can run the application without debugging as it is unable to set debug=true in web config
20 May 2009 by 0x3c0
You can use boolean operators, like the && operator instead of the two 'where' clauses, and the | operator for an OR operation. For example, your first example would be:var results = from items in collection where...
3 Dec 2009 by 0x3c0
This seems like homework. What have you done to narrow down your choices? There's also an article on Wikipedia[^] which may help you
27 Dec 2015 by 0xC0000054
A C# library to host Photoshop-compatible filters in .NET 2.0 and later
15 Nov 2010 by 10Tec, Sergey Gorbenko
Tool for creating MS Visual Studio documentation files - XML Summaries, HxS/MSHC help solutions and manuals.
27 Apr 2011 by 198843
I need this article code. Please help me.
20 May 2011 by 2000 P
Hi, How can we get all the running applications name in an array using c#?I can get all the processes but I want application names in Windows task manager-->Applications window.Thanks in Advance.
7 Jun 2011 by 2000 P
Hi, Is there any good reference available for this kind of scenario? If multiple version of Word or PPT opened, code should able to handle the automation between the documents irrespective of their version. I tried interop assemblies which work with one version at a time. But in case...
21 Jul 2011 by 204.sharma
Dear All, i want to know is there any way to get all shared drives information of a network system.i copying my data from one system to another but it work properly when i open target system using run command but if i close the running system window it gives an error like "login failed...
21 Jun 2011 by 2irfanshaikh
Check this.http://bloggingabout.net/blogs/vagif/archive/2010/04/24/using-t4-templates-to-manage-assembly-version-information.aspx[^]
22 Jun 2011 by 2irfanshaikh
check this Link[^]
29 Jul 2008 by 2sky
Translate a WPF User Interface using the Google AJAX Language API in real-time
29 Jul 2009 by 333mmm
At the bottom I have pasted in an XML file I am working with.   My goal is to query this file using LINQ to XML and have the response formatted as follows:reportDate            alias24         alias392009-05-27         138,385.11     ...
6 Feb 2010 by 4277480
Centralised Exception Handling in C# Windows Application[^]