Groups | Blog | Home


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 > february 2008

Filter by week: 1 2 3 4

delegate in interfaces vb.net vs c#
Posted by HelloWorld at 2/29/2008 2:28:51 PM
Hi, I could define delegates in VB.NET code Public Interface Interface1 Delegate Function Abc() End Interface wherer as the following was not allowed in C# interface Interface1 { delegate void Abc(); } what could be reasons behing this being allowed in VB.NET ...more >>


Multiple Solution Template
Posted by Mythran at 2/29/2008 12:51:32 PM
I'm trying to make a multiple solution template suit my needs. So far, it's working out a lot better and easier than expected. What I'm coming up short on is using changing the Project Name and Default Namespace for projects to be something like: Project Name: Blah.Blah.$safeitemname$.$sa...more >>

Saving to excel doc from xml file
Posted by TheVillageCodingIdiot at 2/29/2008 11:19:13 AM
I have a xml file that is being created from a dataset. In xml file is using a xsl style sheet to formate the data. Is there a way to have excel open it, then save it as a xls file programatically?...more >>

Is that a good design?
Posted by Robert Scheer at 2/29/2008 8:43:45 AM
Hi. I could not find an specific group on patterns, so I am posting here... We are trying to develop some patterns to be used on .NET development. An independent consultant recommend us that we start by using the Class Factory pattern to help in isolate our code. Our team though, is compla...more >>

Framework error message on Win2k startup
Posted by Lee M. at 2/29/2008 8:36:07 AM
Just had to do a repair install of Windows 2000 Pro due to a hardware failure. Now I get a message at the end of the Windows 2000 start up that says "Please set registry key HKLM/software/microsoft/NETFramework/installRoot to point to ..NET Framework install location." I don't have NET Fram...more >>

