HFa's Q&A profile
Windows Forms Binding 2 dim grid in DataGrid
http://www.codeproject.com/cs/database/BindArrayGrid.asp ...Show All
.NET Development SqlConnection / SQLTransaction issue (.NET 2.0 BETA 2)
Has the way SqlConnection and SqlTransaction works changed for BETA 2 I can't find anything but the following code no longer works and throws a "Connection Closed" exception when conn.BeginTransaction executes, even thou conn.Open() seems to work. Cheers Simon using (SqlConnection conn = new SqlConnection(dbConString)) { conn.Open(); using (SqlTransaction trans = conn.BeginTransaction()) & ...Show All
Visual Basic Zipping Files or Compressing them
Does anyone know how I could zip some files through a program, or compress them somehow I am trying to make a program to back things up, and I don't even know where to begin. Yes ! Funny you should ask but there are fine classes, System.IO.Compression which will compress and decompress. Data is compressed into a byte stream and then serialized to disk. The reverse occurs for decompression by reading f ...Show All
Smart Device Development a problem when using 'Bitmapdata' in cf2.0
hi, I just updated to vs 2005 as I wanna to develop a application in a pocket pc 2003 in cf 2.0 (because I want to use Bitmapdata to manipulate image), however, I still got this error when I try to use bitmapdata: Error 7 The type or namespace name 'BitmapData' could not be found (are you missing a using directive or an assembly reference ) C:\Documents and Settings\Ray\Desktop\1\ImageProcessing.cs 18 13 and I alre ...Show All
Visual Studio Team System New team projects and documents on SP Services...
When I create a new Team Project from within VSTS2005, why can't I check out documents just like I check them out on SharePoint Services Thank you, Sammy Presuming you mean from Team Explorer, check-in/check-out of documents from Windows SharePoint Services is not supported in this version. ...Show All
Smart Device Development Storing User data
Hello, How would I create a text file in the default installation folder of a program on a pocket pc I want the user to not have to specify where the file needs to be saved. I'm trying to use it to store data, that the user could then print using a standard text editor on pc. When using the full framework I always used: "my.computer.filesystem.writealltext(my.computer.filesystem.specialdirectories.mydocuments & "\data.txt, lnghow ...Show All
.NET Development 2D array with non zero index?
Is there anyway to create a 2-D array that starts off with index 1 in both dimension I read that it was removed in VB.NET. My COM object require an object with such array. Any idea how it can be done [vb.net 2003 user] ...Show All
Visual Studio Team System <REQUIRED/> rule is not working.
Hi I am trying to put the <REQUIRED/> rule for a field in particular state (closed) so that it can't be kept empty while closing (i.e changing state to Closed) the work item. But it seems to be not working i.e. one is able to Close without anything entered in that particular field. First I tried putting it under <WORKFLOW><STATES><STATE value="Closed">. When it didn’t work I tried putting it under < ...Show All
Visual C# compile C in C# .Net?
I couldn't find anything in the searches, but is it possible to compile straight C code in C# .NET Not C++, just plain C Thanks! C# 3.0 hint: asm { } in C was pretty nice to directly put in assembly code into a C application. Maybe a c/cpp { } The Happy Friar: For now, you can build unmanaged C/CPP files and call them externilly from your managed app. Just a thought :) ...Show All
Smart Device Development Closing form witch checkbox checked
Simple question. How to close form when a checkbox is checked Thank you. ...Show All
Visual Studio Team System Can't see any "Documents" and "Reports" in Team Explorer
Other items such as "Work Items" and "Builds" are avaliable, but there is no item under the folder "Documents" and "Reports". I have checked my permission that I own all permissions. If your permission are set correctly, you migth want to take a look at this article http://support.microsoft.com/kb/909889/ . This correct a bug in "Security Update KB896688" (Additionally, folders may not appear correctly if Web View is enabled.) ...Show All
Software Development for Windows Vista Long run and threading- are they related?
When I'm working on Lab5 , it concerns me again, -- probably just I'm not the person always think threading when I'm writing the business logic. To call a long run local service, I have to call ThreadPool .QueueUserWorkItem(..) . Also remember the default coding for workflow console app -- waitHandle.waitone()... Well , first I don't see the relation between business flow and threading--For long-run/heavy service I think it's safer to  ...Show All
SQL Server The transaction ended in trigger
During some non working days i got rid of old merge replication that I had and started new one. Today 5 of my 6 servers are working normally, but on the 6th one I am getting following error: The transaction ended in trigger. The batch has been aborted. Table [dbo.A...] into which you are trying to insert, update, or delete data is currently being upgraded or initialized for merge replication. On the publisher data modofocations are disall ...Show All
.NET Development WSE 3.0 - PolicyAssertion and Attachments
Hello, I'm starting using WSE 3.0 and I'm having trouble in finding solution to these 2 problems: - I have created a PolicyAssertion and I want my WebService to use it without using a policy file. I've managed to do this on the client side, but on the service side I'm out of ideas. The documentation on the subject only gives examples with a policy file, but I wanted to do this without one. - In WSE 2.0 we had SoapEnvelope.Context.Attachments ...Show All
Visual Studio Team System Merge question
I have the following scenario. I started a feature implementation on the Main branch (say Main\Foo.cs), then I branched to Branch\Foo.cs. Everything is checked in. Now I want to clean out the feature stuff I started in Main\Foo.cs. Some other code is added to Main\Foo.cs. Now I want to forward integrate changes from Main\Foo.cs to Branch\Foo.cs. During the merge it removes the feature code from Branch\Foo.cs.&n ...Show All
