Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
all groups > dotnet framework > june 2007 > threads for june 8 - 14, 2007

Filter by week: 1 2 3 4 5

Exchange 2003 API Manipulation with C#?
Posted by lucius at 6/14/2007 5:08:28 PM
Looking for code samples to create/remove/manipulate Public Folders on Exchange 2003. Thanks. ...more >>


RegEx: How to ignore the number of whitespaces?
Posted by Florian Haag at 6/14/2007 4:29:42 PM
Hi, I'm not sure whether this is the right group; I'm trying to achieve the following with .NET's RegEx class: I want to match strings while ignoring the number of whitespaces. In a simple case, this would of course mean something like a\s+b which would match not only "a b", but also "a ...more >>

What Event Occurs When Someone Leaves Your Web Site?
Posted by Ross Culver at 6/14/2007 2:55:43 PM
I need to ensure that session variables are removed whenever someone leaves my web site. My understanding is that this should be happening automatically with the session mode set to InProc. But it's not. Every machine I'm testing this on does the same thing, but then again, everyone is us...more >>

Deserialization Problem CLR 1.1.4322.2379
Posted by SpruceSB at 6/14/2007 2:51:53 PM
We have an application (VS 2003) that uses binary serialization / deseralization with formatter surrogates for some features. It works ok on CLR Versions 1.1.4322.573, 1.1.4322.2032, and 1.1.4322.2300 however on CLR Version 1.1.4322.2379 it receives the following exception during deserializ...more >>

Emitting entire class from source
Posted by thomas.greenleaf NO[at]SPAM gmail.com at 6/14/2007 2:11:03 PM
Some time ago I wrote a simple reflection.emit example where I emitted an entire assembly based on source code. Now I forgot exactly how and all examples online deal only with defining a class through reflection methods, defining a method and then finally emitting IL for that specific method. ...more >>

ODBC and C# Express edition
Posted by Colin Williams at 6/14/2007 1:41:19 PM
Hi I have some paradox db's i need to connect to. I have figured out that i can do this using ODBC, however C# Express edition does not support this connectivity easily and must be done programmatically. I have a class to do this: public static class Data { public const string...more >>

What was wrong with this MS sample?
Posted by Andrew at 6/14/2007 11:23:02 AM
Hi, guys, When playing with the sample source code for WCF service at http://msdn2.microsoft.com/en-us/library/ms730935.aspx, I got an error: The contract type Microsoft.ServiceModel.Samples.CalculatorService is not attributed with ServiceContractAttribute. In order to define a valid co...more >>

VS 2005 does nt see 3.0 Framework
Posted by andrewcw at 6/14/2007 8:52:01 AM
I have checked the regsistry & the add/remove programs for correct installation of 3.0 but the 3.0 .NET framework does not show up in my VS 2005. What do I do to make VS recognize 3.0 ?? Thanks -- Andrew...more >>



Office 2003 Dictionary
Posted by MungMan at 6/14/2007 8:49:00 AM
I have a document that I wrote in English and now for some reason when I try to spell check it my system is using a French dictionary. I checked MS Offcie 2003 Language Settings and the only enabled languae is English (US). I had this problem once before accidentally figured out how to change ...more >>

Problem after installing some windows updates (935839,929123,935840)
Posted by Solhar at 6/14/2007 5:35:15 AM
Hello all. This morning one of my applications stopped working. The error message I'm getting if this one: System.Net.Sockets.SocketException was unhandled Message="The handle is invalid" Source="System" ErrorCode=6 NativeErrorCode=6 StackTrace: at System.Net.Sockets....more >>

Dynamic debugging problem
Posted by alexis.meilland NO[at]SPAM gmail.com at 6/14/2007 4:58:41 AM
Hello, Well, I have a problem with a dynamic debuging. My program is winform program written in Managed c++. I compile dynamically a dll in vb.net. It works well. To execute a function in my dll I use the invoke function. It works well. However, I would like, if there is a runtime error...more >>

image (bmp) to PCL
Posted by Yourik at 6/14/2007 12:30:01 AM
We are trying to convert an image into a PCL format but unfortanately our efforts are not paying off. The reason for this conversion is because we would like to print on a continuous paper (on dot matrix printers) but if we send the data directly the printer does not recognize the end of the p...more >>

