prashantpsoft's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Game Object Usage Guidelines
My questions revolve around some of the XNA Game objects. For instance, what is a DrawableGameComponent used for or at least what is its envisioned usage Same with a GameComponent Why use these classes as apposed to coding items in the Game object's Update/Draw methods The SpriteBatch object renders a batch of Sprites. I remember seeing an example of background and foreground SpriteBatch objects. Is that what this object was envisioned for, rendering layers of Sprites Can a DrawableGameComponent create a local SpriteBatch object to render sprites Is this just programming preference How do these objects "automatically" tie into the Game/Serivices objects How coupled should the GameComponents be to the game object I ...Show All
Architecture pattern based code generation
Hi Everybody, I need a tool which can generate pattern based C# code (for vs.net2005 if possible). Please pour in with your inputs. regards I though there was a recent announcement about making the Visual Studio 2005 SDK (which includes Domain Specific Languages) public. But, I was mistaken; only the Visual Studio 2005 SDK Documentation was made public. You have to register with the VSIP to download the SDK. Registration is free. It sounds more like Software Factories are what you want anyway. Software Factories with Visual Studio 2005 include The Guidance Automation Extensions (GAX) which "expands the capabilities of Visual Studio 2005 by allowing architects and developers to run guidanc ...Show All
SQL Server KPI Trend depending on last 4 months
Hi! I've created a KPI. My problem is on the creation of the MDX trend expression. I'd like trend to depend on last 4 months. I wrote this query which works fine in SQL Server Management Studio : WITH MEMBER [APPEL].[Hierarchy].[My4Months] AS Aggregate( lastperiods(4,[APPEL].[Hierarchy].[ANNEE APPEL].&[2006].&[02]) ) SELECT [APPEL].[Hierarchy].[My4Months] ON COLUMNS, KPIValue("Pourcentage de respect") ON ROWS FROM [Amon] I'd like to obtain the same result in SSAS. So i created a calaculation nammed My4Months with the expression : Aggregate(lastperiods(4,[APPEL].[Hierarchy].CurrentMember)) ...and I entered as trend expression : CASE WHEN (KPIValue("Pourcentage de respect"),[APPEL].[H ...Show All
Visual Basic could not update the database
Part A How do I link textboxes to individual database records when the database has say fifty rows and fifty columns. The idea being to display and maintain a database with textboxes on a form that stand independent of each other that point to a specific spot in the database. Part B Once this is possible then .. To be able to manage this data based on years meaning... I would like to have this basic setup but I am able to have the database represent a set of data for a particular year and I would be able to choose to display data based on the year. Please, if anyone knows .. respond asap.. Thanks Shihan ok i have a strange problem. I individually bind the textboxes to the dat ...Show All
Silverlight (formerly WPF/E) Pixel based graphics
Does the Feb CTP adds any support for doing good old pixel based effects The vector stuff is cool but for some things pixel based effects are mandatory. If not, is it planed for a future version No the Feb CTP doesn't add support for pixel based effects. Adding graphics methods that aren't based upon vectors isn't planned for the immediate future. -mark Program Manager Microsoft This post is provided "as-is" ...Show All
Visual Studio 2008 (Pre-release) Item Selection Area
Hi! I have Listbox and TreeView both have items that contains controls (textblocks and images). And i want to make selection of the whole item when user clicks on it. However selection occurs only when user click on some child control of the item but not when it clicks on "empty places" of the item (e.g. spacings between elements). How can i fix this Thank you I ran into something like this before. If an element's Background/Fill is 'Transparent' then it is not visible to hit tests. In that situation, clicking on it will not trigger the control's mouse handling logic to result in an item being selected. Try setting the background color of the control and/or item container and it should pick up t ...Show All
Windows Forms Trouble having column in datatable recognize the data source
I recently posted a question, but it has not been answered, possibly because my question was not very clear. I have a datatable in the designer view of my dataset (I'm using VB Express). I added a new column to the datatable to correspond with a new field that I added to the underlying access database. For some reason, under the properties of the new column for Source, the database field does not show up. So I am unable to bind the new column in the datatable to the field in the database. What do I need to do for the field to show up under the Source property so the new column gets bound I hope I did a better job in describing my problem. I'm at a standstill in my development until I get this resolved. Thanks, John ...Show All
Visual Studio Team System Displaying Code coverage results with automated MSBuild
My assemblies.testrunconfig file includes code coverage setup. When I run my build direclty from VS, the code coverage results are displayed correctly. I am running an automated build and I run into couple of issues: a) The test results file does not contain the code coverage when I open the corresponding trx file on the buildserver b) The test results folder cannot be published on the drop location. I checked my security on both servers and I have full control. Anything I am missing Here is the excerpt from the build log: Target CoreTest: Creating directory "C:\Build Output\Alpha Releases\ConnectTest\BuildType\..\Sources\..\TestResults". __________________________________________________ Project "C:\Build Output\Al ...Show All
Visual Studio adding a where clause
I have a crystal report that grabs all the data from the database, MS Access DB, but I need it to only grab the 1 record a user wants. The user selects an item from a datagridview and I want only that item to display in the crystal report. I tried using the selection expert, but there doesn't seem to be any way to pass a DB ID to crystal reports to use in the Selection Expert or Selection Formula options. I'm using C# if that makes any difference Thanks in advance for the help I know how a follow up question: How do I get my subreports to us the same parameter I passed to the same report The Parameter Field is the same name and data type, but I still get the Pop-up to enter a discrete value. ...Show All
Visual Basic Keydown event
I want to handle a value in a textbox. i have 4 buttons, which giva + 1 or + 10, -1 and - 10. but I want to automaticly decrease the value eg. from 400 to 100, if I hold down the -10 key. I need to work with a timer, and set a boolean to true if the key is down. The only problem is, it never gets into this routine..... Private Sub btnminmin_down(ByVal sender As System.Object, ByVal e As System.windows.Forms.MouseEventArgs) Handles btnminmin.MouseDown btnminmindown = True End Sub Or for a particular textbox with common handler for both events Private Sub Textbox1_DownEvent( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Textbox1.KeyDown, Textbox1.MouseD ...Show All
Visual Studio Team System Unable to upgrade for Workstation to full TFS
I installed the Workgroup version of TFS and we purchased the "full" license. I called in and received the Product Key. I entered the product key and say the command window open, stop IIS, restart IIS and closed. I am unable to add any users to the [server]\Team Foundation Licensed Users group. It keeps giving me this error "TF50626:Maximum Users(5) in License Group. Any help Hi Smoon, are you running in a dual tier mode You should be able to run the setup again, add remove programs -> visual studio team foundation server (databases) or (services) or simmiliar wording depending if its the app tier or data tier. You then click on change/remove. You will be presented with a s ...Show All
Windows Live Developer Forums onclick VE Collection
Hey! I have found out how to add a VE Collection pulled from local.live.com. I had a program in the past then when you clicked on a custom pushpin the address would show up in the text box, now I am trying to figure out how to do with a VE Collection. I have the code and it shows up but once you click it nothing happenes. It goes by ID so I dont know if you have to do something special it being the collection but the code it below so it you can help that would be great! Thanks < html > < head > < title ></ title > < meta http-equiv ="Content-Type" content ="text/html; charset=utf-8"> < script src ="http://dev.virtualearth ...Show All
.NET Development OpenFileDialog lock directory
Hi, I am using OpenFileDialog in order to get a file selected by user. Now this locks the directory containing the file whcih user chooses. So code give below fails and thorows exception we it tries to delete the directory. string applicationFile = string .Empty; using ( OpenFileDialog openFileDialog = new OpenFileDialog ()) { string filter = Service .Foundation.ResourcerService.GetString( "ApplicationFiles" ); filter += " (*." ; filter += Service .Foundation.ServiceService.ApplicationFileExtension; filter += ")|*." ; filter += Service .Foundation.ServiceService.ApplicationFileExtension; openFileDialog.Filter = filter; if ( Dialog .Launch(openFileDialog) == ...Show All
Visual Studio New PLKs for 2003 not working
I requested a new PLK from the website and have just received it but it doesn't work. I have a managed package. I've modified the resource file to contain the load key, the new version, the company name and the product name. I've modified the RegisterLoadKey with the same information. What have I forgotten I think the problem is that having requested a key once (for 2005) its not letting me request a new one. The view/request plk button takes me to a page showing me a PLK, but doesn't have a "request another". Is my only option to create a new product, and get keys for that, or is this a bug in the site Jamie ...Show All
SQL Server Top-Level Structure
I'm going to preface this with that I'm new to DB design but hopefully I can ask some very specific questions so that I don't head in the wrong direction. My database server name is KIERONEIL\SQLEXPRESS Let's say that I want to develop two applications each with a Dev, Stage, and Production environment. Do I create two new Database servers with three databases in each i.e. KIERONEIL\SQLEXPRESS\APP1 Databases: App1Dev, App1Stage, and App1Prod KIERONEIL\SQLEXPRESS\APP2 Databases: App2Dev, App2Stage, and App2Prod Is there a better way or are there limitations to doing it this way Thanks, Jens, Thanks for your reply. Since I am just a hobbyist all instances will be on the same physical machine. I guess I was mi ...Show All
