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 > june 2006 > threads for june 1 - 7, 2006

Filter by week: 1 2 3 4 5

Calculating Interest Payments?
Posted by Charles A. Lackman at 6/7/2006 8:12:28 PM
Hello, I am looking for assistance (or a control - Loan Calculator) that will calculate monthly payments. Here is an example of what I am looking for (a formula would work great). 7.25% for 48 Months Purchase Price: 170,777.64 DownPayment: ...more >>

Converting File Formats (Unix to Windows)
Posted by VC at 6/7/2006 5:35:42 PM
Hi, Greetings. Not sure if this is the right forum..... In case I should visit some other forum please let me know. Does Dot.NET provide a quick method/way to convert a UNIX text file to DOS format? Cheers!!! V ...more >>

Déployement compliqué...help!
Posted by David at 6/7/2006 4:24:45 PM
Bonjour, J'ai développé une dll (un objet COM plus précisément) sous Visual Studio 2005 et je dois l'installer sur un poste client ne possédant pas le framework 2.0. Le poste est en Windows XP SP2 tout simplément. Pour la faire fonctionner, je dois faire un "caspol" sur le répertoire de ma ...more >>

Call extended stored procedure programatically?
Posted by TJ at 6/7/2006 2:51:01 PM
Hi, C# / .NET Framework 1.1 I would like to query extended stored procedure like stored procedure... However, I found that CommandType property does not have Extended Stored Procedure value..... I tried something like.. SqlConnection con = new SqlConnection(....); SqlCommand command ...more >>

FileSystem.GetDirectories
Posted by Mary Ann Kingry at 6/7/2006 1:47:56 PM
Does anyone know in what order the directories will be returned? (i.e. alphabetically or in date order) Thanks ...more >>

Local Report with Object DataSource: BindingList in Table?
Posted by Pieter at 6/7/2006 1:31:57 PM
Hi, I'm using VB.NET 2005 with a Local Report, and I used an Object as DataSource. The problem is: this Objects contains a Generic List (MyArticles, Inherist from BindingList), which contains other objects (Articles). I want a list of these Articles to appear in a table in my report, but I...more >>

ASP.Net Framework 2.0 not showing up as an IIS property page
Posted by Blasting Cap at 6/7/2006 1:05:21 PM
I have installed (and un-installed, and reinstalled) framework 2.0 on a Windows 2003 server. I still cannot get the property page to come up on it. When I run aspnet_regiis -lv on the 1.1 framework folder, I get this: > C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322>aspnet_regiis -lv > 1...more >>

Case sensitive search in the combobox [.Net 2.0]
Posted by Raj Kumar at 6/7/2006 9:46:03 AM
Greetings! I am using a combobox bound to a list of items. The AutoCompleteMode is set to SuggestAppend and the AutoCompleteSource is set to ListItems. The list has items like \\lastname and \\LastName. The control's display and value member properties are set to the same field in the collect...more >>



Best practice for sharing code between ASP and Winforms apps?
Posted by JDC at 6/7/2006 9:44:09 AM
Hi all, I've got a situation where I need to create a Windows Forms application as an admin tool which is driven by the same data as an ASP.NET application. Luckily my 3-tier-ish design means my data and business objects will cope quite well with this, but I'm wondering what the best way to...more >>

Datagridview repositioning rows automatically
Posted by Raj Kumar at 6/7/2006 7:01:02 AM
Greetings! I am using a Datagridview bound to a custom collection [IBindingList] and it shows three columns- one is DataGridViewCheckBoxColumn and other two are DataGridViewTextBoxColumns. The list of the items is displayed in the datagridview and I start checking the DataGridViewCheckBoxCell...more >>

Emitting a Generic Type that has a Generic Base Class
Posted by Patrick at 6/7/2006 6:25:02 AM
Hey... I dont know if its possible but i'm trying to emit a class that would look like this The Base class commes from the code: public class BaseClass<T> { // Whatever implementation... } I want to generate a child class that looks like this: public class ChildClass<T> : BaseClass...more >>

Unable to pass Dictionary class instance over Webservice
Posted by Niranjan at 6/7/2006 5:43:02 AM
Getting serialization error. The class implements ISerializable. Is there any resolution to this. thanks Niranjan...more >>

