Kolf's Q&A profile
.NET Development Play a media file which is stored in isolated storage space..
How can I Play a media file which is stored in isolated storage space..... Regards RR raj.ramesh wrote: It just play a single sound... But I need to play the full media file... What do you mean by this As far as you have a media file in wav format i.e wth *wav extentions PlaySound() can handle it and the SoundPlayer class in .Net 2.0 is wrapper on the same API. So i cant see any problem even if you have a wav file of 5mb to play using PlaySound()! Best Regards, ...Show All
Windows Forms Changing the font in dataGridView for specific cells.
I have read the MSDN library about how to format the fonts and cell styles for all the rows and columns of a dataGridView. What I need to be able to do is change the Font of a specific cell, or I could even get by with changing a whole row. What I can't understand (and this might be a result of me being tired) is how you change the Font property for one row, then use the default Font properties for the remaining rows. Basically, what I need to do is some of my cells are simply "headers" indicating a section in the data, and I need that cell (or row) to be in bold. Then, of course, return to the default properties so the rest of my data is in regular font. DataGridViewCellStyle styl ...Show All
.NET Development Where's the WinForm event for AFTER a form has finished loading?
I need to fire an event AFTER a form has finished loading and is displayed to the user. Currently, I'm initializing my MapPoint control on my form in the form_load event. But, if the connection to the MapPoint server is down, the form never really finishes loading before an exception is thrown and it's very slow. I want to put my MapPoint initialize inside an event that fires AFTER the form has finished loading and is displayed to the user. How can I do this Hello All. _Quimbly_: Well then, what about putting the MapPoint ini on a background worker thread HTH. ...Show All
SQL Server Excel 2007, MDX Compatibility and connection string (for ragged dimensions)
I'm trying to open a simple SSAS 2005 cube with a ragged hierarchy (it has a level that contains member that should be hidden if the member name is the same as the parent). I read about the necessity to use MDX Compatibility=2 into the connection string to see the HideMemberIf property in action. The dimension browser in BIDS does not display a member into a level only if it has no visible childs. May be this is a browser issue, as I read somewhere... With Excel 2007, it should be possible to change the connection string. Unfortunately, even if I change it, Excel 2007 force the "MDX Compatibility=1" into my connection string. Moreover, it adds a "Safety Options=2" and "MDX Missing Member Mode=Error" and even if I try to change them, ...Show All
Visual Studio 2008 (Pre-release) RichTextBox Blocks
Hi, I would like to know if it is possible to make an option that can maybe be exposed to alter the behaviour of the richtextbox. At the moment, when the richtextbox is empty, or if you are on an empty line, the default behaviour when adding InlineUIComponents is to create them as BlockUIContainers. This is very frustrating as I only want my "unique" object to stay a specific size, and to still add text after and before it (like having a small image that you can have in the same line as the text) What I would like to happen is when I create an InlinUIContainer on a blank line, is instead of making it a BlockUIContainer, create a paragraph and add it as an inline, so that I don't have to do post processing work to get it to ...Show All
Visual Studio 2008 (Pre-release) Linq implementation sample
Is there available sample of implementation of Linq interfaces for own data storage You may take a look at my sample Linq to Amazon implementation . It shows how to implement IQueryable to query a web site. Querying you own data storage would require the same implementation steps. ...Show All
.NET Development Fill DataSet from Txt, memory doesn't like it
Hi all, This is my first question. Perhaps anyone can help me with what I'm doing wrong and what I can do about it. I am reading a textfile row-by-row, modelling and analyzing the data. Each row is then put in a DataSet. Afterwards, we will bind the DataSet to a DataGrid and allow the user to view/edit records before it is finally published to a SQL database. Sometimes the amount of records is substantial, so to display the status and keep the GUI responsive this process has been contained in a backgroundworker. Ofcourse not with every processed row the status is updated, but in batches. Say about every time 100 records are processed. All works perfectly fine, with the horrible exception that reading large sourcefiles (+1million rows/200mb ...Show All
SQL Server SQL 2000 Agent
I have a job which runs a stored procedure every minute - the stored proc usually takes about 10-15 seconds to run but sometimes it can go over 1 minute. What happens if the job is running and takes more than 1 minute to complete - will the job start again and run concurrently with the first instance of the job Or will this cause problems No, it won't. SQL Server Agent won't kick off a job if the job is already running from a previous schedule. This ensures that a job can't be executing multiple times, at least by the scheduling engine. ...Show All
Software Development for Windows Vista Certified for Vista - TEST CASE 15
I have a question, regarding Certified for Vista, TEST CASE 15. Verify application installs to the correct folders by default (Req:2.3) and which one it says: 6. Default install directories are: a. Native x86 and x64 applications i. Program Files - %ProgramFiles% ii. User’s AppData - %APPDATA% iii. ProgramData – ALLUSERSPROFILE% Our application has 2 kind of shared user data: 1.) Sample data that is the same for all users, that is copied at the install time, at may be modified by users at application run-time 2.) License data (serial number) that is the same for all users, that is taken from user input at the install time, and also sholud be written at install time to a shared folder. In witch directory should I put this kind of ...Show All
Visual Studio 2008 (Pre-release) Overriding OnLoadCompleted not working for some reason...
Hi all. I have a sample application that overrides the OnLoadCompleted in the Application code behind. This works fine. However, for some reason, when I create my own project and I use the same code, it doesn't work :(. All I am doing is: public partial class App: System.Windows.Application { protected override void OnLoadCompleted(NavigationEventArgs e) { MessageBox.Show("hello"); base.OnLoadCompleted(e); } } For some reason the OnLoadCompleted isn't firing... is there any specific thing I need to fulfill to have this event fire Any ideas Nevermind ... figured it out due to my own stupidity. Turns out the XAML for my app defined the class as "App" but my code behind defined the ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Managed DirectX
Hi people, Hi run some application with comes with DirectX SDK and both Managed and Unmanaged application's FPS stay the same. But when I run Managed application in fullscreen, it decrease a lot. It doens't happen with unmanaged Directx. For example, my application in C++, running in fullscreen mode, stay in 270 FPS. When I run the same application in Managed DirectX fullscreen mode, it stay in 80 FPS. Someone knows why this problem occour Thanks a lot. Ricardo In the running app, click on the Change Device button or press F2. Change the Present Interval option to Immediate. Done. ...Show All
Visual Studio Express Editions Download link returns blank page
If I try to download Visual Basic Express using IE, the subsequent page simply displays blank without a download run/saveas window. I can download using the AOL browser. Anyone know what in IE prevents this from my trusted MS site I'm running McAfee Antivirus and Spysweeper. Sounds like a popup blocker. Try disabling your antivirus software. -Tim <MSFT> ...Show All
Visual Basic check assembly
i need to Check Whether the assembly is already running in the process when i start the same assembly ( to avoid duplication in assemblies running currently) i need one copy of assembly to run at a time.. is there any property to set or how to check if its an executable assembly, your app, you can get the list of processes by name and if it already exists then you know that another instance is running: Dim theProcesses() as Process = System.Diagnostics.Process.GetProcessByName(" yourAppName ") if theProcesses.Length > 1 then 'another process running end if ...Show All
.NET Development TCP Connection throttling at Socket
Hi, I have been wrestling with this issue for quite some time now. For an application I am developing, it is necessary that I receive data from an HTTP request at a reduced rate. This is not unlike run of the mill bandwidth management. Here is the problem: After a network stream is set up, it seems that the winsock buffer is set to around the TCP window size (about 64k). I have attempted to set the socket receive buffer to the minimum size, as well as control the networkstream that is passing the data up. The only solution I have found to be truly effective is to modify the socket buffer size in the registry. Besides modifying the registry, it seems that no matter what I do, the socket will receive about 65k before I am allowed to m ...Show All
Smart Device Development converting a Pocket PC app to a WINCE 5.0 app in VS2005
Hi -- I've developed a fairly complex app for a pocket PC. It uses SQL mobile, a couple direct calls to unmanaged code using p/invoke, and a lot of GUI logic. What's the easiest way to get the app to run on a WIN CE 5.0 platform Jim thanks. I was able to convert the app by changing the target device and cleaning up some namespaces. It successfully built. However, when i go to deploy the app, VS returns with "Unable to complete the operation, device not connected." the device is recognized by Active Sync and requests a partnership. I've been able to load a test app to the device. Is there a spot in the code, etc that is still looking for a Pocket PC Jim ...Show All
