Jay McCleery's Q&A profile
Visual C# display a form at selected mouse coordinates
Objective: (This is not an MDI application) Display a child form containing a datagridview that contains the child records of the selected row in a datagridview. Have this display on a parent form right below the selected row in the datagridview. Problem: I am unable to get the correct location of the cursor on the parent datagridview control passed to the child form so the child form displays correctly. I am passing the location to the constructor of the child form so that I can call this child form as you would call ContextMenu.Show(DataGridView, e.X, e.Y) but I am not sure how the Point gets set to the Control and not the ...Show All
.NET Development 64 Bit Local Debugger on Whidbey FINAL
Will the local debugger on VS.NET 2005 FINAL RELEASE be able to debug 64 Bit apps Remote debugger sucks a little bit. Thx in advance Martin Jochen -- You are actually still using the remote debugging infrastructure under the hood even though you are remote debugging to the same machine. This is because VS is a 32-bit application in Whidbey. However, as you have noted, they do a good job of hiding it and in my debugging using VS it seems to work pretty well. The major omission being no edit and continue on 64-bit projects is however a CLR limitation. Most applications however correctly run as agnostic code, in which case if ...Show All
.NET Development XmlSerializing inherited generic list
[XmlRoot(ElementName="Charges")] public class Charges : List { private Charge _total; public Charges() { } [XmlElement(ElementName="Total")] public Charge Total { get { return ((_total == null ) new Charge() : _total); } set { _total = ((value == null ) new Charge() : value); & ...Show All
Smart Device Development Signed SQLCE and CF Cab files for 1.0
I am trying to install a 1.0 application on Windows Mobile 5 device. The problem is the cab files for SQLCE and CF 1.0 are unsigned, so these don't get installed after extraction from my signed cab file container. Is there a way out or are the signed cabs available. You don't need signed NETCF V1 CAB for WM 5.0 as WM 5.0 already has lasted NETCF V1 in ROM (SP3). There's no signed SQL CE 2.0 CAB as it was released prior to WM 5.0. ...Show All
Visual C++ C++ in VS2005: Enable automatic copy of depentend 3rdparty unmanaged dlls
Hi, I am creating a managed C++ class library that uses several unmanaged old-style C++ libraries (with .h, .lib and .dll files). These dependent dll-files are located on a specific path on my computer, but each time I create a C# application that uses the managed C++ class library (which again uses the 3rd-party unmanaged dll-files), I have to copy these files to the bin-folder of the C# application. Is there some way I can automate this E.g. like how C# class libraries work If I have a "mother" C# class library that is dependent on other "3rd-party" .NET assemblies, all of these dependend "3rdparty" assemblies w ...Show All
Visual Studio Team System Reports are not accessible from Team Foundation Server
I tried creating a duplicate of the Team Foundation Server. The process of taking backup of the data and restoring the same on the duplicate server worked fine. When I tried to view the reoprts on the original Team Foundation Server through the IE, the folders showing the team projects were not visible. Also in the IDE, the Reports folder has a red cross accross it. I am using the beta version of TFS. And the original Team Foundation Server was shut down when the restore was being carried out on the duplicate machine. Any pointers to what must be worng. Check to make sure that ReportingSerivces is up and running fine. Also, wh ...Show All
Visual Studio 2008 (Pre-release) WPF Hands On Lab 09
I'm trying to work my way through the WPF Hands on labs using the January CTP. I went through the exercise and everything worked until I tried the "add contact" menu item. The wizard works until you hit the finish button, at which point I get a NullReferenceException in the OnReturn processing for the page function. The version that I typed in and the provided source with the lab both seem to produce the same results so I'm pretty sure I followed the instructions correctly. Is the PageFunction related code just really dodgy in the January CTP or has anyone found a work-around that will get things going ...Show All
SQL Server Creating a Script component using SSIS Object model
I had a SSIS Package which was developed on Beta Version Of SSIS, Now We have Standard Edition Of SSIS(Sql2k5) Installed. In the Package we have One Flat file Source, One Script Component and A Sql Server as Target, We are programaticaly creating the package, Now When we open this Package in the Designer and Try to Run We get this error "The script component is configured to pre-compile the script, but binary code is not found. Please visit the IDE in Script Component Editor by clicking Design Script button to cause binary code to be generated. " Now when we just open the Script Designer and close it, The package runs. I found the Error des ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Centre view on a rendered object
Basically, i have a little app going on where the app renders a direct3d surface, and the user can click on various items that are being rendered so they can centre the view on that item. Now, the problem i'm having is that i can't make the view centre on one of the objects by using a mouseclick. I can get the mouseclicks coordinates relative to the 3d window. i.e. i can say they were at coordinates 100,200 i.e. 100 to the right and 200 down from the top left corner. I can then take those coordinates, and remap them slightly so as to tell which way i should move the view. I can get it so that the view moves in the right directio ...Show All
SQL Server Capturing Processing Status and Progress Messages
When you use BI Dev Studio or SS Management Studio to process an Analysis Services database or object, there's a nice dialog box that shows very robust status and progress information. Is there any way to capture this information if you are processing something programmatically Specifically interested in both the ability to capture and display this information to a user when processing via a custom application. Also interested in whether or not there's a way to capture this information to a log (or table) for display and analysis after the fact (or if the custom application is running in a batch mode via a schedule). Thanks ...Show All
.NET Development Urgent::: Please guys I need your help in this problem
Problem Summary: I tried my best to solve this problem, however I couldn't at all. I'm developing a windows based application which is using a SQL server to store the data in its tables. The following code works very fine with the select statment Dim connString As String = "workstation id=HAITHAM_SALAH;packet size=4096;integrated security=SSPI;data source=HAITHAM_SALAH;persist security info=False;initial catalog=ElShamel" Dim conn As New SqlClient.SqlConnection(connString) Dim sql As String sql = "SELECT UserName As UserName, Password as Password FROM tblAccessAuthority" ...Show All
.NET Development Response.Redirect does not clear Request.ServerVariables on next page
On page A, I am using Response.Redirect to transfer request on same page i.e. on page A. After Response.Redirect, I am getting same Request.ServerVariables as it used to give first time on page e.g. same value for Request.ServerVariables["HTTP_REFERER"] on both time. I just want to have a different Request.ServerVariables (Request.ServerVariables["HTTP_REFERER"] ) value on page A before and after redirecting which is currently giving same value before and after redirecting. Request.ServerVariables is read only, so collection values can not be changed and can not use Request.ServerVariables.Clear() met ...Show All
SQL Server Date Conversion throws truncation error
Hi, I am trying to process a flat file feed. My date is in format of YYYYMMDD. The database column is of datatype "datetime". I have tried using all date related data types on FLAT FILE Connection Manager. I have also tried using Data Conversion Component. No luck so far!! Any suggestion Thanks in advance, -Anand I have resolved the issue using following "Derived Column" statement: (TRIM([Maturity Date]) == "") NULL(DT_WSTR,8) : SUBSTRING(TRIM([Maturity Date]),5,2) + "/" + SUBSTRING(TRIM([Maturity Date]),7,2) + "/" + SUBSTRING(TRIM([Maturity Date]),1,4) Cheers, Anand ...Show All
Windows Forms SQL Parameters with datasets
I'm taking my first stab at WinForms after some time with ASP.NET and I need some help. When I drag a DataGridView onto the form and go thru the wizard to create a DataSet and TableAdapter that use an existing stored proc with a single boolean input parameter for the select command, I can't figure out how to get it to use a checkbox control on the form to fill the parameter. When I do the same thing in ASP, the DataSource wizard sees the parameter and asks how to fill it and gives me a number of choices, including a control. I'm very surprised that WinForms don't do the same. I've searched everywhere for this with no success. That must ...Show All
Visual Studio 2008 (Pre-release) WinFX beta 2 is there
Go and get it http://msdn.microsoft.com/windowsvista/downloads/products/getthebeta/default.aspx I've downloaded the runtime and Visual Studio extensions, but when click the link to go to the SDK download page I get the following error: "The download you requested is unavailable. If you continue to see this message when trying to access this download, go to the "Search for a Download" area on the Download Center home page." ...Show All