Referring to Session in a Class
Posted by page77.office NO[at]SPAM googlemail.com at 6/7/2006 5:14:52 AM
Trying to use Session(vars) in a Class so I can persist their access across, mypages for the session. File is Class1.vb In a WebForm 'Session' is available but in a Class it is not I have to precede 'Session' with System.Web.HttpContext.Current.Session(Var) similarly for 'response' (test...more >>

Enterprise Library Configuration failure
Posted by Hodge at 6/7/2006 3:58:29 AM
Logger.Write fails with the message :- "The entry 'Category' has already been added. (C:\\inetpub\\wwwroot\\SIMWebClient\\web.config line 152)" string Source "System.Configuration" string line 152 is the <add line in <loggingConfiguration tracingEnabled="true" defaultCategory="General"> ...more >>

No of Appdomains created..
Posted by BabuLives at 6/7/2006 2:27:17 AM
If i open a exe created in .Net,say 5 instance so how many appdomains will be created??? Thanks in advance.. Regrads, Satheesh ...more >>

Another DataGrid Problem
Posted by chook.harel NO[at]SPAM gmail.com at 6/7/2006 12:52:21 AM
Hi, I have another problem with my datagrid I used the dataSet to retrieve certain columns from the db, one of them is the unique index of the row. but, i don't want the user to see this column, as it means nothing to him but still I want to be able to get the row indext programatically, so I ...more >>

How to deploy this .net dll to staging?
Posted by Loke Kit Kai [MVP] at 6/7/2006 12:00:00 AM
Hi, desperate for help here.... I have develop a .net assembly that is supposed to run in IE, to allow SharePoint to call Microsoft Office Document Imaging up to edit some tiff files. On development machine, I manage to get this to work, with the assembly registered in IE as ActiveX, as shown o...more >>

DateTime.ParseExact weird behavior
Posted by Nick Chakarov at 6/6/2006 7:36:24 PM
Here is the problem I discovered resently. Any idea how to go around? in order to repeat behaviour the date has to be between 1 and 9. No problem with 2 digits date. Let's assume it is June 6, 2006 string s = DateTime.Now.ToString("MMMdyyyyhhmmtt"); // now s looks like "Jun620061220PM" // n...more >>

Cancel Constructor (Me = Nothing)
Posted by Pieter at 6/6/2006 5:20:19 PM
Hi, Most of my Objects have a constructor like this "Public Sub New(ID as Integer)". But when this ID isn't valid, I end up with an instantiated object, that doesn't contain values. Is there a way to kind of cancel the constructor when it detects that there isn't an object with this ID? ...more >>

.NET Framework 2.0 Configuration
Posted by Mike Oliszewski at 6/6/2006 4:44:53 PM
Can someone tell me where to find this on a non development development system. According to: http://msdn2.microsoft.com/en-us/library/2bc0cxhc(VS.80).aspx There should be a %Systemroot%\Microsoft.NET\Framework\version Number\configwizards.exe in .NET 2.0 as well as 1.1, but it clearly do...more >>

MSBUILD: how to find out current folder of imported file
Posted by Sajjad Akhter at 6/6/2006 4:20:20 PM
Hi, Issue at hand is that i want to have common build scripts, but people may be multiple version (source trees) on single machine. How can i traverse parent tree. so what i thought is that i would put ..\env.Build file when it reaches to root (where it knows location of common scripts). ...more >>

Issue with multiple GUI threads on .NET 1.1
Posted by Alexei Adadurov at 6/6/2006 3:56:51 PM
Hello! I am writing a desktop application that uses multiple GUI threads to interact with the user. Secondary GUI thread creates a main form for this thread, having application's main form as its parent and calls System.Windows.Forms.Application.Run() with this newly created form. The pro...more >>

Setup file looking for wrong .NET framework.
Posted by asadikhan NO[at]SPAM gmail.com at 6/6/2006 12:42:32 PM
I had v1.0, v1.1 and v2.0 of .NET framework installed on my laptop and that was causing me a lot of grief. So I uninstalled v2.0 and pressed on with developing stuff in v1.0. Everything was great. I wrote a whole application. After completion I added a setup project. The setup project builds fin...more >>

DefinePropery with instance keyword...
Posted by Patrick at 6/6/2006 11:35:01 AM
Is it possible to Define a property with the TypeBuilder and having the IL code definition use the instance keyword... seems like code generated with the compiler shows this keyword and when i build my own types they dont have this keyword...i use Reflector to check that the classe generated s...more >>

Embedding a resource at runtime
Posted by Dave Brown at 6/6/2006 11:31:23 AM
Hi there. Does anyone know if it's possible to embed a new resource into an assembly at runtime as well as update an existing (assembly) resource. Any assistance would be appreciated. Thanks. ...more >>

Set focus inside a repeater
Posted by CGW at 6/6/2006 11:19:01 AM
I'm using a repeater for editing, but having a devil of a time setting the focus to a textbox inside the repeater. Does anyone have an example of how to do this? -- Thanks, CGW...more >>

GetCustomAttributes(true) not working when on an overriden Propert
Posted by Patrick at 6/6/2006 10:28:01 AM
Hello, I just found out that if i have this code public class A { [MyAttribute()] public virtual int MyInt { get { return 1; } } } public class SubA : A { public override int MyInt { get { return 2; } } } calling GetCustomAttributes(true) on the SubA.MyInt propertyI...more >>

Configuration problem depending on startup method
Posted by erikjblair NO[at]SPAM gmail.com at 6/6/2006 8:08:42 AM
Hi all, This is a little in-depth, so bear with me. I have a client application that uses the MS Config App block. Everything works as expected under normal circumstances and the ConfigManager is able to read items without problem when simply running the app. Here's the issue. We have al...more >>

windows app to retrieve data from asp.net
Posted by Teresa at 6/6/2006 8:05:02 AM
I have an ASP.NET Web App that generating some files in realtime and it does a bunch of other processing stuff. The user then will launch a desktop Windows App to print the files that were generated from the ASP.NET Web App. According to my research I have to either use activex or there is...more >>

Click Once - Additional actions on file download
Posted by Strider at 6/6/2006 6:36:01 AM
Hello all. I have an application that will be deployed remotely on tablet pc's. It uses SQL Server Express for storing it's data. I am planning on deploying the application using click once but I need to make sure first that it provides me with certain features I cannot live without: ...more >>

Problem with DirectorySearcher.FindAll()
Posted by barbutz at 6/6/2006 6:15:01 AM
Hi, I have a method which retrieves all users from Active Directory 2000. The problem is that i don't get all the users but only 1000 users. I've changed the search query limit from the AD itself to 20000 - via the Group Policy and verified also in the registry as instructed from this site ...more >>

BadImageFormatException on framework 64 bit
Posted by Rudy at 6/6/2006 6:11:01 AM
My application uses a win32 DLL (unmanaged code) and it works well with .net framework 32 bit. Now I'm testing it with .net framework 64 bit on a pc with windows XP 64 bit and as soon as the application start I get this error when the program load the win32 dll: System.BadImageFormatException:...more >>

System.DirectoryServices and WinNT provider
Posted by Trevor Lawrence at 6/6/2006 12:00:00 AM
I am trying to clean up the remnants of an old NT4 domain and am trying to create a DirectoryEntry object referring to an NT4 group via the WinNT provider. That part works fine, but I cannot find a way to get the membership of the group. The same kind of operation works fine on members of ...more >>

fuslogvw question
Posted by gs at 6/5/2006 11:21:38 PM
what do the first and last log entries below mean? what do I have to do? LOG: Where-ref bind Codebase does not match what is found in default context. Keep the result in LoadFrom context. LOG: Binding succeeds. Returns assembly from D:\data\IeI\gp\AppCom\IeStringClassProd\IeStringClass\bin\Rel...more >>

Unable to get service to install automatically with custom actions
Posted by Bill Faulk at 6/5/2006 5:52:33 PM
I have not been able to determine why my installer package will not execute the custom actions that create the windows service when my service is installed. I even stuck a service notification message in the ProjectInstaller code and see nothing to indicate it is being executed. For my deve...more >>

Problem with Dictionary<T,U>.Keys enumerator returning invalid keys
Posted by Brian Richards at 6/5/2006 3:21:41 PM
I'm experiencing some wierd behavior with a Dictionary<T,U> class using foreach loops, such that the Key returned in the foreach is not contained in the dictionary. code: Dictionary<A, B> dict; ..... foreach(A key in dict.Keys) { bool foo = dict.ContainsKey(A); //returning false } ...more >>

print selected pages from print preview
Posted by Daniel at 6/5/2006 2:47:01 PM
Hello Everyone, I have to generate all the pages, because at run time we do not know which records will be on each page since the report is databound, but how can I send only selected pages to the printer? Here are some snippets of code: ************************************** Private Sub...more >>

When do you call DataGrid.DataBind()
Posted by Water Cooler v2 at 6/5/2006 1:44:11 PM
Sometimes, you call DataGrid.DataBind() after doing a DataGrid.DataSource = DataSet (or reader) and sometimes you don't. When is it that you have to call DataBind on the datagrid and when is it not necessary? Why is there the difference? ...more >>

Displaying video/images on 2nd monitor
Posted by Tom at 6/5/2006 1:35:56 PM
I want to create an application (.NET C#) to run on a laptop with XP which will allow me to select an image or video on the 1st monitor (I.e.. the laptop's LCD screen) and for that selected item to be displayed in full screen on the 2nd monitor (I.e.. the laptop's external monitor port). (T...more >>

How to intercept IP packet from an application ???
Posted by simtouch at 6/5/2006 12:19:02 PM
I actually need to develop a Firewall. What i want to do is intercept all the IP packets generated by an application running in the same machine as my firewall application. Do you know how to intercept the IP packets. Thank you very much for your help !...more >>

what happen to microsoft.public.dotnet.framework.interop
Posted by gs at 6/5/2006 11:57:59 AM
can't find the group microsoft.public.dotnet.framework.interop. I even tried searching by interop. has it been renamed or merged? ...more >>

Static and non static functions
Posted by Alejandro at 6/5/2006 7:27:58 AM
Is it possible for a class to have a function available both as static and as instance function? ...more >>

Remove unused methods and properties from the assemblies.
Posted by srikanth.tv NO[at]SPAM gmail.com at 6/5/2006 7:25:42 AM
Hi, My application is splitted into more than one assembly. And I want to clean up the methods which are not called or not used among any of the assemblies. And also I want to remove the code for those methods which are not called in any of my assemblies. 1) I want to remov...more >>

DataGrid/DataSet programmer help is needed
Posted by chook.harel NO[at]SPAM gmail.com at 6/5/2006 3:53:06 AM
Hi there, Until today I was working with listviews... but now i need to start working with the DataGrid object to show data from my SQLMobile tables. I would really appreciate if someone could contact me on MSN messanger: chook_rl@hotmail.com I have some questions that i'm sure that for you...more >>

Fuslogvw.exe
Posted by gs at 6/5/2006 12:21:41 AM
I have install visual studio 2005 express visual basic and c#.. I was trying to make use of Fuslogvw.exe to diagnose problems in an assembly. I was able to use the com class assembly in one version of c style software but not a newer version. However, I searched the whole computer as a...more >>

Bug in SerialPort Class NET 2005?
Posted by aayre at 6/4/2006 6:15:59 PM
Hi All, Can anyone tell me if there is a known bug and possible a fix for the SerialPort Class (System.IO.Ports.SerialPort) in .NET 2005? More specificly to do with USB ComPorts? I have found the following: 1) Open a SerialPort which happens to be a USB RS232 converter device. 2) Data can...more >>

