chendil vanan's Q&A profile
Smart Device Development focus ring for a control?
Hi, Is it possible to highlight a control with some sort of focus ring, when it receives focus, just like the dashed border for the text( on the control) displayed in normal windows forms. Plz help! Thanks, Hari. For standard controls on WM5.0 this is done for you. On PocketPC 2003, you must call DrawFocusRect via p/invoke. For custom controls, on PocketPC 2003, please use DrawFocusRect via p/invoke if a focus rectangle is needed. For WM5.0 draw a rectangle with color SystemColors.Highlight as the focus rectangle. David Wrighton .NET Compact Framework ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Is XBox Live / new DirectShow replacement coming to the PC still?
According to this website near the bottom, ( http://www.toymaker.info/Games/html/gdce_-_xna.html ), XBox Live is heading its way to the PC which I think is really neat. It also says that DirectShow is getting a new media SDK. I'm curious, since it was posted a while ago, is this still in effect It would be nice to see new these tools come out so I don't have to rely on third-party tools and SDKs. Thanks in advanced! Please post DirectShow questions on the DirectShow forum . Regarding Live services on Windows: Stay tuned. ...Show All
.NET Development Getting the Assembly Description found in AssemblyInfo.cs
Question In the code below I can extract a version number, name and .Net framework information, but I cannot find where to get the Description field as specified in the AssemblyInfo.cs. Where can the description, as well as other information, found in the AssemblyInfo.cs, be accessed from Code Assembly execAssembly = Assembly.GetExecutingAssembly(); AssemblyName name = execAssembly.GetName(); Console.WriteLine(string.Format("{1} {2:0}.{3:0} for .Net ({4}){0}", Environment.NewLine, name.Name, name.Version.Major.ToString(), name.Version.Minor.ToString(), execAssembly.ImageRuntimeVersion )); Platform .Net 2 C# Console Application advTHANKSance With a little reflection we can get the info very easily: ...Show All
SQL Server SQL Question
Hi there, I have these tables: Students student_id (PK) student_name Courses course_id (PK) course_name StudentCourse student_id (PK) course_id (PK) If I want to select a student that has 'course1' and 'course2', how do I write this statement This didn't work: SELECT DISTINCT Students.* FROM Courses INNER JOIN (Students INNER JOIN StudentCourse ON Students.student_id = StudentCourse .student_id) ON Courses.course_id = StudentCourse .course_id WHERE Courses.course_name LIKE '%course1%' AND Courses.course_name LIKE '%course2%' The problem is 'AND'. it concate the two course_name(s) to be like this condition: WHERE Courses.course_name LIKE '%course1course2%' Any idea Thanks oh i'm sorry...i've c ...Show All
SQL Server Text field fails on Update Trigger
I have written a trigger that will help me with logging. Whenever I see an update I compare the inserted and deleted tables. Everything works except for trying to find the value of the deleted text field. I get the error: Cannot use text, ntext, or image columns in the 'inserted' and 'deleted' tables. I am running MS SQL 2000 with SP3. I found the KB that says that it was fixed in 2000 SP4 [http://support.microsoft.com/kb/884855]. So I downloaded the MSDE 2000 SP4 to try this out and it is still failing. Does anyone have any ideas how to fix this without writing code outside of my trigger Evan The point of my post was to try and find a way around this error. I want to be able to find the " ...Show All
SQL Server Upgrade from MSDE 2000 Release A to SQL Server 2005 Express
I'm trying to upgrade the Default Instance of MSDE 2000 Release A which is installed with Mixed Mode and strong password to SQL Server 2005 Express in a Windows 2000 Server with SP4. On the Upgrade Logon Information screen, if I select SQL Server Authentication Mode, it will give me this message: SQL Server Setup Cannot Upgrade the specified instance by using SQL Server Credential. You must use Windows Authentication credential for the upgrade. Thanks for any help. I haven't seen this error. I'm going to move these to the Setup forum as they will have more details on security settings during upgrade. FYI - While this speicific issue isn't addressed, you can find the MSDE to SQL Expres ...Show All
Visual C++ error integrating mssoap30.dll with msxml4 or msxml6
Hi. I was trying to port a Microsoft Visual Studio 6.0 Project(VC++) to Visual Studio 2005. The project has a header which includes mssoap30.dll and msxml4.dll in a header file as follows: #import "msxml4.dll" using namespace MSXML2; #import "mssoap30.dll" \ exclude( "IStream" , "IErrorInfo" , "ISequentialStream" , "_LARGE_INTEGER" , \ "_ULARGE_INTEGER" , "tagSTATSTG" , "_FILETIME" ) using namespace MSSOAPLib30; I got errors stating that the namespace is ambiguous and it cannot be resolved. Sample Errors: d:\tempfilesswdl\z-drive\proj\debug\intermediate\msxml4.tlh(333) : error C2011: 'MSXML2::IXMLDOMImplementation' : 'struct' type redefinition &n ...Show All
.NET Development WSDL & SOAP
Hey all, Hoping someone can point me in the right direction here. Typically when building my soap object, the operation appears as <wsdl:operation name="ccValidateCard" parameterOrder="merchantName ccn expdate maskedCcn cardType returnCode"> <wsdl:input message="impl:ccValidateCardRequest" name="ccValidateCardRequest"/> <wsdl:output message="impl:ccValidateCardResponse" name="ccValidateCardResponse"/> </wsdl:operation> in the WSDL. Then i can go ahead and create my soap object using code such as soapResponse = objSoapClient.ccValidateCard(merchant, CCNumber, dateMMYY, maskedCcn, cardType, returnCodeValidation) I'm working with a different WSDL file ...Show All
Windows Live Developer Forums How Can I Change Msn State(Online,Ofline)?
I Want To Change Msn State(Online,Ofline) So How Can I Change You can do that with a so called Add-In. Look at this page for more information, especially the User.Status part is interesting for you ...Show All
SQL Server How the windows forms application get the notification when record inserted in Table
I have an application, which is developed in windows forms, where one of the form is admin form, it contains the data grid. It fills the record of user details from user table. When other user creates the new user account, the admin forms gets the notification automatically and refresh the data grid information. Can any one give the guide line or sample code It will be great help full. Thanks Hi - There are plenty of examples of using Query Notifications on the internet. Google for it and I'm sure you'll find something relatively close to what you're trying to accomplish. If you're still considering using SQLNS to address the issue, I don't know of an example to direct you to. S ...Show All
.NET Development DataSet object - Is it Garbage Collected after usage in COM+?
Problem: I have implemented Middle-tier COM+ services in .NET. I am having a CLBS architecture for high availability. If I use datasets in the middle-tier, what will happen after the COM+ call (that uses dataset) returns will the dataset object just filled "using Fill()" be garbage collected or will it stay in memory to better serve the next call to the same dataset I got this question because in COM+, the object will be pooled right so, when they are pooled, what happens to he datasets they have accessed If the dataset object stays in memory, I dont have to implement any caching service to cache this dataset. If its garbage collected, then I need to persist this dataset. It really depends how you implement/configure the ...Show All
SQL Server Why date Columns default to 1900 after inserting dates in SQL Server Everywhere.?
I have created a sample Database for the school project, After executing the query below, the Date column is supposed to have the dates I have entered before, However the dates shown are 1900. Any idea why is this happening I appreciate your help. Thank you. Query: Drop table AccountReceivable GO --BEGIN TRANSACTION Create table AccountReceivable ( AccountRecID int identity ( 1 , 1 ) not null, PatientID int not null, PresentCharges int default 0 not null, PaymentMade money default 0 not null, PreviousBalance money default 0 not null, BalanceDue money default 0 not null, LastPay ...Show All
Visual Studio Team System Running TFS on port 80
Is it possible to run TFS on port 80 I tried to change the port of the tfs website to 80 and assign a hostheader value to the sts website but when i register the tfs in the client it seems to try to locate the list of projects from port 8080 although i explicitly set the port to 80. I saw a post about using ISA server to accomplish https and basic authentication but what i would like to accomplish is to run tfs on port 80 with integrated authentication. Are you using some method other than NTLM to authenticate in such a scenario I'm not disagreeing with you, I'm just trying to understand the details. We know we limited our cross-network story somewhat, when we limited auth to NTLM in v1; we intend to ...Show All
SQL Server Differences between 2000 and 2005
Just installed 2005 Enterprise Edition on an XP Media computer... I am blown away because nothing looks familiar to me. Anyone else feel lost Where is the best site for specific changes from 1 version to another... it appears that Enterprise Manager is gone, Query Analyzer is gone, my brain is gone thx Kat I spoke with Microsoft and they said I couldn't install 2005 on a XP media machine. I'm not sure now about the other versions. All versions of 2005 require 2000, xp, etc. Nothing is listed as working with the Media version operating system. I was told I had to upgrade to the full version of XP professional. Nice huh Or I could get rid of all of the programs installed and bring it to another operating system. Oh well, on ...Show All
Visual Studio 2008 (Pre-release) Problem: Xbap won't design xaml in subfolders; IDE goes "Whoops"
In Visual Studio 2k5, I create an Xbap app, runs fine w/ F5, displays in IE 7 no problem. The App.xaml <Application> element has an attribute StartupUri="HomePage.xaml" which is correct, app runs, no problems. In the project, if I use Add New Item to add a Page (WPF) in the default (base) folder, it works fine. The IDE designer works, the page can be navigated to at runtime, everything's great. If I try Add New Item and create a page in a subfolder, the page is created as before (with the xaml & .cs) but the xaml won't design visually. If I try to flip to the design tab, I get a Whoops message, saying error reading designer file. The App.xaml file's <Application> element's StartupUri attribute now shows as a ...Show All