Messenger-Esque Windows Service: How Do Major Messengers Do It?
Posted by Alex at 6/14/2007 12:20:27 AM
I am fairly new to .net development. I have read a number of articles about developing messenger applications, but they all assume that it is operating internally and that the IP address of the client is known. I would like to develop a messenger-esque service that will communicate live database...more >>

How to customize the Label and set the property of AutoSize to False?
Posted by Ryou kaihou at 6/14/2007 12:00:00 AM
Hello All, As we known, in Visual Stdio 2003 or 2005, the property of Autosize is set to True by defaut, how can I customize this and set property of Autosize to False? Any ideas? Thanks ...more >>

Create a tab delimited text file
Posted by shantanu at 6/13/2007 9:46:14 PM
Hi all I have two coloumns in a excel worksheet where the first coloumn is a header and the second coloumn is a corresponding value. Also i have a text file That contains header and values in a tabdelimited format. Now the requirement is like I have to compare the Headers in excel with the h...more >>

Invoke a remote button on a web page
Posted by shantanu at 6/13/2007 9:19:40 PM
Dear All I have a very urgent requirement if somebody can help!!!!!!!!!!!!!!!!!!!!!! i have a requirement to upload a file through a remote web page. Speaking more clearly i have a excel addin that will pick some values from the cells and create a text file, after that using a web page url...more >>

Microsoft Outlook
Posted by Woody at 6/13/2007 4:25:00 PM
I am aware how to divert incoming email from particular sources to designated folders using the 'create a rule' procedure. However, is it possible to have emails I send to particular people, go to specific folders and not all go to the default 'sent' folder?...more >>

Deploying App on one PC for multiple users w/ClickOnce
Posted by Kerry at 6/13/2007 3:44:02 PM
Hello, I have a Framework 2.0 application that needs to be deployed on a PC with more than one user using ClickOnce. But it seems that once its deployed for one user when the next user signs onto the PC the application is not available to them, the app needs to be installed again. Is there no...more >>

Policy Injection Application Block asp.net Caching
Posted by joyce at 6/13/2007 12:45:15 PM
if I use enterprise library to do asp.net caching, should I still use session variables? thanks, Joyce ...more >>

Tracing in c#
Posted by aks at 6/13/2007 11:57:01 AM
I've configured Trace switch in my app.config file: DebugLevel = new TraceSwitch("DebugLevel", "Trace Level for Entire Application"); and have created and initialized a trace listener in my application code: FileStream m_Stream = new FileStream(m_logFile, FileMode.Append, FileAccess.Write);...more >>

Need explicit OleDbCommand Dispose() for volume queries
Posted by Guy at 6/13/2007 11:21:02 AM
My application process records...lots of records. I typically read 85K records from one Ms-Access table, then for each records of that table , I have to read 3 others tables (in separate Ms-Access DB) having hundreds of thousands records each, then I insert even more records in to another table,...more >>

Office 2003 PIA redistribution.
Posted by Philip Galea at 6/13/2007 9:38:04 AM
Hi, We have developed an addin for our software which required the Office 2003 PIAs. Now we have downloaded the Office 2003 PIA redistributable (O2003PIA.EXE) which is a signed self extracting ZIP. Having read the documentation contained within this it suggests we can wrap the MSI ...more >>

Installing .NET Framework 3.0 without Internet access
Posted by JM at 6/13/2007 8:00:00 AM
I am trying to install the .NET Framework 3.0 on a system that does not have internet access. I have searched my MSDN subscriptions and can only find deployments that want to access the Internet. Even my DVD version requires the internet. I cannot connect the development system to the Int...more >>