.Net Framework 2.0 SerialPort - How do I get win32 handle?
Posted by Dror Hershkovitz. at 6/4/2006 3:50:02 AM
Hello, Topic more or less says it all. I'm using the SerialPort class and need to get the win32 handle of the COM port. Any way of getting it? Thanks in advance. Dror....more >>

what to install
Posted by Terry On Windigo at 6/2/2006 4:29:15 PM
I have been running asp for several years and want to move into dotnet. Do they coexist? Can I just install something additional and then start with some dotnet forms, controls, etc. while I learn, while still doing some asp stuff? ...more >>

Threading problem
Posted by Chris Saunders at 6/2/2006 3:55:53 PM
I'm using System.ComponentModel.BackgroundWorker to do some drawing in my application. The thread seems to run fine but it runs twice and I can't see why. I'm going to show my code with everything that I think is not relevant removed. Perhaps the drawBitmap function can be ignored, I just inc...more >>

Form resource files
Posted by Dave Brown at 6/2/2006 1:08:42 PM
Hi there, Given an arbitrary ".resx" file (not ."resources"), does anybody know how I can identify that this file actually contains a Windows form (in code). Once identified, I then want to collect information about the form and all its controls. Presumably I would want to read this file in...more >>

NetworkService - Could not establish secure channel for SSL/TLS
Posted by Stefan G. at 6/2/2006 8:25:03 AM
hi, we've got a windows service calling a ssl- and clientcertificate secured webservice. running the windows service as administrator works; the webservice-call succeeds. switching the logon to the (preferred) 'network service'-user causes a "Could not establish secure channel for SSL...more >>

