Christopher Crooker's Q&A profile
Visual Studio Express Editions Invalid cast exception
Is there a simple method of preventing incorrect type input How do you prevent a user from keying in a string when variable is type integer etc I know there must be a simple solution but I am going nuts trying to figure it out. Although I must admit I am really learning lots of other things in the process! First of all, anything that is entered via a textbox is a string datatype which may or may not descri ...Show All
Visual C# How safe is "using"
I've read the documention on using, but it is not 100% clear to me. Consider the following: HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(fileLocation); using (WebResponse webResponse = webRequest.GetResponse()) { if (throwException) { throw new Exception(); } } Will webResponse.Close() be automatically called on exit from the usi ...Show All
.NET Development Remoting vs Web Services
Hi I have been into .NET for Couple of Years but havent implemented anything related to Remoting and Webservices.. Can anyone tell me the Difference between them and what are their main uses with some realtime example Bose.T Hi, I recommend you go through the following articles: 1.) http://www.developer.com/net/net/article.php/2201701 2.) http://www.thinktecture.com/Resources/Articles/REMOTINGVS.ASP.NETWEBSERV.html 3. ...Show All
Windows Forms How to use pics in Controls
How can I use some pics in a User control hosted in html Embeding doesnt work because of security while I retrive the images from assembly Crirus One of the things that would trip up security is if the picture you're trying to  ...Show All
Windows Forms Streaming Files from Binary Files Table in MSM
I stream multiple files from a basic msi during an install. The code works fine. When I use the same code to stream the same files, but from a merge module, in the same install, the first file streams successfully. The second file fails on MsiViewFetch. The call to MsiViewExecute, proceeding the call to MsiViewFetch succeeds. The code is a function that's called for each file that needs to be streamed. I use PMSIHANDLE for all handles. ...Show All
.NET Development My database doesn't recognise me!
I am trying my first app using remoting, it involves an ASP.Net (.NET Framework V1.1) app sending data to SQL Server via a remote object. The object is hosted by a simple command line utility and the communication has been tried via HTTP and TCP. In both cases the database failes to authenticate the remote object (Login failed for user '(null)'). The ASP page is using impersonation to represent a domain user with database access b ...Show All
Visual Studio Team System Deleteing Work Item - Task
Hi After importing the tasks from mpp to team project, I am unable to delete them from the team project even though I have administrative rights. Is there no way of deleting the imported tasks It will make managing tasks very difficult if deletions are not allowed at any stage. Atul Sureka Deleting work items is not a supported feature as part of V1. You can mark the task as closed which will stop it appearing in many of the reports ...Show All
.NET Development Best encryption/decryption for strings
I am looking for the best way to encrypt and decrypt a password. I looked into RSA but it gets too messy when you can only encrypt one letter at a time and get a byte[ ] back etc... Anyone know anything easier whether it is a built-in encryption/decryption or some class typed up from scratch Pref. something where you hand it a password and it encrypts the password into another string and vice versa but is just about as secure as this built in RS ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What differences are they between emptyproject and emptyproject_2005?
apart from the MDX 1.1 and the MDX 2.0beta dll. is there any other differences. i ask because i see emptyproject framework uses dxmut.cs but the emptyproject_2005 uses wdxmut.cs. i'm wondering if i can use the emptyproject_2005 framework and just replace the MDX 2.0 beta dll with the MDX 1.1 dll. will the framework still work i saw somewhere that said the emptyproject was for .net 1.1 and the emptyproject_2005 was for the .net 2.0. if thats the ...Show All
Visual Basic VB6 TextWidth vs .Net MeasureString
Ok - this should be simple - and it should work. I've been strugglingly for 2 hours to get this right, so I decided to whip up two simple examples to see if I could get the same figure from both VB6 TEXTWIDTH and .Net MEASURESTRING. In VB6 - I put this code into FORM_LOAD: Code: Private Sub Form_Load() Form1.FontName = "Times New Roman" Form1.FontSize = 10 Debug.Print Form1.TextWidth("abcdef") End Sub Returns a TWIP value of 54 ...Show All
Visual Studio Team System Which Team System components?
I'm getting bogged down by all the management-speak on the Team System web pages!! Which components do I need for version control over a distributed area (http accessed ). Is it the 'Foundation server' and the VS 2005 Team Dev version VSS is absolutely *not* an option!! ;) Thanks, John Based on customer feedback (and a lot of discontent in the community), Microsoft has said that they will include Team Foun ...Show All
Visual Studio 2008 (Pre-release) Middle Tier Server using WCF
Hi, Please, I need to know if it is possible convert my Middle Tier Server to WCF and how. Using 100% .NET Remoting I wrote a middle tier server named ‘Endomap – Enterprise Domain Application’ to easy administrate connections and application servers. Like an IIS, but only for ‘Smart Clients’, so it is : 1) A windows service (EndoServer) that runs your middle tier Assembly/DLL's in one or more AppDomains. You give your methods the < ...Show All
.NET Development What happens underneath the BulkCopy Object of ADO.NET 2.0
Hi , Does someknow how does new Bulkcopy work in ADO.NET 2.0 What happens underneath because of which the performance gets better with BulkCopy Regards, Anjana Yeah, there should be another event that you can trap the invalid row, similar to the SqlRowsCopied event except you can access the invalid row and possibly try to correct it. It should have the SqlException or whatever as an inner exception, and also be able to spec ...Show All
Windows Forms Populating VB.Net Listview from Access Database
Please, what is the code for populating a Listview with data from a Access DB Is urgent for me. Thanks!! did you say something bad Did they give you a reason ...Show All
Windows Forms Big Problem, I think it's bug
-VS2005 RC -Framework 2.0 release When I close a form with bindining datasource on it, I have this error. An unhandled exception of type 'System.ArgumentException' occurred in System.Windows.Forms.dll Additional information: Sort string contains a property that is not in the IBindingList. Looks like a bug to me as well. This is just a simple workaround: Private Sub Trxns_FormClosing( ByVal sender As Object , ByV ...Show All
