Orange_Oli's Q&A profile
Smart Device Development Eliminate flicker in picture box
Hi, I have a C# project where I try to draw lines over an image. The problem is that I get flicker because of the Refresh. Now I've already seen that overriding OnPaint Background works for the entire Form, but what if I'm only drawing in a picture box Is there any way to override pictureBox_paint and prevent the flicker Thanks What I really wanted was to implement double buffering but i don't know how to do it. I've tried to override OnPaintBackGround which actually works on eliminating the flicker but then my application starts with the loading screen picture among other things... I doesn't stay very clean... Naturally! ...Show All
Smart Device Development Problem RElated to continous Response Stream.
Hi All, I got a endless Response stream (which is XML data) in turn to my Http request that I send to my server. When ever I try to do StreamReader reader = new StreamReader (response.GetResponseStream()); while(!reader. EndOfStream ) { do something } My compiler keeps gathering the response until some predefined timeout occurs. which is approximate 4-5 minutes. Then only after this I am able to read my response. Same things happens again when it automatically starts appending the repsonse again. Can somebody tell me a way how to do it right How to reduce that predefined time to some seconds so that i can deal whatever response I got instantaneously. It would be a great help of your's, If anyone c ...Show All
SQL Server Query Performance
How to monitor the Query performance for the AS2005 I am use the Performance Monitor to monitor it, but there have too much counters for the AS2005, such as MSAS 2005 MDX, MSAS 2005 Thread, MSAS Store Engine Query.... Which counters are the best to use for monitor the query performance. For getting some ideas on how to increase query performace you should definitely take a look at the recently released Performance Guide. You have several ways to investigate query and overall server performance: 1. Run SQL Server profiler and capture all MDX-related and progress report events that happen during query execution. For that you should only have a single query running on your server so that other queries wouldnt influence the results ...Show All
Windows Forms Tutorial for using graphs?
Hi Can someone please post a link to a basic tutorial for using line charts, base charts and similar basic chart types in Visual Studio / C#. Thanks. Hi Olle, VS does not provide charting libraries with C#. You should take a look at the control vendors that have rich control content. Here's a link with more information - http://msdn2.microsoft.com/en-us/vcsharp/aa336737.aspx Thanks Deep ...Show All
SQL Server OLAP Cube from an OLTP (normalized database)?
Hi All, I am new to OLAP and every book that I have read so far talks about creating an OLAP cube from a Star Schema (Data warehouse). I want to ask that, is it possible to create a Cube in Analysis Services from an OLTP (normalized database) without creating any star schema I understand that the first concern is performance. Regards, Ravi S Thomas, Thanks a lot for the pointer and recommendations. As you mentioned one can use named queries and data source views. Are these features available in Analysis Services 2000 (or SQL Server 2000) Thanks a lot again. Regards, Ravi ...Show All
Windows Live Developer Forums Messenger Development - Basic Help
Hello everybody, First I'd like to excuse myself for asking questions like this directly, instead of digging in documentation first, and trying to find answers there. Some advices from experienced developers would be really helpful I need some general advices about developing an application that uses Messenger. What I need is speech recognition and text to speech capabilities on client side. Is there a way to use this stuff with messenger client, and what is an easiest way do develop it Since I never had a contact with messenger development, I would appreciate some guidelines and general suggestions about how to start building application based on Messenger... Thanks in advace Hi, There's no need to excuse yourselve, a for ...Show All
Windows Live Developer Forums Constant server busy error when trying to load vecollection from local.live via scripting
Greetings, Apologies up front if I missed something obvious in the VE3 documentation, but I'm trying to load a vecollection from local.live via the collection's provided permalink URL in my clientside script, but I always get the server busy error in my map control as a response. Is the server in fact generally maxed out, or am I using the wrong URL for the job etc.. The exact same URL does work to open the local.live site and successfully show the collection in that map control when I pop open a window with it from the same script function, so I don't think it's a typo or such. And, if the remote load is not do-able, is it possible to create a vecollection file on my server that I can then load locally (I know about and am levera ...Show All
.NET Development Dataset records
I am using VisualStudion Visual Basic 2005 how do I or can I assign an individual record or row in a dataset to a variable to be used elsewhere in the program. There doesn't seem to be an index I can use. I tried your complete line: myDataset.Tables(0).Rows(0 - 300) '("Name") for specific field with and without the ("Name") field same error. Program stops with an error at myDataset.Table(0).Rows(1) If I comment out the ".Rows" I get the same message ================================================ Error message. {"Overload resolution failed because no accessible 'Rows' accepts this number of arguments."} System.MissingMemberException was unhandled Message="Over ...Show All
SQL Server Job activity = slow, non job = fast
I have created an integration services package with a script-source reading data from Active directory. Pretty much data is read and written into a sql2005 database. I have notised that when I run the package via right-clicking the package (Under stored packages\MSDB) and selecting "Run Package" it takes about 45 minutes for it to complete successfully. The same goes if I run the package from inside Visual Studio. However, when I create a job and put this package as one of it's tasks the task takes about 1h 40min. This is more then double the time! In neither case the server is occupied with soething else. And I have tried it several times so it wasn't just an "accident". Any idea of what this depends on regard ...Show All
Software Development for Windows Vista Writing an ISO image to disc
Hello everyone! Thanks to everyone who participated in the Optical Beta chat today! I'm trying to get a better, full-feature sample that we can put up on the forums, but for now here is a sample derived from our WinHEC slides that burn an ISO image to a disc. The only missing piece is creating a stream over the ISO file. I cannot get a piece of code that I can release for this in VBScript yet, although a good start is SHCreateStreamOnFile for C++ development. Even though it does not work without this one function, this sample still shows the necessary steps to burn an ISO image. Although this is officially unsupported code, I'd be glad to answer any questions about the IMAPIv2 functionality it exhibits... ...Show All
Visual Basic COM Interop Exception: Type Mismatch
Hello, I was accessing a property named "Equality" of an ActiveX component through VB 2005 interop. In the object browser, the property was displayed as: Property Equality(ByVal index As Integer) As Integer I tried to access "Equality" with the following statement: 'Assuming pRenderer is a valid reference. Dim retVal As aims.imsEquality = pRenderer.Equality(1) The statement execution resulted in Type Mismatch exception. I looked around MSDN and the closest thing I could find was http://support.microsoft.com/ kbid=316138 . Does anyone have any idea how to properly access a property of an ActiveX component that takes an argument Thanks. Hi Stephen, It appears that t ...Show All
Software Development for Windows Vista Custom Info cards
hi using info cards can i create a personal info card with a custom attribute.....what i want to do is to add a attribute like my education qualification on to a personal card that i create... Regards Raguvind Ganesh Hello Raguvind, there are at least 2 aspects to consider while answering your question: the design viewpoint and the purely technical one. Design-wise: you create an identity provider when... well... you want to provide identities :-). I'll explain better. If you are a bank, a government, the owner of a club, a service on the web such as mail or similar... you already "own" a list of customer identities. You may want to enable your customers to use an Information C ...Show All
Visual Studio Team System Some images are not displaying in playback
Hi Our AUT was developed in .NET 2.0 ,and used java script , some gif images in the application, While doing web testing , some images are not recognized by the tool ( .gif images and some java script pages are not loading while doing playback ) and in Request it is dispalying as failed (for example " http://sridhar/sriQA20060703/plus.gif " and http://sridhar/sriQA20060703/ plus.gif as failed request in a url ) please help me , how we can we(VSTS) can recognise all objects in application. thanks sridhar Hi Yes i am getting the gif when i placed the url in browser, Web browser in VSTS was not displaying the gif images ( Actualy i want to calculate the time taken by application for loading on I ...Show All
SQL Server Cannot shut down VS after using report designer
Routinely when I use BIDS to work on a report design, I cannot close BIDS because I get a message box that says: Microsoft Visual Studio cannot shut down because a modal dialog is active. Close the active dialog and try again. Of course, there is no visible dialog open. I actually have to terminate the process from task manager. I do not get this problem when using SSIS or SSAS. Only SSRS. Any Ideas Thanks! BobP The problem normally occurs with me when I had used the query designer an has run an query. When continuing the work at some time sql server ask the question whether to keep the result set or not. When VS is not the active window this message is stuck behind the VS screen and you can not stop it. It is ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Question on XNA Beta 1 Performance
Hello I have downloaded the XNA Beta 1 and created my first little test application. At the moment I am rendering a quad as the floor using a triangle fan and a rotating cube above it (indexed triangle list). My FPS are being drawn using a bitmapped font i wrote up real quick. Assuming I am doing everything correctly I am only getting ~400 fps. The same application (albeit using ID3DXFont) in C++ runs at ~800 fps. That's a 50% decrease in performance :\. I understand this is only a beta and may not be fully optimized but even then a 50% drop is fairly hefty. Could some of this be attributed to the fact that I'm inheriting from the high level Game class for window management instead of writing my own Maybe I'm just doing something very wron ...Show All
