ancient sord's Q&A profile
Visual Studio 2008 (Pre-release) Getting list of all dependency/attached properties of an Object
In Visual Studio, in the XAML view when we add a element tag say <Rectangle...> and hit the spacebar, we get a list of all the attached properties and dependency properties of the object. (For e.g. Canvas.Left). How can this be achieved through procedural code I tried using Reflection (on a Rectangle object in above case) but it did not help. Thanks, Niranjan Yep, probably I've missed the original poster's intention, it seems he want to get all the DPs available for an element, actually we can use Doug's code here to get all the DPs defined by the WPF base class library, but how about those DPs defined by ourselves Sheva ...Show All
Visual C++ Process handling inforamtion
Hi all, Would somebody please provide me some kind of link or book name where I can find good information regarding Process Handling in Visual C++ Thanks, Yes, I am referring to Spawning processes. But in MSDN, I couldn't find any structured explanation of this topic. I was able to find to some APIs but it's not helping me much. Vinayak ...Show All
SQL Server Understanding the Algorithms used by SQL Server
I have been a DBA for three years. Over the past three years, I've been rapidly increasing my skill set in standard administration and programming. However, I know that there is a huge gap in my understanding of SQL Server and how it really works. I'm in graduate school right now and I'm taking a course in Algorithm and Design. I have to write a research paper on some topic that deals with Algorithm and Design and I figured this is as good of time as any to really understand the Algorithms that SQL Server uses to make the decision on how to retrieve data, store data and etc. Before I go off on this journey, I would like to know if I am going to be able to find out how SQL Server really works Does microsoft actually discuss the algo ...Show All
Software Development for Windows Vista Windows Vista Upgrade from XP Prob.
Hey all, I have got Windows Vista Beta 2, downloaded it and tried to install it. At first, it tell me that I have to remove Macafee Security Center and I had problems doing so. So I went and downloaded the remove tool of VirusScan and it's components including Security Center. The Uninstallation was successful. After that, I tried to install Vista again and the following Runtime error kept on coming up when it's checking the compability Runtime Error! Program: C:\$Windows.~BT\Sources\Setup.exe The application has requested the runtime to terminate in an unsusual way. Blah Blah Blah. I have googled it and some people are saying that it's from Macafee but I uninstall ...Show All
Windows Forms String.Format() problem
Hi Is it possible to fill a remaning area of a string with a specific character For instance: String .Format ("{0,-15}" , "My Text" ) The output is: "My Text " I want the remaning of that string ( " " ), to be "---------" . Is this possible using String .Format() And instead of doing: for ( int i=0; i<10; i++) str += "-" ; Maybe this can be replaced with String .Format() somehow Kind Regards Then i think there is only one option use like it. String .Format("{0}{1}", "My Text".PadRight(15, "-"), "Another Text") ...Show All
Game Technologies: DirectX, XNA, XACT, etc. FBL to FBX
Maya 7.0 Personal Learning Edition can only export models to .FBL files. Can I convert to .FBX Personal edition uses an undocumented file format on purpose so that you can't use it for general pupose modelling. Otherwise nobody would buy Maya. Maye PLE has some plug ins to export for certain games I think - I have heard people go to those formats then use other tools to get to fbx and .x but its multiple conversions and you will possibly lose information. ...Show All
Visual Studio Tools for Office Using webservices fro infopath forms in MOSS 2007.
Hi, I am currently working on infopath forms in moss 2007. I need to retrieve and submit data from infopath to a webservice. I am able to do so in the offline mode, but when I publish the infopath form to sharepoint and open the infopath form in browser i receive an error that the form couldnt be submitted successfully. What could be the possible reason for this I have given automatically deterime security level trust setting to the infopath form coz if I give it full trust it cannot be published to the browser. Can anyone please help me -Thanks and regards, Bhavana Bhat bhavana.b@tcs.com This is really a question best asked in the InfoPath or MOSS forums. http://msdn.microsoft.com/n ...Show All
SQL Server Leading Zero
Hi all, Anyone know how to transfer data from 1 or 2 characters to 3 characters. For example we have mpc_code in source as 1, 2, 3 then target need to be 001, 002 and 003. Then if 12, 13 then change to 012, 013. Put zero as leading space. Thanks. Grace It is now working and I just retype RIGHT("000" + mpc_cd,3) Yesterday I copy then change mpc_code to mpc_cd and still show red color. Thank you so much. Grace ...Show All
Internet Explorer Development 100% table height works in firefox but not IE..pulling hair out..going bald fast!!
Need help figuring this out please. Works great in firefox but not internet explorer. Need the page to expand to full height. The page can be viewed here. http://thecustomsa.web133.discountasp.net/default.aspx <%@ Control Language="c#" AutoEventWireup="false" Inherits="AspDotNetStorefront.TemplateBase" TargetSchema=" http://schemas.microsoft.com/intellisense/ie5 " %> <%@ Register TagPrefix="ComponentArt" Namespace="ComponentArt.Web.UI" Assembly="ComponentArt.Web.UI" %> <html xmlns=" http://www.w3.org/1999/xhtml "> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title> ...Show All
Windows Forms How to make verical scrollbar in gridview wider
Hi, I need to make vertical scrollbar in gridview and combobox wider because I am building a touch screen application. Any help or links will be appreciated. hi, Please Put the grid view in div tag and set the following property < div id =div1 style ="overflow:scroll;height:250px;width:400px" > After putting in the div you gridview will scrollable. For Extra things please go through following link http://www.dotnetslackers.com/DataGrid/re-22437_ASP_NET_Datagrid_with_scrollbars_and_fixed_headers.aspx ...Show All
.NET Development Why are data access application block deos not cosider this main issue.
Dear All when we use Microsoft data access application block for dynamic database layer In our applications which support SQL server , DB2 and oracle database . it need to be modified or using a wrraper to solve this problem . each one of those DBMS has his own syntax for SQL parameter Example : Oracle >> select empno,ename from emp where empno=:empno SQL server>> select empno,ename from emp where empno=@empno DB2>> select empno,ename from emp where empno= Note: consider that we use the native DB provider for each DBMS not OLE or ODBC provider . The DAAB will handle the parameter character. Just specify the parameter name and it will add th ...Show All
.NET Development pass argument to the Thread
hello Everybody I want to pass argument to the Thread Currently i m having the code like this createthread() { this._WatchThread=new Thread(new ThreadStart(RunWatch)); this._WatchThread.Start(); } private void RunWatch() This works fine, but i m not able to pass the parameter I want to pass the this parameter i.e. the whole class. Thank you in advance Um, I think you're just about a year too late to answer that question <points at dates on messages>... ...Show All
Visual C# C# Programming->Constructor
hi Ques when to use the private constructor. can any one explain with realworld examples As Mattew described, before .NET 2.0 if you had a class all with static methods it was a good practice to put emty private constructor, just to help other developers that use the class to not create instance of it, to be able to use the methods. Why, because if you don't have constructor, builder automatically adds public emty constructor. More offen you can be in situation where your constructor will be protected internal then private. Sometimes creating new instances can have some logic behind, so direct access to constructor will be hiden or controled by some other class. Only use for private will be when you ...Show All
SQL Server Data contained in a CDATA Section in XML is lost
I know that anything in a CDATA section will be ignored by an XML parser. Does that hold true for the SSIS XML Source I am trying to import a large quantity of movie information and all of the reviews, synopsis, etc are contained in CDATA. example: <synopsis size="100"><![CDATA[Four vignettes feature thugs in a pool hall, a tormented ex-con, a cop and a gangster.]]></synopsis> Sounds like a good one, no The record gets inserted into the database however it contains a NULL in the field for the synopsis text. I would imagine that the reason for this would fall at the feet of CDATA's nature and that SSIS is ignoring it. Any thoughts would be appreciated. Thanks. Yes, this is a k ...Show All
.NET Development Return-path using CDO or System.Net.Mail.SmtpClient
Hi All, How can I set the return-path using either CDO or System.Net.Mail.SmtpClient Thanks. But for some reason, the return-path header is not working when set. I was trying to use a different email addresses for the return-path and from fields for bounce processing. But all my bounces go to From address not return-path address. I am currently using third party tools like ASPEmail, but would like to avaoid if this can be done using System.Net.Mail.SmtpClient Thanks ...Show All