Dumb question about application protection/cracking...
Posted by Sigol at 6/2/2006 6:52:01 AM
Hi, If this is a stupid question, please accept my apologies! I want to create 'trial' based software that expires after 30 days unless the user purchases a licence. However, it generally doesn't take long before some smartass has cracked the software and posted in emule/edonkey, etc! ...more >>

Runtime Security Permissions
Posted by Jess.Albert NO[at]SPAM gmail.com at 6/2/2006 6:29:28 AM
Hey All, I've got a program running on a Network share. It works without any problems when I add the \\server\* with Full Trust in the .Net Configuration MMC. I also export this security set as an MSI to be installed for users who wish to run the program. The question is, is that sometimes ...more >>

2.0 is crapping all over my Event Log!
Posted by William Sullivan at 6/2/2006 6:15:01 AM
I keep getting these two error evens in my event log, and I can't find any information on what the cause is: ..NET Runtime version 2.0.50727.42 - CLR 2.0 does not support profilers written for CLR 1.x ..NET Runtime version 2.0.50727.42 - Failed to CoCreate profiler. Fifty million friggi...more >>

Displaying an array of custom classes in Propertygrid
Posted by karen.mcdonagh NO[at]SPAM singularity.co.uk at 6/2/2006 5:10:34 AM
Hi, I have an array of Custom Classes that have three properties which is displayed in the property grid. I would like to make this a bit more user friendly. Has anyone any suggestions or articles I could use to do this. Thanks Karen ...more >>

