Ritche_M's Q&A profile
Visual Studio Express Editions Visual Web developer 2005 and SQL server
Hi to everyone, somebody can tell me how to validate a login with an aspx page and sql server with visual web developer 2005, it's my first time using web developer so i don't know how to do that!! Any help would be appreciated What exactly are you trying to do For simple user validation, all you have to do really is drag/drop a Login control onto on of your pages. You can allow users to register on your website with the CreateUserWizard control. There are also other security type controls on the Login tab of the toolbox. Start looking there... ...Show All
Windows Forms Does .Net provide any routines to list open windows?
Hey, I was just wondering if .NET provided any routines that can enumerate open windows. I know it can be done using some windows API calls, but I wasn't sure if .NET had any such features. Thanks in advance for any help. As far as I know, there's none in .NET that you can use to list windows, you still have to use P/Invoke API calls. Anyway, EnumWindows and/or FindWindow API are fairly easy to implement in .NET. Regards, -chris ...Show All
Visual Studio Working with a DTE.Project and an MSBuild Project
I'm working on an automation project that does a bunch of work with a DTE Project, and for the most part, the DTE Project exposes everything I need.... Except for the "internal" settings of the project file itself, ie - the info contained within: <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> .... blah blah blah... </PropertyGroup> On the other hand, instantiating an MSBuild Project allows me to go after and play with all the underlying goodness using the GetEvaluatedProperty() and SetProperty() methods. My dilemna is trying to save any changes I made via the MSBuil ...Show All
Visual Studio Display selected data on crystal report
Hi everybody, I like to display start date and end date selected on the crystal report. How would I do that, declare what type of field, and how would I transfer the value from code to the crystal report Related to link: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=322645&SiteID=1&mode=1 den2005 1st u have to insert textbox in Crystal Report & give name e.g. StartDateTextBox & then in VB Code u assign values by following way Dim Rpt As New CrystalReport1 Dim ObjAchieved As CrystalDecisions.CrystalReports.Engine.TextObject = CType (Rpt.ReportDefinition.ReportObjects.I ...Show All
SQL Server June CTP - Passing NULL value to a Sub-Report Parameter
Passing NULL value to a Sub-Report Parameter fails with this message - "A parameter or data source credential is missing a value. Prompting for this value has been disabled. Supply a value or enable prompting." Anyone else seen this Thanks Paas the parameter to subreport . Syntax is paramField.ReportName="Transferee"; paramField--> ParameterField Transferee--> Sub report name Total Syntax is paramField = new ParameterField(); discreteVal= new ParameterDiscreteValue(); paramField.ParameterFieldName = "@CustId"; discreteVal.Value = 2463; ...Show All
Visual C++ Visual C++/CLI and DirectX
Trying to get DirectX working with Visual C++/CLI in Visual C++ 2005 Express Edition. I've installed the .NET 2.0 SDK and the latest DirectX SDK and have setup up the directories for DirectX in Visual C++ 2005 Express... Tried looking at the DirectX Tutorials but everything in there is for C# as far as .NET goes. Any ideas how to get DirectX working with C++/CLI The managed DirectX framework is written in .NET, therefore can be used in any .NET language (for more information, google on ".NET interop"). Anyway, the sample tutorial you pointed out is for unmanaged DirectX (ie. DirectX progr ...Show All
Visual C# Normal Distribution Function
Hello all, Is there a way to use the normal distribution in C# For example by loading a statistics-library I would like to be able to calculate the overlap between two different normal-distributions (with different means and deviations). Or else the intersection point between these two distribution functions Thanks in advance, Jaldert Well, it'actually 2 questions. 1: is there a library for the statistical function "a normal distribution" Here's a picture of one: http://www.tushar-mehta.com/excel/charts/normal_distribution/images/normal3.gif This library should be able to calculate t ...Show All
Visual Studio Express Editions Book Recommendation to Learn C#
Hi Everyone, Anyone know of a really good book on learning C# 2005, that is easy to read and understand, without a lot of fluff and page fill Two that I have been looking at are "Learning Visual C#, 2nd Edition, by Jesse Liberty, and the Microsoft Visual C# 2005 Step by Step, by John Sharp. Both about 500 pages. I have the MSPress "Visual C# 2005 Build a Program Now", that the Express CD comes with, but need more information about things like delegates, interfaces, abstraction, collections, etc. that are to the point and won't put you to sleep in less than 1 page. Any thoughts would be very much appreciated. Tha ...Show All
Visual Studio Team System Move data to different SQL server
What are the steps involved in moving the TFS data to a different SQL 2005 server Right now, TFS is set up in single server mode. TFS B3 Refresh. Thanx, Robert, Please see info on Rob's blog on backing up and restoring data to a different server in http://blogs.msdn.com/vstsue/articles/500334.aspx . ...Show All
Visual C# Help me, please !
Hy ! Please help me ! When i try to execute a command such as tasm.exe on the command window in VC#, the messeges that have been created by this command aren't printed in to the filename that Tools.LogCommandWindowOutput had created, onlz the syzstem messeges are. Can I print the messages into the file .log Yupi, io, uraaa, heheehe, thank's, thank's, thank's, thank's, thank's ! It's working ! Thank's a lot ! It's like in Unix with ">>". Ok, thank you ! ...Show All
.NET Development ProcessThread.ProcessorAffinity performance impact?
I am wondering about the quantitative impact of tuning ProcessThread.ProcessorAffinity property. What are the particular use cases of the such property In particular, I have a bi-processor machine that support an intensive CPU/Disk .Net application (scientific computing). In this application, I have sereval threads with distinct priorities (basically one thread with high priority, the few other with low priority). Should I manually assign the high priority thread to one processor and the other threads to the second processors I know that the only certain answer would be to do extensive mesurements. But I would rather have some insights ...Show All
Visual Basic Making another application active
Can anyone give me a snippet that shows how to make another Application the active one I ran into a snag with my test automation program. Everything is fine if I make it totally passive: run the Application I am testing, then run my program, and finally, make the application active again by clicking on it. When I do this, my app sends keyboard strokes to the program with no problem. But if I need to select an option later on in my test program, keyboard strokes start going to my test program instead of the Application. I use SetFocusAPI to set the focus correctly, but if the Application is not the active one, setting the focus ...Show All
Visual Studio 2008 (Pre-release) Why the name "DLinq"?
Any reason for why it's called "DLinq" It seems that calling it "RLinq", with the R for Relational, or "SLinq", with the S for SQL, would make more sense. This is true.. However, as you allude, it need not remain so. I think it wouldn't take much to have a pluggable DataContext provider which would contain the logic for determining what to send to the server. I'm guessing the translation logic is in DataContext, and not Table<> Actually, I think it'd be great to just send the expression tree to the server, but that's just me. ;) Speaking of which, is there anywhere a good (read: do ...Show All
Visual FoxPro editbox programmatic change
I am looking for an easy way to determine if I've made interactive change in an editor box. The issue is that there are about 16 controls on a container, they are initialized from a table record thus their values at activate time generally are not trivial default. I have to save the changes with a SAVE button if I made any but I want this button's click method to quickly determine which control values have been changed. I do not want to do REPLACE for the fields with values that haven't been changed. In case of simple controls like a combobox I can store the initial value in Tag property and do the comparison programmatically. Sometimes t ...Show All
SQL Server Trouble inserting multiple nodes during UPDATE
I am trying to insert multiple nodes to an xml column using an update statement from a joined table. For (a simplified) example: UPDATE Documents SET DocumentDetails.modify('insert <DocumentParty name="{sql:column(''n.Name'')}"/> ...') FROM Documents d INNER JOIN DocumentNameXRef dnx ON d.DocId=dnx.DocId INNER JOIN Names n ON dnx.NameId=n.NameId Each document has multiple "party" names that I am trying to insert to the DocumentDetails xml column on the Documents t ...Show All
