Ramanuj's Q&A profile
Visual Studio 2008 (Pre-release) Animation cpu usage
I have a screen displaying, with other elements, a small mediaelement with a looping video and a border with a slowly changing background gradient fill. Looking at the cpu usage, I see: Animation cpu range approx average None active 0 Video only 40-58% 50% Border only 30-47% 43% Both 65-74% 70% I am using RC1 and AMD Athlon 2 GHz, 1G RAM. This cpu usage seems high to me. Any ideas Thanks, John I might be able to shed some more light on the "render tier" anomalies you're seeing. In the release notes for RC1 it said that some video adapters/driver combos would incorrectly report as ...Show All
Windows Forms FolderDialog in Installer was HELP
Hi All, I am using Microsoft Visual Studio .Net 2003. I'm experiencing some problems using FolderBrowserDialog control in a Form run by an Installer class during the Setup process of an application. I have to ask the user to choose a folder for a one specified file during the Setup process. When I try to Browse for Folders, I get a Window showing only OK and Cancel buttons, the description and nothing more (the treeview does not appear) Any other solution to use Folder Browser Dialog Thanks in Advance Hi David M. Kean, Thanks for your help. I have tried with above code. Still I am not able to see the treeview in FolderBrowserDialog. Is there any other solution, through which I can achieve my requirement (treeview ha ...Show All
SQL Server SRS Performance Problem
I have a performance problem with Reporting Services that I can't seem to get around. I have a stored proc based report that takes about 20 minutes to run. Even executing just the stored proc on the Data tab within Visual Studio takes 20 minutes. When I run the same stored proc that the report is based on in SQL Management Studio, the proc takes about 25 seconds to complete and returns 1 row (with minimal data). When I view the stored proc running from Management Studio vs. Report Server in Profiler I can see that the same exact command is being executed with the same parameter values. The only difference is that Management Studio runs a SQL Batch while Report Server is making an RPC call. I am lost as to why there is such a big d ...Show All
Smart Device Development Save SMS to the inbox
Hi I am developing an application in vb.net CF to send the SMS from pocket pc I got one demo from the following link :. http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnnetcomp/html/netcfsendsms.asp I can send messages to other mobiles but it's just displaying it on the mobile , I want it to save in the inbox . Anybody please give me solution for it . thanks. Hi I am developing an application in vb.net CF to send the SMS from pocket pc I got one demo from the following link :. http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnnetcomp/html/netcfsendsms.asp I can send messages to other mobiles but it's just displaying it on the mob ...Show All
Visual Studio Express Editions How to get Free VBE E-Book
I obtained VBE 2005 in a looong download. I registered it using my real name. I accessed the VBE forum using a fictitious name. I want to obtain the free VBE book "Writing my first program" but when I try to obtain it I get a page stating I have no permission to get it and it gives me a long coded value that looks suspiciously like something in the Windows registry. It offers me a change to contact someone and use the entered code as a reference. How do I complete the process to obtain my free copy of the e-book, preferably downloaded Please respond to old7t1@msn.com Thank you. Yep... got confirmation e-mail below, but apparently that is not sufficient, as the list of available downloa ...Show All
Commerce Server Adventure Works Catalog Import Export
Hi All, I am a beginner in CS 2007. I wanted to start changing few things in the CS 2007 Starter Site. I wanted to know that if I remove the Adventure Work's Catalog then can I actually import it back I have seen a facility in the menu of import, so I presume that would do it. But would the Adventure Work's Catalog be restored exactly as it was configured when I configured the Starter Site or do I need to do some other configuration once I have imported it back. Also does any one know a way of hiding a catalog or specific products in a catalog could be hidden Many thanks, Shriroop. The starter site contains the AdvworksCatalog.Xml file which contains the Adventure works catalog. You cn import ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Confusion
I have no experience w/ c# etc...but I love this idea of creating your own games for 360 etc with Game Studio Express. Can a person like me use Game Studio Express...like will there be walkthroughs for inexperience people Also does anyone know of any good books etc on beginning C#...and is this Visual Studio Express free or Hi XNAConfused! Grats on your interest in learning to develop on your own! David suggested the book Beginning .NET Game Programming in C#. I suggest you read the comments on Amazon before buying the book. It contains great info on general game design, but the code offered in the book will give you a massive headache trying to get it to compile or even make sense. It also assumes you are ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Animated Sprite - the MSDN example
Hi, With regards to this article, does anyone have the graphic they are loading in or a similar example I whipped up a simple 48x16 .png anim strip but when I use the AnimatedSprite class, it only shows one frame - the first, then blank, then frame 1 and so on, not the other 3 frames. I'm sure it's something simple I'm missing! I've entered the frame total as 3 by the way as I have 3 frames in that image. Cheers, Dylan. Thanks both. It was probably just the end of a long day, but I was still a bit confused at how rectangle works - you can probably help me there too ;) - is the placement and size of the rectangle different to the content pasted 'into' the rectangle or can you do both in a single command e. ...Show All
Visual FoxPro Passing multiple variables from forms w/ VFP7SP1
I'm an old Clipper (S' 87) programmer that needs to figure out forms with VFP. The attached code generates a form containing a set of four optiongroups that set basic comm port parameters on the local host for serial communication with an instrument (usually an electronic balance). I'm trying to use the form to replace a series of cascading menus in the original program. My intent is for the form to recognize the 5 existing parameters in the main prg, permit user input and then pass any changes back to the calling procedure or function using a array embedded in the form when the user clicks [OK]. Clicking [Cancel] should leave the parameters unchanged. Can somebody please suggest a technique for passing multiple variables back and forth be ...Show All
Windows Forms Automate PDF reading
Hi, I am trying to use the acrobat reader to read and view the pdf file. When I am using the acroPDF it works fine except it doesn't have the function of searching text (that opens the search panel and do the search). I have tryed objects like AcroExch.AVDoc but it can't create the type defenition of it and it said that a class doesn't registered. I checked it in registry. It doesn't exist there. Here the example of code: <code> // Create an Acrobat Application object Type AcrobatAppType; AcrobatAppType = Type.GetTypeFromProgID("AcroExch.App"); Acrobat.CAcroApp oAdobeApp = (Acrobat.CAcroApp)Activator.CreateInstance(AcrobatAppType); // Create an Acrobat Document object; Type AcrobatPDDocType; ...Show All
Visual C# upload a file to VSS
Hi, Is there away to create a new project (folder) and upload new files to VSS database, or upload new files to an existing project. Not checkin a file. But upload a new file. Thank you You have to first add that file manually to source safe and then continue with check in and check out. I'm not in the office right now so I can't remember exactly. But I think that when a new file is added to a project which is in source safe, a + sige is shown with that file's Icon in Solution Explorer which means that file is not yet added to the source safe, You can right click that file and select "Add to Source Control". Then that file is uploaded automatically. I'm sorry if i'm wrong but what i rem ...Show All
Visual Studio Reflecting domain property value on shape colour, outline etc..
Hello, I need connectors and shape to refect property values. Therefore, I registered connector and shape observers to reflect property changes on relationships and domain elements. I am using OnAssociatedPropertyChanged event handlers. This works fine when I change a property value. The problem is to present the right aspect of shapes and connectors when the model is re-loaded in memory. In that case, the events are fired for the connectors but not for the shape. So when the model is loaded, the connectors are presented correctly but the shapes are not. Any idea Thanks Alain Hi Steven and Everyone, I tried to implement the OnAssociatedPropertyChanged method. I just make a Mess ...Show All
.NET Development DateTime.TryParse generates an Exception
Hi, few days ago I had to reinstall my machine but, after it, I started to have problems with the DateTime.TryParse method: it throws an exception of type IndexOutOfRangeException.. This simple example: private void TestParseDate( string strDate) { DateTime date ; bool b = DateTime .TryParse(strDate, out date); // here the Exception is throwed } generates: System.IndexOutOfRangeException was unhandled by user code Message="Index was outside the bounds of the array." Source="mscorlib" StackTrace: at System.Globalization.DateTimeFormatInfo.InsertHash(TokenHashValue[] hashTable, String str, TokenType tokenType, Int32 tokenValue) at System.Globalization.DateTimeFormatInfo.CreateTokenHashTable() ...Show All
Visual Studio 2008 (Pre-release) Databinding in derived control
Below is a control I created that is inherited from Label. This compiles though it doesn't look right in the XAML designer (the gradient colors do not show up). When I add the control to another project I get an error message saying "Cannot create instance of type GradientLabel". What am I doing wrong with the binding GradientLabel.xaml: <Label x:Class="ui.GradientLabel" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" > <Label.Background> <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1"> <GradientStop Color="{Binding RelativeSource={RelativeSource Mode=FindAncestor ...Show All
.NET Development how to zip an Xml Document
Dear All, I found a library (name Chilkat ) through which i can easily zip(compress) xml file, but it has only 30 days evolution period, could any one please show me way how to compress xml. thanks You can use SharpZipLib to compress anything and it's free: http://www.icsharpcode.net/OpenSource/SharpZipLib/ ...Show All