Configuration API
Posted by eXavier at 6/13/2007 6:45:00 AM
Hello, I was looking for specific feature in Configuration but I failed. What I need, is to set up custom configuration loader - we do not use .NET Configuration normally for server applications but trying to employ WCF we need to register into ConfigurationManager (or WebConfigurationManager...more >>

How to give a button click should uninstall the application itself
Posted by B.N.Prabhu at 6/13/2007 5:55:37 AM
Hi, I have a doubt, can we able to give an option(button click) should uninstall the application itself. I am using an .Net windows application. In that application we have a button(Uninstall) that should uninstall the application. Can we do this one. by, B.N.Prabhu....more >>

Framework runtime environment
Posted by raju at 6/13/2007 1:13:24 AM
Hai, I have one doubt about .net runtime environment. Whether each .net application having its own runtime environment or one runtime evironment will manage all the application. For eg., if we run one java application, java.exe file will run for each application. we can see...more >>

Object memory allocation
Posted by polymedes at 6/13/2007 1:13:15 AM
Is there any tool that I could use to examine what objects are taking memory on the heap? I'm running into problems discovering which of my objects are not garbage collected and why. I think a Heap Analysis Tool would help. ...more >>

.net Runtime 2.0 error reporting
Posted by James Wong at 6/13/2007 12:00:00 AM
I am currently facing a .net Runtime 2.0 error when running my application. The .net error pops up randomly and just kills my application by saying .net runtime error. i cannot really figure it out what the actual problem is. the event log shows the following description: Faulting applicatio...more >>

XAML and binding problem
Posted by Lloyd Dupont at 6/13/2007 12:00:00 AM
I'm trying to create a subclass of Slider which slide from one color to the next and has a gradient brush background. The C# code has 2 new properties: StartColor, EndColor The XAML code is the following: ================== <Slider x:Class="TransparencySlider.ColorSlider" xmlns="http://sc...more >>

stackpanel is and autosizing a ListBox
Posted by Lloyd Dupont at 6/13/2007 12:00:00 AM
I have managed to make a ListBox where the scrollbar is replaced by up = and down button with the code below: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D <ListBox Width=3D"100" Height=3D"100"> <ListBox.Resources> <Style TargetType=3D"{x:Type ScrollViewer}"> <Setter Property=3D"Template"> <Set...more >>

Version of .net framework used in Visual Studio 2005
Posted by kanpeter NO[at]SPAM graduate.hku.hk at 6/12/2007 11:05:33 PM
Hi, Can any expert here tell me where can I specify the version of .net framework used in each project Visual Studio 2005 ? -- peter ...more >>

Immediate Execution of Csharp Code?
Posted by Leon_Amirreza at 6/12/2007 7:34:54 PM
Hi, I want to let user type a line of C# code in a textbox and execute it. How can I do that? I need something like interpreter of C# rather than its compiler. I considered using CSahrp and CodeDom namespaces but they seem not suitable for my purpose because: 1- It needs a complete win f...more >>

Starting from scratch with .Net Framework -- Where to begin?
Posted by Alex at 6/12/2007 4:44:59 PM
Hey Guys, I'm about to take a job where I'll be doing .net programming, however my forte to date has been more along the lines of web programming with ColdFusion, PHP, etc. The last time I did application programming was back in the MS-DOS days with C++, Pascal, and Basic. The company will ...more >>

Profile Property
Posted by Madison at 6/12/2007 12:13:01 PM
Hi All, I try to define profile in web.config as below <anonymousIdentification enabled="true"/> <profile enabled="true"> <properties> <add name="logon" type="string" allowAnonymous="true" /> <add name="rule" type="string" allowAnonymous="true"/> </properties> ...more >>

ContextSwitchDeadlock was detected
Posted by Sriman at 6/12/2007 10:49:00 AM
Hi, I believe this is a framework level issue. I am not sure. Pls help me. Developement Evn: ================ Vb.net 2005( framework 2.0) Error: ========== ContextSwitchDeadlock was detected Message: The CLR has been unable to transition from COM context 0x1b2938 to COM context 0x1b2aa...more >>

calling .net 2.0 assembly from .net 1.1
Posted by linda.chen NO[at]SPAM faa.gov at 6/12/2007 8:45:49 AM
One of our coworker created a dll for us, which is written in Visual Studio .NET 2005 (VB). I tried to add the dll to our .NET 2003 project, and get the follow error: "A reference to "MyDLL.dll" could not be added. This is not a valid assembly or COM component. Only assemblies with extension"d...more >>

delete a file to recycle bin
Posted by Sandeep Thoppil at 6/12/2007 5:51:03 AM
How do i delete a file to the recycle bin using vb.net 2005? -- Sandeep Thoppil...more >>

How to share source code files between projects?
Posted by Magnus Bergh at 6/12/2007 12:00:00 AM
How should I share source code between different projects? In this case it is one solution with multiple projects where some source files I want to share (including the dataset classes). I thought this would be easy, put the files in one directory and make a link to each file, however this...more >>

How to detect what version of the framework you are running in?
Posted by VistaDB at 6/11/2007 11:50:21 PM
I cannot figure out how to detect what version of the framework my app is running under. If we are under 64 bit Vista there is a special registry subkey, ok great. But now I am getting reports from users that a Creative Labs driver is creating the hive under Vista32 and XP 32 at install. So ...more >>

Getting the Windows Password in an ecrypted form
Posted by buerklma NO[at]SPAM arcor.de at 6/11/2007 11:34:12 PM
Hi NG, is there a way to get the Windows Password of a user in an encrypted form? In my logon process I want to check the current (windows) user and password. If they fits no logon screen will be displayed and the program starts. Has somebody an idea how to get it? Thanks in advance ...more >>

Exporting classes to .Net world from a regular DLL
Posted by Note Myself at 6/11/2007 10:41:15 PM
I am writing a C++ library. I know that I can export classes through dllexport keyword. However, we also need this library to be accessible from ..Net applications. Our original plan is to package it using COM. Is there a way to expose these classes without adding COM layer? Thanks ...more >>

WHEN to load assemblies dynamically
Posted by Roger Tranchez at 6/11/2007 9:17:00 AM
Hello, I'm confused about WHEN to load assemblies dynamically. While I was studying my Win MCTS I did some practice with small pieces of code, but not understanding the WHAT FOR concept for it all: I will explain my little problem: I'm developing a little network app (APP1) that will be ...more >>

Process.EnableRaisingEvents = true causes exception on Win2K3 SP2
Posted by George Davis at 6/11/2007 9:16:03 AM
I have a class in my application that monitors for a few given processes going up or down so that the user can be shown visually that something is wrong. This class works fine for Windows 2003 SP1 but as soon as I apply SP2 I get many exceptions like: System.ComponentModel.Win32Exception: ...more >>

Location for References in projects
Posted by Roger Tranchez at 6/11/2007 4:33:00 AM
Hello, I have a question wich I should already now its answer, but here I go... I 'm developing a windows application (.NET 2.0) wich has a reference to a component (a tlb file) that resides on a certain place in our local network; let's say it's ... \\serverapp\SIGRID2\Sigrid.tlb Th...more >>

Books on .Net
Posted by Gabriele at 6/11/2007 2:07:07 AM
I would like to learn .Net framework in order to develop an hybryd system. I do have solid knowledge of general programming with some languages. I may need information about: Desktop GUI programming on .Net Web Application development with Asp.Net Handling Database with .Net DBMS used is ...more >>

control focus
Posted by AVL at 6/11/2007 1:26:01 AM
Hi, I want to set focus on a textform when my form is displayed to the user. I've set tablndex of textbox to 0 and tried the textBox1.Focus()..but still the text in the textbox is not being hightlighted... how shud i proceed...more >>

log4net implimentation in a DLL ..???
Posted by Jaddu at 6/11/2007 12:00:00 AM
HI All, Here is my problem: log4net works fine with my Client (Windows Application .Net 1.1) but does not log any thing when i use it in my server (Com+ DLLs). Does any one know why or how to make it work. Thanks in Advance Harish ...more >>

How to detect file readed
Posted by Enosh Chang at 6/10/2007 9:29:55 PM
Hi all, I want to monitor one directory (and its subdirectories) in local machine. How can I detect who and when reading files? I used System.IO.FileSystemWather, but I couldn't get an event who is reading. My environment is Windows 2003. Thanks for any advice. Best Regards Enosh Chang ...more >>

Problem with IE 7 and outlook express
Posted by Glen at 6/10/2007 11:48:01 AM
IE & will no longer download files, if i try to save a file the destination is not available in the download box and then an error message appears saying unable to download. In outlook express i can not open a word doc attachment (for example) if I save as and move the file I can then open it ...more >>

Adjusting components size by text and font
Posted by Oron.Morad NO[at]SPAM gmail.com at 6/10/2007 11:17:24 AM
Hello, I develop C#.NET (WinForm) over 2003server. I am looking for a way to adjust a component size (width pixels) according to a given text of a certain font (i.e font family, size and style) Lets say i have a sentence(english or hebrew), i want the textbox to expand and minimize if i ch...more >>

Output files from a Console App Build
Posted by Alex Maghen at 6/10/2007 8:20:00 AM
Whenever I build even the very simplest application in C# (for example, a console application which doesn't add any controls or anything), in the Debug output directory I get three files: - App.exe - App.pdb - App.vshost.exe What are the last 2? Do I need them to run my app properly? Al...more >>

Scripting under .NET
Posted by Alex Maghen at 6/10/2007 7:57:00 AM
Hi. Is there any kind of engine that comes with .NET to allow me to create a file which JIT compiles and runs as a "script" in Windows? Meaning, is there a way to do this where I don't have to build a whole Project and everything but I can still create something in C#? Alex...more >>

Microsoft Outlook online and vista
Posted by JamieSue0625 at 6/9/2007 6:11:02 PM
I currently have two email accounts that both use microsoft outlook web access.. The one account I can use perfectly, the other account I can only read emails. Why? When I reply, it has an error (it looks like a sheet of paper with a red x in it). My security settings have been changed to t...more >>

Tracking changes on specified file
Posted by krystiankow NO[at]SPAM gmail.com at 6/9/2007 2:49:14 PM
Hi I need to precisely track changes on a specified file. I have to be able to know exactly what bytes of a file had been modified (or how much added/deleted). This file is a binary file containing an old database, changes on it are made by an dedicated DBMS. I found FileSystemWatcher class b...more >>

Saving a panel to a Graphics (Printing)
Posted by she_prog at 6/9/2007 10:58:26 AM
Dear All, I need to save the content of a panel to a bitmap. The panel can have many child controls which also need to be saved. The problem would be solved if I could have the panel saved to a Graphics object, which is the same as if I'd need to print it. It'd be easy using Control.DrawToBit...more >>

RichTextBox RTF Hyperlinks
Posted by Nathan Franklin at 6/9/2007 12:00:00 AM
Hello, I am using a RichInk Implementation for the compact framework and I am copying the PWI data over to the desktop and converting it to RTF format by streaming the data out using the RICHINK.dll library. The RTF data I retrieve out of the PWI data is the following: {\rtf1\a...more >>

ASP.Net problem with process.start
Posted by Steve B. at 6/8/2007 2:44:25 PM
Hi, I've build a custom web service that is used to digitally signed cab files that are used to install smart devices application. Using a standard Process.start and processstartinfo pattern, I run this command line : filename : c:\Program Files (x86)\Microsoft Visual Studio 8\Common7\...more >>

how to simulate a different time zone?
Posted by Ricardo Quintanilla at 6/8/2007 12:07:00 PM
¿is it possible by code to simulate that i am in a different time zone just for to execute a few lines of code? in my case i am in the time zone "Santiago/Chile" which is GMT-04, but for to execute a few lines of code that demand time zone "GMT 0" i need to change or simulate de time zone "G...more >>

logging debug messages
Posted by byaarov NO[at]SPAM yahoo.com at 6/8/2007 10:48:28 AM
How do I display debug messages from a Win32 application project (visual studio c++). I'd like to print the messages in the output window of visual studio ...more >>

.Net substitute for the Borland TMediaPlayer control
Posted by WayneM at 6/8/2007 6:17:00 AM
Hi, My client has an existing project done in Borland C++ that I was wanting to port to .Net. Most of seems fairly easy to move over except that it uses (heavily) the Borland TMediaPlayer control for: - playing small music files (currently stored as MP3s) - at the same time listening to th...more >>

How should user scripting for a .NET app be implemented
Posted by Terry Griffin at 6/8/2007 6:10:00 AM
We need to add the ability for users to execute scripts for our application, which runs a scientific tool. The users will be scientist, not professional programmers. A few years ago I would have used the Active Scripting objects and supported JScript scripts accessing our app's object model. ...more >>

winforms + resize
Posted by AVL at 6/8/2007 5:01:02 AM
hi, i'm a newbie to winforms.. in my application..i've created a main form.. i show the other forms as dialog form on click event of buttons of my mainform ... but, here is a small problem..the forms which i show as dialog are resizable.. I can drag or shrink the form..which i dont to happen....more >>

deriving from Byte[] in C#
Posted by EnerPeter at 6/8/2007 12:46:01 AM
Hi all, is it possible to derive from an array type - in my case from Byte[]. The purpose is to override the ToString() of Byte[] method in such a way that it results in a string representing the Byte[] as a 'normal' string - i know that only legal ASCIIs are in the array - and not resulting ...more >>


DevelopmentNow Blog