dLloydm's Q&A profile
Visual C# Cancel Keydown
Hi, I've got a tabcontrol with 2 tabs. On the form wich contains the tabcontrol i use keydown events. When I press Key.Right the event is triggered but also the focus gets set on tab2. When I press Key.left the event is triggered and the focus goes back to tab1. Is there a 'simple' way to cancel the event after my code in the event Grtz Annihil8 I've found it allready. I place before the closing } of the event e.Handled = true; ...Show All
Visual Studio Express Editions Certification Help
I have just finnish reading the a good book for C++ & C# I someone give me some advice on some more books to read some certification examination i can i go for. Thanks Nicholas Francis Hello Recommend books from another MS C++ Forum: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=107484&SiteID=1 College/University courses are always useful qualifications. Thanks Damien ...Show All
Visual Studio disable asp.net development server
Hi, I wan't when building a website that I debug on my IIS localhost and not on the asp.net development server. Is there a way to do that Grtz, Dennis ...Show All
SQL Server Hide some columns in Matrix but not in subtotal
Hi all, I would like a matrix that look like this: 2006/01 2006/02 2006/03 Total % % % % Amount Amount Class. BU1 98,82% 78,53% 88,12% 88,49% € 217.763.099,50 € 207.328.766,75 BU2 64,98% 32,53% 92,19% 63,23% 5.093.781.522,65 € € 287.731.766,75 BU3 74,71% 45,78% 78,69% 66,39% € 847.871.349,50 € 819.123.124,75 I want detailed subtotals but I don't want the "Amount" and "Amount Class." values in the details of my Matrix. I've not found other w ...Show All
Visual C++ DLL Conflict
Hi there! I wrote an XLL(a user-defined function for Excel, using C++) that evaluates algebraic expressions using binary trees, stacks and so on. The good thing is, it works perfectly. But then I need to make it work using a cluster, that is, parts of the expression must be sent to the cluster’s master computer and it will send these parts to be calculated by some slave computers. Ok. However the thing is, I can’t even connect to the cluster. I’m using Microsoft Compute Cluster Pack. When I put together the code for my XLL, that was partially created by an application named XLLPlus, and the cluster-specific code, that uses COM, a DLL conflict happens. There is a double definition of a DLL’s entry-point, DLLMain. One of the DLLs is from XLL ...Show All
Visual Studio 2008 (Pre-release) proper way to use BuildWindowCore params?
In the following code, I'm attempting to make my own .NET 2.0 form act as a FrameworkElement. I'm having trouble in the BuildWindowCore function. As I understand it, I'm supposed to take my existing form and make it a child of the input HWND. I don't know how to take the hwndParent.Handle and turn that into a System.Windows.Forms. Control. I've stepped through the code a number of times trying different things includeing WINAPI SetParent all with no luck. It's too bad Wrapper is null. That would at least give me an idea as to what type of object it is. public class AppWindow : HwndHost { private AppForm _appForm; // AppForm inherits from System.Windows.Forms.Form public AppWindow( AppForm appForm) ...Show All
Visual Basic Coerce a byte string to a structure?
I have a file that contains a series of packets. I've created a set of structures that map the elements of the packets. My question... Is there a technique in VB to map the string of bytes read from the file to the structures In 'C' this would be simple. In VB.NET I don't know. Suggestions are appreciated. Thanks, Johnny Hi Johnny .NET is a managed world. AppDomains have a garbage collector that handles memory allocations, defragmentation etc so it is very difficult to work with memory directly. These days most people opt to use a binary serialization technique for this kind of situation. Type instances can be persisted permanently and rehydrated simply when needed. If this sounds like a viable alternative for ...Show All
SQL Server IE 7 B3 Not Compatible With RS2005
Lon posted a message on the RS UseNet newsgroup about IE 7 B3 being unresponsive and using 100% of the cpu when trying to view RS reports. I tried it on a test system, and indeed the problem showed up for me as well. Both the IE 7 B3 32 bit and 64 bit version where stuck in a loop when attempting to view RS 2005 reports. I tried both parameter and non-parameterized reports with the same results. The only way to stop it is via Task Manager. A warning to all, do not install IE 7 B3 if you want to run RS reports. Hey MS, you may want to pass this on to IE 7 development team. This isn't good when MS products aren't compatible with each other. I experienced the same problem, the screen starts flickering and IE won’t come back. If ...Show All
SQL Server Stuck between "Failed to generate user instance" and "An attempt to attach...failed"
I wrote an application using Visual Studio 2005 beta 2 which uses a SQL Express .mdf file, included in the project, for the database. After installing Visual Studio 2005 RC and the SQL Express that comes with it (I followed all of the uninstall instructions first) I can no longer add a SQL Express database to any of my projects, nor can I open the SQL Express database in my original project. When I try either of these tasks, I get the "Failed to generate user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed." I read the thread which dealt with this error, and changed the connection string for the database file that had worked before to User Instance ...Show All
SQL Server Format date in a Stored Procedure
Dear friends, I have a stored procedure that returns some fiels. One of the fields is a datetime type. The field return in the follow format : 2006-11-13 0:00:00 How can I return only 2006-11-13 How can I use the format function regards!!! Here is another method: select DATEADD(DAY, 0, DATEDIFF(DAY, 0, GETDATE())) This keeps the datatype as a datetime while removing the date from the string. It is best practice to format the data in the UI. ...Show All
Visual C# Conditional References
I probably named my thread wrong, but I didn't know what to call it. Basically, I'm making an application which interfaces with various media players. To do this, I reference and use each media player's COM library/interface. This all works fine, however, to use the COM the user must have the specific media player installed. So theoretically, at the moment, for someone to use my application they would have to have all media players supported by my program installed, this is a major downfall. So I was wondering if there was a way to conditionally 'reference' these COM interfaces, in such a way that I can ask the user which media player(s) he would like to support and then use those interfaces, therefore avoiding a problem ( Or I can also si ...Show All
SQL Server BI Portal connected to analysis services 2005
Anyone has connected the bi portal with analisys services 2005 I have a security problem. Thanks I had to do this a couple of days ago. The only way I could get it to work was if I went into the advanced options on the Data Source and specified the full connection string myself, making sure to specify MSOLAP.3 as the provider. When I just chose the options from the standard connection dialog, I could not get it to work, however I was running the BI Portal for a demonstration from a virtual server so their could have been other complicating factors involved. Note: because BI Portal uses OWC you will need to have the OLEDB provider for AS 2005 installed on all your client machines. Hope this helps. ...Show All
.NET Development Problem inserting data to SQL
well here is my code of ISERT in C# =========================================== InitializeComponent(); SqlConnection coneccion; coneccion = new SqlConnection("Data Source=sagara\\sqlexpress;" + "Trusted_Connection=yes;" + "database=Hospital; "); SqlCommand orden; string q = "INSERT INTO prueba (nombre, apellido) VALUES (@txtNOMBRE, @txtAPELLIDO)"; orden = new SqlCommand(q, coneccion); orden.Parameters.Add(new SqlParameter("@txtNOMBRE", SqlDbType.Text)); orden.Parameters["@txtNOMBRE"].Value = this.txtNOMBRE.Text; orden.Parameters.Add(new SqlParameter("txtAPELLIDO", SqlDbType.Text)); orden.Parameters["@txtAPE ...Show All
Visual C# Web Service Partial Class
I just converted an application that communicates with the database via web services to VS2005. The conversion worked fine but I could not get the application to communicate with the web services. I kept getting a web method error. So, I decided to convert the web services to VS2005 as well. The conversion of the web services went well also. However, when I generate the proxy class through WSDL.exe, and add the proxy class to my application, it will not compile. The proxy class generated by the WSDL.EXE utility for VS2005 creates a Public Partial Class and the compiler doesn't like it. It throws an error for each of the three Public Partial Classes generated by the WSDL.EXE utility that states: Expected class, delegate, enum, interface, or ...Show All
SQL Server Forgive my "french" but...
Exactly what does it take to get ReportBuilder for SQL Reporting Services to actually function. I had VS2003, then I installed VS2005 with SQL 2005. Everything installed to the best of my knowledge....How do I know....because the installation program was smart enough to sniff out SQL Report Services 2000, automatically rendering it unusable by giving the rsreportserverdisabled message due to the key encryption. After much searching I found an article to fix this ( http://codebetter.com/blogs/john.pappa/archive/2005/12/27/135963.aspx ) Now, report functions but no report builder. IF I CAN'T GET THIS TO FUNCTION by tomorrow...I will be forced NOT to recommend SQL Report Services for the next generation of software we ...Show All