ServiceController on Vista
Posted by archimago at 2/29/2008 7:02:01 AM
I have an administrative program (installed by click-once) that starts/stops a service running on the same machine. The ServiceController class can check the status of the service, but as soon as it attempts to start/stop the service on Vista which has UAC enabled (it runs fine on XP and wh...more >>

Cannot search for updates via the Updates website
Posted by Vanessa at 2/28/2008 11:42:00 PM
I have not been able to install any updates, and now I cannot even search for updates via the website, it just keeps searching and searching. How do I fix this?? -- Regards, Vanessa...more >>

Exception aobut Process.Start function
Posted by 无头老尸 at 2/28/2008 10:40:00 PM
I have written a program A with C#. In Main function, I will run a new executable program B with Process.Start. The code like this Process myProcess = new Process(); myProcess.StartInfo = ...... ....... Process.Start(); In particular case, Process.Start throw a Win32Exception with access ...more >>



RoutedUICommand tricks & tips
Posted by hbrower at 2/28/2008 6:56:00 PM
RoutedUICommands are quite cool. However, I'm struggling with a few issues. 1) the command stops at the first ui element that handles it. Can I actually override that behavior and proprogate it to all elements that want to hear about the command. 2) Can I get data about where it happened? F...more >>

Object reference not set to an instance of an object.
Posted by cow.hammer@gmail.com at 2/28/2008 12:17:50 PM
I'm sorry if this has been answered before. Anyway, my original problem was that I had to reformat the web server a website was hosted on. I backed up all the files (with FTP), then posted them back up when I finished reformatting. I had to hack around some random errors, but now I've hit a wa...more >>

wcf call timeout
Posted by Roy at 2/28/2008 10:19:01 AM
I have a client calling into a wcf service and get the following message: This request operation sent to net.tcp://localhost:9992/MyService did not receive a reply within the configured timeout (00:01:00). The time allotted to this operation may have been a portion of a longer timeout. This...more >>

How to make a copy of a collection?
Posted by Andrew at 2/28/2008 8:40:00 AM
Hello, friends, I need to make a copy of a collection of user defined class, which contains DataTable and other data type properties. However, I don't want to iterate each item. Any better way? Thanks a lot!...more >>

messagebox in class library?
Posted by raju at 2/28/2008 5:39:20 AM
Hai, Is it possible to show the message box with in the class library ( in dll). If it is not possible means please give the reason. Regards, Raj...more >>

.NET Compatibility
Posted by RedLars at 2/28/2008 3:02:18 AM
What .NET version are completely compatible? What I mean is, at our company we have at least one appplication developed in .NET 1.0 that does not work when using .NET 1.1 runtime. The problem apparently lies with changes to an xml class. So in my opinion it's not completely safe to run an .NET...more >>

Working with 32-bit dll in VS2008 on Vista-64
Posted by Flomo Togba Kwele at 2/27/2008 4:08:08 PM
I just upgraded my development machine to Vista 64-bit. I have been working on a solution which includes a third-party DLL which is 32-bit. When I access this DLL, I get the following message: ErrorDescription="Retrieving the COM class factory for component with CLSID {E1DD1DB5-CEAD-4C36-B2E...more >>

async i/o completion routines, threading question
Posted by Mark at 2/27/2008 2:52:00 PM
Hi... We've tried to implement the jabber xep-0124 http tunneling extension using the HttpListener class on the server side (basically other jabber conversations get wrapped in an http request, and the connection gets kept open with 1 request outstanding all the time). We've also tried t...more >>

Public shared function question
Posted by AlBruAn at 2/27/2008 1:40:00 PM
I have four classes named CheckVoucherReason, WriteOffReason, CheckVoucherApproval and WriteOffApproval. In CheckVoucherApproval's function to load values from the db prior to displaying them in the UI, I make a call to a public shared function in CheckVoucherReason to return the verbose de...more >>

Garbage Collection error
Posted by Vijay at 2/27/2008 12:47:02 PM
I am using Visual Studio 2005 to build a console application that fetches data from an external web service When I debug through the project and watch the values in the return object, I always get the following error: "Cannot evaluate expression because a thread is stopped at a point where ...more >>

Getting the real version number of my app?????
Posted by JP at 2/27/2008 12:41:00 PM
Ok someone please explain to me why this works in VS 2003 and not VS 2005 I want the C#.NET version number of the DLL that was created for the specific build of my application. I copied the code from an old C#.NET VS2003 application I wrote years ago. Assembly assembly = System.Reflection...more >>

Error messages and xsd generator in english
Posted by Anton Maters at 2/27/2008 11:40:52 AM
Hi, I used to work on a windows XP machine in English and visual studio 2005 and all worked well. But now i work on a windows XP in dutch and now all messages i get are in dutch. Does anyone know howto configure my .Net environment to output everything in english? With everything i mean d...more >>

WPF context menus
Posted by hbrower at 2/27/2008 11:21:00 AM
How do I trigger the display of a context menu (i.e. system.windows.controls.contextMenu), in c# code (other than simpling setting system.windows.FrameworkElement.ContextMenu)?...more >>

fix the problem - Cross-thread operation not valid
Posted by Petr Jenicek at 2/27/2008 9:50:57 AM
Hello, I have my dll assembly with threads and events. I use this assembly in win form application and information from assembly events want to display in win form control. But this way of using cause exception "Cross-thread operation not valid....." Can I fix this problem in my dll assem...more >>

Stability of VS2008 Comparted to VS2005 SP1
Posted by Aaron Smith at 2/27/2008 8:45:07 AM
Is VS2008 more stable than VS2005 SP1 on large VB projects? We get out of memory exceptions and strange errors throughout the day in 2005 and it's getting annoying. We are all running Vista x64 with 4 gig of ram (quad core processors) and it runs fast and smooth, but every once in a while it j...more >>

Reflection issue after initial ClickOnce deployment
Posted by Raj at 2/27/2008 8:04:22 AM
Hi, We're having a windows application that's deployed through ClickOnce deployement. The deployment is working just fine and the application runs with no problem. We have logic that load assemblies and the resources (e.g. XML files added to the assembly as resources) at the beginning of ...more >>

Click-once deployment - certificate problem
Posted by Arne Garvander at 2/27/2008 7:35:04 AM
I have a .net 2.0 winforms application. I have a self created certificate and I can publish. I am trying to train a second team member to publish my app. When the second team member tries to publish, VS 2005 ask for a password. How can I reset the password on my self-created certificate? How ...more >>

problem with excel
Posted by AVL at 2/27/2008 6:11:01 AM
hi, i'm facing a strange problem.. In my requirement , I'm suppose to load the data from datagrid into excel file. make the required changes in the file and load the file back into the datagrid. i'm able to export to excel but after i make changes in the excel and load it into grid,...more >>

Identify property/object type
Posted by Vikram at 2/27/2008 4:50:06 AM
Hi, Using refelction how to identify property of a object is of type: 1. Native i.e. string, int, boolean etc. 2. User defined calss 3. List/collection type Thanks...more >>

VB6 Deployment of .Net Framework 2.0?
Posted by BigJohn at 2/27/2008 4:46:02 AM
I am adding a COM .Net 2.0 object to my current VB6 Package and Deploy stack. I know I need the .Net Framework 2.0 deck somewhere in the setup.lst file. Which file an where should it be placed? I assume the .Net Framework 2.0 Distributable is needed. Should this be placed in the bootstra...more >>

comparing object values
Posted by Vikram at 2/27/2008 2:04:03 AM
How to compare value of two objects. Is there any generic way by which we can compare value of each property of the 2 object of same type. Also if the porperty is of type object then it should also compare value of subsequent poreties in that obejct property. Thanks...more >>

multiple base classes workaround
Posted by Nigil Chua at 2/27/2008 1:15:25 AM
Hi Guys, I would like to inherited the MethodCls for both MasterPage and Page But got the multiple base interface exception. pubilc class MethodCls { } public class Master:System.Web.UI.MasterPage,MethodCls { } public class Page:System.Web.UI.Page,MethodCls { } My Closest is ...more >>

disable popups
Posted by shirar18 at 2/26/2008 1:04:02 PM
When I click on any .doc files on my website a window pops up asking if I want to 'open' or 'save' the file- Is there a way to disble this window so the document will just open when I click on it? -- Shira...more >>

Instantiate complete object through reflection
Posted by Ericd at 2/26/2008 9:49:14 AM
I am trying to perform a funciton that is best described as instantiating a class and its complete list of subclasses by reflection. I would like to pass this newly instantiated class (that does not have its subclasses instantiated) into a routine that instantiates all subclasses. Say this...more >>

Unexpected release of named mutex
Posted by carl.clawson@pkinetics.com at 2/26/2008 8:54:01 AM
I have a mutex that releases while I am still holding a reference to it! Maybe this is "garbage collection 101" and this old C++ programmer just needs to get used to it... Here's a boiled-down snippet of VB I used in order to implement a single-instance app. (I can't use the application framew...more >>

cpu usage on multiple core system below 100%
Posted by herpers@wiso.uni-koeln.de at 2/26/2008 8:24:33 AM
Hello, I have a question about threads. I wrote an application which uses threads to do some calculations. The threads are started using the Thread-class and ParameterizedThreadStart-Class. On a single core system and even on a dual core system there is no problem getting the cpu usage to alm...more >>

Datagrid to excel
Posted by AVL at 2/26/2008 12:46:02 AM
Hi, I;ve a requirement wherein the need to export the data from grid to excel file using .net 1.1.. While I do the export to file, sfew columns in teh excel file should be locked, in the sense..use shouldn't be able to edit the values in those columns... is this possible thru C#? any samp...more >>

difference between UserProcessorTime, TotalProcessorTime and PrivilegedProcessorTime
Posted by herpers@wiso.uni-koeln.de at 2/26/2008 12:28:04 AM
Hi, I read some documentation and web pages about UserProcessorTime, TotalProcessorTime and PrivilegedProcessorTime, but I still can't tell, what the difference between those is. I know that TotalProcessorTime is the sum of the other two, but what is the difference between User- and Privile...more >>

Regex help Again
Posted by barry at 2/25/2008 8:02:24 PM
Hi 1 str = "Hello World !!!" kindly help in removing extra spaces from the above text 2. str = "THE QUICK BLACK FOX JUMPED OVER THE LAZY DOG" and to change first letter of above to caps. TIA Barry ...more >>

Socket.BeginConnect works in Synchronous mode!!!!!!!!
Posted by leon at 2/25/2008 9:22:51 AM
Hi Strangest thing happened, the asynchronous command Socket.BeginConnect, start behave in a Synchronous !!!! mode. Here some code: try { _CountPackets = 0; IPAddress ipAddress = Dns.GetHostEntry(IpServer).AddressList[...more >>

Repost - MVP Needed Please - MailMessage and Authentication
Posted by Justin James at 2/25/2008 7:55:06 AM
Hello - I am seeing some truly odd behavior when trying to authenticate against an SMTP server using the System.Net.MailMessage object to send email. In a nutshell, the SMTPClient object is sending this double CRLF pattern before receiving the responses to previous commands, and then immedi...more >>

Access Child Method From Master Page in C#?
Posted by Nigil Chua at 2/23/2008 4:47:56 PM
Hi There, I know I can access a Master Page Method From Child Page by Using (ClassName)Page.Master on the child Page. but how do I have access a Child Page Method From Master Page. Does anyone know how should I go about on it? Best Regards, Nigil Chua ...more >>

In memory Metafile
Posted by Marco Rego at 2/23/2008 4:34:00 PM
Please, how do I create an in memory Metafile ? Which device context should I associate it to ? Thanks for any help. ______ Marco...more >>

Serialization of ICollection(of t)
Posted by Sid Price at 2/23/2008 1:39:41 PM
I have a VB.NET 2005 class that implements ICollection(Of t): Public Class SignalCollection Implements ICollection(Of VM_Signal) Public Sub Add(ByVal oSignal As VM_Signal) Implements ICollection(Of VM_Signal).Add .... End Sub .... End Class It implements all of the necessary m...more >>

update of workflow / activity implementation, what happen to persisted instances?
Posted by newsgroup.poster@gmail.com at 2/23/2008 12:27:14 PM
I'm managing an existing application, the source code is laid such as (in multiple solutions): - business model entities dll - workflow activities dll - workflow implementation dll (which contains a single state machine workflow) - a web application - a web service managing workflow instances...more >>

SignedXml.CheckSignature very slow!
Posted by Ulrich Proeller at 2/23/2008 7:23:01 AM
When trying to verify the signature of a SignedXml object, the call to SignedXml.CheckSignature(rsaKey) takes up to 20 seconds. Obviously this happens only, if the machine on which the code is running is member of a windows domain. I tried to debug into the .NET Framework code and found, that...more >>

pop-ups
Posted by whisky at 2/23/2008 3:13:00 AM
Hi, this inquiry is about (3) item,s that keep coming up on my pc maybe there will be someone in this disscussion group that can tell me what they mean and if they pose a danger to my pc so far msn has been of little or no help at all. these are the item,s (Tcip,netbt,715e365-8f65-4ffe-...more >>

Windows XP won't load
Posted by SoccerBoy73 at 2/22/2008 7:15:00 PM
When I turn off my computer and/or restart, it never gets past the boot stage. I get a fail message : "PXE-E61 Media Test Failure, check cable" . Then : PXE-M0F Exiting Intel Boot Agent". I'm able to start up my computer sometimes by placing the XP operating system disk and booting from the...more >>

Regex Help needed (New)
Posted by barry at 2/22/2008 7:11:26 PM
Hi <IMG style="FILTER: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/images/IconExperience/ApplicationBasics/16x16/shadow/edit.png', sizingMethod='scale'); WIDTH: 16px; HEIGHT: 16px" height=16 src="images/PNGPH.gif" width=16 align=absMiddle border=0> Here is a update to my pre...more >>

Problem displayinmg images on local webpage
Posted by barry at 2/22/2008 5:42:20 PM
Hi I have programmatically downloaded some webpages and modified the src url of images to point to a local folder, the webpages are displaying .gif and .jpg images but not .png, what could be the reason this? Barry ...more >>

Overriding Dictionary Item method
Posted by Arthur Dent at 2/21/2008 10:09:25 PM
Hello all... I have a class which inherits from the Generic Dictionary class. I want to "override" the Item property. I know it is not technically Overridable, so I marked my property as "Shadows". Here is the relevant code... Public Class MyClass Inherits Dictionary(Of String, Integ...more >>

Help in Inheritance, I am new to it.
Posted by Nigil at 2/21/2008 7:09:13 PM
Hi Guy, I am having issues casting my _Propery back to the _User. Can someone kindly advise me. Following is the code. using System; class Property { private string _Name=""; public string Name { get {return _Name;} set {_Name=value;} } } class User:Property { priva...more >>


DevelopmentNow Blog