Chinwa KneeHo's Q&A profile
Smart Device Development question of DoubleClick on ListView,pocket pc c# application need help!!
Hi, does anyone know to write the C# codes on how to create a double click event for ListView to delete/remove the item that i select from ListView control i'm developing it to an application for pocket pc. Hi TobsTec , Thank you for the url to share it with me. By the way, i found out the double click event for my application.Anyway, thanks for your url and your help. ...Show All
SQL Server How to force linked rpt to open in new window?
This seems like such a simple thing, I must be missing something obvious. I have linked reports to view detail in my humongous main report, and I want them to open in their own windows for the sake of speed of navigation. How do I force a new window in Jump to URL Thanks, I appreciate your answer, but I'm still left trying to figure out WHERE to put the html code. It would make sense that it should go in the main report's RDL, but the code for this hyperlink looks like this: <Action> <Drillthrough> <ReportName>BusDev_Detail</ReportName> <Parameters> &nbs ...Show All
SQL Server execute sql task resultset
hi all, in my execute sql task, i have a try catch statement to catch error code if there's an error... begin try insert into person.contact (contactid) values ('1') end try begin catch select @@error as ErrorCode end catch this ErrorCode will be mapped to a user variable. my problem is the value for ResultSet. in order to assign ErrorCode to the variable, i have to set the ResultSet value to Single row, but if this task does not fail, i need to set ResultSet value to None in order for it to run successfully. How do i go about solving this problem Please help. thanks! Minority80, I would tweak the approach in your first post to something like: begin try insert into ...Show All
Visual Studio 2008 (Pre-release) Performance question
I made some kind of prototype of draggble rectangles over surface (2d). One - using UIElement inherited objects, other using inheritance from Visuals. And very strange thing happens. Here is results: Creation (1000 elements) - UIElement/Visual = 1/100 Translations - UIElement/Visual = 100/1 Other words, it's takes much longer to create Visuals, but translate (move/drag/change) them much faster. What's the sense behind it As far as I undertsand UIElement derrive from Visuals, but it's much faster to create UIElements then the same Visuals... Please advice >>I would expect that UIElements require more time to render and consume more memory. Me too ;) Follow the code public class MyHost : FrameworkElement { ...Show All
SQL Server How do I repeat row headers on new page?
I have a report which consists of a table and overlaps the page from left to right. I would like the first row of my table to repeat on the new pages. What is the best way to achieve this Right Click the table you want and click properties. The properties box should open. At the bottom of the box there is a section that says "Header/Footer" under that there are 3 options. Check the "repeat header rows on each page" selection. That should do it. You might want to do the scrolling header too if your table is extra long. Make sure you selected the whole table and not just a row or column, because then the properties bar will slide out, instead of the properties box for the whole ta ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 3D cameras???
Hi all, I am trying to create a basic driving game , i have a car model and a model that vaguely resembles an oval track, i have both models rendering and the car moving using the control system in the going beyond xna tutorials, my question is how would i implement a third person camera the looks something like those in Need For Speed Carbon. I would like the camera to follow the car but still be able to have the car rotate within the viewport. If this makes sense, any ideas anyone. Cheers Here's a camera model that works OK for open spaces: Keep a current position and velocity for the camera (curPos, curVel) as well as a mass. Each step, calculate a desired position (desPos) for the camera as ...Show All
Visual Studio Express Editions Hex data to serial port limited to value of 128
When I send a hex value of DB to the serial port the actual value that the DB9 connector outputs is 3F. Why is it sending the wrong value If I send a hex value of 75 the output is fine. Here is the code I'm using: Imports System.IO.Ports Public Class Form1 Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim strOutput As String Using comPort As SerialPort = My.Computer.Ports.OpenSerialPort("COM1", 19200) comPort.DtrEnable = True strOutput = Chr(&H24) & Chr(&HDB) & Chr(&H0) & Chr(&H0) & Chr(&H1) & Chr(&H4) & Chr(&HF7) & Chr(&H75) comPort.Write(strOutput) End ...Show All
Visual C++ vector of vectors for rows and fields, continued
This is a continuation of vector of vectors for rows and fields . I am trying to create a modified version of Marius Bancila's Matrix class. For those unfamiliar with the previous thread, I need to have a vector of vectors for rows and columns. For me, the number of rows need to be dynamic but I will specify the number of columns in each declaration. So I am trying to use the vector constructor to create the columns vector with the specified size initially. The following class (classRecords) is close to what I want, but the constructor is getting compile errors. I assume there is a minor syntax error. template <typename Type, int Fields> class classRecords { typedef std::vector<Type> typeTypeVector; std::vector<ty ...Show All
Visual Basic 2005 Compiler not recognising code changes
Ok you guys, I know this is probably going to be something really simple so I apologise in advance. I've recently converted a vb.net 2003 solution to 2005. everything is great and I've got rid of my pre-compilation conversion errors and warnings etc and am reading to carry on development. My problem is this - in a sub project (which is referenced in the main solution by the sub projects DLL file, but I also change the source code for the subproject whilst in the main solution (hope that's clear!)), when I change or add to the source code (in the sub project) and start debug, or even rebuild the whole solution, the new code doesn't get picked up. I've tried putting a breakpoint in the code, and it doesn't pick it up, so i tried typing " ...Show All
Visual FoxPro Excel to cursor SPT problems
I am using a SPT solution to take information from a .xls file and importing it to a cursor with this solution: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=509710&SiteID=1 However, I am now receiving problems where before I had not. Now I am getting Error 1466: Connection handle is invalid. Any ideas guys I can't see what the problem is but it occurs at the sqlstringconnect( ) line. Thanks! No it wouldn't be guaranteed to have a sheet name as Sheet1. Even if it would you're not guaranteed to have a table on excel (to excel every sheet doesn't contain a valid table that it could export via SPT. There are rules for it to accept a region as a valid "data table"). End users behaviors are always different from d ...Show All
Visual Studio 2008 (Pre-release) Modifying basicHTTPBinding on Client side
Hi Community, Has someone tried modifying the basicHTTPBinding on the client side Is it possible or I am thinking something non-standard thing What I think there should be a way to inherit and override what is already provided in basicHTTPBinding or in any other out of box binding. For example in the following code I am changing the IncludeTimeStamp to false. This may be the bad example in which the channels on the service side will not match. But idea is, what if the server side code is not WCF service. If the IncludeTimeStamp flag is not required on the server side but everything from basicHTTPBinding is required. using ( GetAddressClient proxy = new GetAddressClient ( "GetAddress" )) { try ...Show All
Visual Studio Team System Web Projects must be converted to the new web site format
We just migrated several projects (all part of one solution) from VSS to VSTF. All went well except for one remaining issue. Anytime we open up the web application project using the csproj file, it opens up in the solution explorer without any issues. If we create a new solution file and add this project to that solution, anytime we open the solution back up it gives us this error. Source Control The following Web Projects must be converted to the new Web Site format. The conversion process will remove all source control bindings and the project will not be under source control after migration. I have Visual Studio SP1 installed on my client (which contains the web application project type). I thought I saw this issue before when con ...Show All
.NET Development Ftp Upload File
This is my code snippet for file upload. The problem is after all the bytes are written on the server, while doing requestStream.Close() I get error as underlying connection was closed. FtpWebRequest request = (FtpWebRequest)WebRequest.Create(serverUri); request.UsePassive = false; request.Method = WebRequestMethods.Ftp.UploadFile; request.Credentials = new NetworkCredential("xyz", "xyz"); Stream requestStream = request.GetRequestStream(); const int bufferLength = 2048; byte[] buffer = new byte[bufferLength]; int count = 0; int readBytes = 0; FileStream stream = File.OpenRead(fileName); do { readBytes = ...Show All
Microsoft ISV Community Center Forums Textbox won't keep new values after workbook closed
Hello, I have this issue, I have a Textbox on a Userform that loads when a workbook is opened. If a user modifies the content of that textbox even if the workbook is saved the new values are not kept the next time that workbook is opened. How can I save the new values I would prefer not to store those values in a cell and then load them in the textbox each time the workbook is open. Is there another way Thanks the only other way is to save the data to file or to a database.... I posted an article on saving userform state that might be helpful here... http://dsmyth.blogspot.com/2006/05/saving-user-interface-state.html ...Show All
Visual FoxPro Newbie Needs advice/help
Hi everyone.. I have some experience in MS Access, I can pretty much get it to do what I need it to do.... but it isn't pretty Anyway, I have a very old Clipper application (& corresponding .dbf/.ntx files) that is is way beyond it's use limits in todays environment. So I though I would try and update it heh.. After talking with the Original programer, who not only doesn't have the source code, but doesn't even remember clipper anymore, I decided to give it a try. I was able to decompile the .exe using Rescue5 with 2 passes. There are about 5 orginal .src or .udf files that have a line or 2 of code that ended up as garbage, but that's mostly for the screen draws. Anyway, I have visual foxpro, what I don't have is the knowledge to actua ...Show All
