NewKiwi's Q&A profile
Windows Forms How to update dataset
Hi, I am having some problem to update my dataset. I am basically using two forms to show the information from the database. This first form is having a datagridview to show the basic information and the second form is used insert and update the database. Now I am using the following code to fill my datagridview on the form load event. Dim ds As New DataSet Dim sSQ ...Show All
Windows Forms Bind DataTable to GridView problem
Hello all I am using microsoft enterprise libraries for the first time, I wrote code to create database object and command, then I execute the command using Executedataset(command Object), I have no problem till this, then I try to get a datatable for the first item, to asign it to the Gridview I have, I got a null referance exception .. Here is my code: FileConfigurationSource fileSource = new FileConfigurationSource(@"filesource. ...Show All
Visual Studio 2008 (Pre-release) LINQ May Preview wont install on Vista Beta 2 x64
It seems that the May CTP preview of LINQ will not install on Vista Beta 2. Running the installer does not give any errors but when I open up VS 2005 i don't get the options to create LINQ projects. Also when trying to run the "Install C# IDE Support" script it gives an error "Cannot find one or more registry keys to install LINQ Enabled IDE support". It seems that the script is checking for some sub keys in the HKLM\Software ...Show All
Visual Studio Team System Still having problems moving TFS to a new domain
Hi guys, Yup, I'm still stuck here trying to move my SINGLE SERVER team system from one domain to another. I followed the details on the VSTS User Education blog about how to move a team server to a new environment but it doesn't work for me. The first problem I have which I think causes me trouble later on in the process is that once my server moves from Domain A to Domain B, the owner of the TFS Databases becomes invalid. For example, be ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectX 8 SDK Library link problem
I have a problem similar to that shown on the Raxvan thread and reply from Ursus Zeta , I have loaded DirectX 8 SDK from a disk included in the book 'The Zen of Direct3D Game programming' (must update to Ver 9 soon) I have linked the library files dxguid.lib, d3d8.lib, d3dx8.lib & xinmm.lib to a Visual Studio6 C++ win32 project but cannot get the project to compile because the last three library files will not OPEN (I think they have be ...Show All
Visual Basic Blair Allen Stark
Here is the problem I am working on. It asks me to use the method CalculateCharges, but I don't fully understand how to do this or how it works. I would be grateful for any input. Lab Problem III A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour period ...Show All
Windows Forms Customizing Comment Web Pages
Anyone have any idea and/or samples of new layouts for the comment web pages I'm releasing a control for sale, and I want to improve them a little (like implementing cross-references and some of the other things that the current pages don't do ...Show All
Visual Studio Team System Instrumenting a Unit Test - Seeing double
I've created a performance session on a unit test by 1. Add all the release DLL's in a unit test project - marked for isntrumentation, 2. Add MSTest.exe as a launch assembly - not marked for instrumentation 3. Add launch arguments to MSTest.exe: /test:<mytestfunction> /testcontainer:<mytest.dll> This works very nicely. The only puzzling thing is that I see most of the functions in the assemblies being tested twice in the ...Show All
Visual C# Getting the executable directory
I've had a good look on the Web but can't find the answer to this... How can I find out the path where my service is installed to, rather than the working directory (typically ..\windows\system32\) This is with a view to reading config files, writing log files,etc, within the installation folder. Thanks for any tips, Mike This should do the trick: System.Reflection.Assembly.GetExecutingAssembly().L ...Show All
.NET Development How to use CredentialCache & DownloadFileAsync for Local Network
I tried to do a method to download a file from LAN or WEB. If LAN or WEB location don't have username and password the below method work. If WEB location have an username and a password the method work. If LAN location have a username and a password the method didn't work. The file was shared on WinXP Pro and the folder can be mapped with Windows Explorer (if username and password is correct of course). Private Sub TransferFile( ByVa ...Show All
Smart Device Development HttpWebRequest.GetResponse() times out with SSL connections, but works with normal connection
Hello, the following code excerpt throws a Timeout web exception IF: a) the POST goes over an HTTPS connection, and b) the POST content (the byte array) is of a certain size (probably a few kilobytes) Shorter content (<1024bytes) works fine and reach the server. But an array of 30KB or larger never reach the server. The strange thing is that everything works like expected if the connection is an ordinary HTTP. No matter how large ...Show All
Smart Device Development Performence issue with PPC 2003 Emulator
Hi I faced a critical issue related with the performance of Pocket PC 2003 and Pocket PC 2002 Emulator. I created an EVC++ application (using EVC4.0 tool), which reads the SQL queries from the file (.sql extension), executes the queries and loads the records into database file. (SDF File for Pocket PC). I ran this application with database file of size 12 MB (Around 39K SQL Quries) on 2002 and 2003 emulator both. But I found that 2003 emu ...Show All
Windows Forms event to update the database once the report is printed
hii all, When I printed a report very first time it will be the original. when I get the copies of the same report it will be the duplicate one as you know. I have to update a datbase field if a particular report is printed sayi ...Show All
.NET Development R
Hi, I am using VB.Net 2.0 and have connected to Microsoft Access but having trouble running a query as it uses * as a wildcard, but when I run it in .Net it returns nothing as needs to have %. The solutions I can think of are: 1) If I was able to extract out the actual SQL string from the MS Access query from my code then I could do a Replace("*", "%") then would work - but don't know how to extract the SQL strin ...Show All
Visual C++ Custom build rules and [SupportsFileBatching]
What's the purpose of the attribute SupportsFileBatching on the XML Schema Definition (XSD) to validate RULES files I put it to true or false, without result; this attribute is never put on the XML rule file!! This attribute controls whether the tool is invoked once per matching file in the project. When set to false, the tool is invoked separately on each matching file in the project. When set to true, the build system will try to group ...Show All