Is there a Forms collection?
Posted by Water Cooler v2 at 6/2/2006 4:15:43 AM
Is there a Forms collection in the .NET framework that contains the instances of the currently loaded (in memory, whether hidden or visible) forms in the current project? I am looking for something similar to the Forms collection that VB6 had. ...more >>

Dynamically load user.config
Posted by lee atkinson at 6/2/2006 3:34:21 AM
Hi - is it possible to load a user.config file? What I would like to do is to be able to load a user.config file and then set the current properties to the properties within that file. This would then allow the user to download their own user settings. I could of course parse the XML and do ...more >>

install .NET framework 2.0
Posted by magix at 6/2/2006 12:00:00 AM
Hi, Currently I have .NET Framework 1.1 installed in my PC. To upgrade to .NET Framework 2.0, - should I uninstall the .NET Framework 1.1 first , then only install 2.0 ? - After I install 2.0, how can I get it appear in Adminitration Tool ? - why there is .NET Compact Framework 2.0 ? is this...more >>

How do you send a windows message?
Posted by bern11 at 6/1/2006 11:20:11 PM
How do you send a windows message in the .net framework? Creating messages is easy, so is intercepting messages, but I cannot find a .net equivalent to the windows api sendmessage() function....more >>

Mutex issue on NT4 with 1.1 Framework
Posted by Dinsdale at 6/1/2006 4:34:37 PM
I have recently added a mutex to the startup of an application to stop users from opening multiple instances. Works great except the application no longer works on NT4. The error I get is: The Application has generated an exception that could not be handled. Process id = 0x12b (299), Thread ...more >>

How can I tell if a WindowsForms10.BUTTON.... is a checkbox or radiobutton
Posted by Aberro-Bill at 6/1/2006 3:48:02 PM
I am spying on another process and I can tell that the window I am looking at is a WindowsForms10.BUTTON.... but I don't see how to tell if this is a regular button, checkbox or radiobutton. I looked at the window style but this does not seem to use the styles BS_RADIOBUTTON, BS_CHECKBOX, et...more >>

Managing scheduled tasks
Posted by Rob Oldfield at 6/1/2006 12:33:01 PM
What is the best way of managing scheduled tasks? My current requirement is to be able to check on the status of tasks that are supposed to run overnight - mostly to be able to check that they have all completed successfully. I've seen talk about wrappers being available but haven't managed ...more >>

Cannot create new web project on localhost after framework 2.0 install
Posted by slanskye NO[at]SPAM sbcglobal.net at 6/1/2006 10:56:01 AM
Development box has Windows 2000 Server, IIS 5, framework 1.1, vs 2003, sql server 2000 Everything works great until framework 2.0 installed - all I wanted to do was read up on sql server 2005 and BOL requires framework 2.0. After installing framework 2.0, vs 2003 window forms programs still...more >>

Inheriting and Extending internal class
Posted by Paul Say at 6/1/2006 9:57:58 AM
This is the situation I have a base class _Job that has an internal = class PropertyNames (see code ) public abstract class _JobBase { private int _JobId; private int _JobName; public virtual int JobId { get{return this._JobId;} set{this._JobId =3D value;...more >>

Windows Service
Posted by Adam Klobukowski at 6/1/2006 9:46:09 AM
I'm writing a windows service that depends on sql server running. I could add dependency on sql server in service setup, but it can be running on different machine. Can I block in OnStart till sql server is operational? -- Semper Fidelis Adam Klobukowski atari@gabo.pl...more >>

Problematic CodeBase key used
Posted by Gil Lund at 6/1/2006 7:50:02 AM
I'm having a problem with DLL that I'm using through COM interop from VB6. The DLL has some custom structs that are defined as follows. <StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> _ Public Structure ToolEventStruct Public ToolEvent_ID As Integer <...more >>


DevelopmentNow Blog