Alexander S. Manenkо's Q&A profile
SQL Server Suppress Toggle Image
Is it possible to suppress the toggle image when no detail exists for that group Thanks. I am also curious as to this answer. From everything I've looked at, the only property you can use for the toggle image is the initial state. There isn't a visible property for the image as far as I can tell. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Original textures along side XNB files in bin folder?
For example, when you build your project, it looks like the textures are converted to XNB format but the original textures are also copied into the bin folder with them. Is that what is supposed to happen By default when you add something marked as XNA Content the "Copy to Output Directory" should be set to "Do not copy". If you're seeing something different, please file a bug on Microsoft Connect. Thanks! ...Show All
Visual Basic Passing an array from a VC++ ActiveX component to VB .NET 2005
Please point me in the right direction if this has already been answered. I've looked all over and found things close to my problem, but nothing that adapted properly. All I want to do is pass a one-dimensional array from an ActiveX componenet written in VC++ (2003) to a program written in VB .NET 2005. It seems like I should be able to package the array as a Safearray and then as a Variant, and return that object. But I don't seem to be able to package it properly. Thanks! I'm a little confused. Are you creating the array in the C++ code and trying to use it in the VB code Or is it the other way around Can you post the declarations that you currently have in your .idl, .h and .vb file Best R ...Show All
Visual Studio Team System Code Analysis not working for team build
hi.. i have created a team build with the code analysis checkbox selected. I have set a custom configuration for code analysis for the project.... when i run code analysis for the website, it shows the errors...but when i run the team build, the code analysis is not performed... i also checked the TFSBuild.proj file...the <runanalysis> has a value 'DEFAULT'.... is there any thing more i should do Thanks, Bob Just fyi... I tried this scenario on the latest bits of VS 2008 and it works fine. I tried doing code analysis with Team Build for both Web Application and Web Site projects and it worked fine. I don't know if this was by-design issue for VS 2005. Thanks, ...Show All
SQL Server Help for a stored Procedure
Hi, My Customer table stores the age or the birsthday of the customer but one of them is set. I want to get the customer's name and age. So have to compute the customer's age from his birthday if age is set to null or get directly his age if birthday is set to null . I resolved my problem by writing this C# code that modify a dataset wgich contains the name, age and birthday columns. Code : // res is my dataset DataColumn dc = new DataColumn("FinalAge", System.Type.GetType("System.Int32")); //add my FinalAge column res.Tables[0].Columns.Add(dc); //and compute its value foreach (DataRow row in res.Tables[0].Rows) { if (row["Age"].ToString()==string.Empty) { DateTime birth = Conve ...Show All
Visual Studio Change default developement environment settings after initial startup
How can I change the default developement environment setting programming language I chose on the initial startup of visual studio 2005 If I plan to program in more than one language, what is the best practice Thank you To change the default environment settings: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=3809&SiteID=1 These are just default settings. As you work it is possible that you manually change settings from Tools => Options. So basically there is no best practice. ...Show All
SQL Server Logging in SSIS
Hi: Just implemented logging on my package, and the type of logging is to a text file. Any ideas on where should i store my log folder/file, so when I do my build and deploy, I end up moving the folder as well. Do I have to manually do that How would that work What if I save the log file outside of my project folder Where is the log folder/file path specified Thanks. When you set up the logging you created a connection manager to point to the log file right Then all you need to do is to make sure that connection manager is properly configured in the new environment; meaning that the path you specified exists and the user executing the package has access to it. You could use package configuration to set up the connection man ...Show All
Visual C# How to uninstall application from commandline?
I installed an program.I am able to see it in the Add/Remove Programs(ARP).Clicking "Remove" from ARP uninstalls the program.However if I do uninstall from commandline using msiexec /x <program-id> It asks "Do You want to uninstall the program".After clicking "Yes" it proceeds with uninstallation.After sometime it shows "Estimation Time Remaining" as zero.But the window doesn't go.It will be there for ever.If I kill the process from "Task Manager", i can find that the program is actually uninstalled.However I dont want this to be done(Killing process from TaskManager). Can anybody tell me what the likely problem is I am not able to see any logs in the eventviewer. Any help ...Show All
.NET Development WCF Exception Serilization
Hey, I am trying to serilize an Exception in WCF. It is simple [ Serializable ] public class NNTraceData { private Exception _Exception; public Exception Exception { get { return _Exception; } set { _Exception = value ; } } My generated interface contains the following line. [System.ServiceModel.ServiceKnownTypeAttribute( typeof (System. Exception ))] When set the exception and try to send the class I get an http error. (otherwise it works fine) I see that type exception implements iserilizable; could it be causing the error Anyone know if this should work of am I missing somthing simple. Thanks !!! ...Show All
Windows Forms cant use ConfigurationManager even after adding using System.Configuration namespace in windows from application
hi there , this is my first post so good morning to everyone , i have a little problem , i was working on a windows form application and connecting to my database whose connection string was in app.config file , i added the using System.Configuration clause in my .cs file but i was not able to use ConfigurationManager namespace to access my connection string in app.config then after wasting sometime i realized that i forgot to add a reference to the assembly System.Configuration in References folder now , my question is how come the " using System.Configuration " namespace while i added was being intellisensed since there was no reference to assembly System.Configuration it should not have been , since it fooled me that ok there ...Show All
SQL Server Linked Server Access DB
After converting to SQL Server 2005 and VS2005 I am having a problem connecting to Linked Servers for Access databases. I have searched and read everything I can find, but the solution is still not evident. I have a lot of data integration and data conversion procedures to run and I am stuck at this point not understanding exactly what the problem is and how to resolve it. I believe it is somehow related to "double hop" and permissions with .NET. Many of the discussions are related to using .ASP but that is not involved in this situation. The Linked Server is defined using the UNC path. The machines are not in a domain. They are in the same LAN segment. Connections will be made without using a security context is specified. ...Show All
.NET Development Delete File
I need to delete a file programatically that can not be restored. Can anyone point me in the right direction. Thanks. how do you mean that cannot be restored to delete a file: System.IO.File.Delete("Path to file"); you may also want to check to see if you have access/permission to that file. ...Show All
Visual Studio BindingSource Filter and Reports
Hi all, anyone has ideas how to display on ReportViewer items filtered through BindingSource.Filter Adding a BindingSource through ReportDataSource to LocalReport.DataSources doesn't seem to work - all items are shown Other idead would be to get ID from BindingSource or DataGridView and pass them to ID parameter .. but how Any smart suggestions Hi, I am using serverreport… I want to filter the report datasource based on filter condition from my BindingSource. So, in my BindingSource I have this Filter Condition “EmployeeID=1 and DeptID=2”. This Filter condition can vary like “DeptID=3 Or UserID=4”” All the Fileds (EmployeeID,DeptID,UserID) are part of my report ...Show All
Visual Studio HELP!!! error 25007 while i install visual studio 2005,how can i fix it?
i corruptted a critical problem while installing visual studio 2005 pro. in my en_xp with sp2 and all updates. while i tried to install that visual studio 2005 sp1(beta), the install wizard told me i got a not enough space in my C:/ drive, so i rolled back it. however, someone cancel it while it rollbacking, while i tried to open the existed visual studio 2005 to write some code, a error happened, so i decided to reinstall the visual studio 2005. Before that, i uninstall the Document Explorer and XML 6 parser ,also .net framework 2.0 and all components of visual studio 2005. even more, i deleted the C:\assembly folder. i cannot bear that just. However, while i reinstall the visual studio 2005 pro. it runs into a critical error ...Show All
Visual Studio 2008 (Pre-release) XLinq XElementSequence.DescendentNodes() Doc Inconsistency
The XLinq Reference that came with the May 2006 CTP seems to be inconsistent in the description of XElementSequence.DescendentNodes method. It states it returns an IEnumerable<XElement>, but is prototyped (and named) to return an IEnumerable<XNode>. I assume the description of the return value is wrong, due to the prototype and method name, as well as the fact that the method does indeed return nodes (elements, processing instructions, comments, etc.) as opposed to just elements. ...Show All
