Will George's Q&A profile
Visual C# Embedded windows media player: trying to play a list of files, need help
Hi, I am a student studying computer science and I am teaching myself C#. The program I'm working on retrieves a list of music That the user selects from a checkbox list. I have all the path names of all the files I want to play, they are all MP3 files by the way. My question is, how do i send this list of files to the embedded windows media player so that they can be played for the user Thanks Mark ...Show All
Visual Studio Team System Extending Unit Test Asserts
The one test condition that we really needed in the unit tests was a method for verifying that the result set from a given proc is the same before & after changes made to the proc. I began writing code to create this assert myself using the excellent example provided on Sachin Rehki's blog . However, the problem I ran into (before reading fully) was that I kept getting an IndexOutOfRangeException because I had two statements, returning two result sets, that I was then going to compare. The problem was outlined in the sample, "In V1, only a single batch is supported per test script, so your test condition will always interrogate the first array element. " Which means that I can't expect to have multiple result sets to compa ...Show All
Visual C# Process Module
Hi, I have an application which lists all the running processes of the machine and i need to get the full path from which the process is running. I am trying to use the following methods : Process.MainModule.Filename Process.MainModule.ModuleName The above code doesn't work it throws an exception "Unable to enumerate the process modules" any thoughts Regards Alan Hi Kaiser28, I guess this is a security issue. Make sure that you: - run the app with full trust - test the app as local admin // you might need debugging privileges to access other processes - run as admin if running in Vista with UAC enabled There might still be situ ...Show All
Visual Studio Team System how to delete the file or folder in version control and keep disappeard?
in the source code explorer, I check in some files and folders mistakenly into the teamproject, I want to delete them, so I rightclick them, select the "delete" menu, I found the status became "Deleted", but those files and folders still appeared in the source code explorer, how to make them disappeared Thanks a lot! Thanks for the suggestion, Steve! Unfortunately it did not seem to work. I tried quite a few things: refreshed the source control explorer from the toolbar, disconnect and re-connect to the server and connected with a different user credentials. What's interesting is that I don't see the deleted project in "Team Explorer" window. However, when I c ...Show All
SQL Server A thought this would be simple...
I had originally thought a full outer join would solve this, but alas I'm a roadblock. Perhaps it's because it's a Friday! The goal is to create the most efficient query that will display results of the daily calls and sales as this: Date EmpID Calls Sales 7/1/2006 1 20 5 7/1/2006 2 25 7 7/1/2006 3 NULL 1 7/1/2006 4 10 NULL The problem is a simple full outer join ends up ignoring EmpID 3 who has no Calls in t1, but I still want that row displayed in the results. Any ideas TIA create table t1 (Date smalldatetime, EmpID int, Calls int) create table t2 (Date smalldatetime, EmpID int, Sales int) insert into t1 values ('7/1/2006', 1, 20) insert into t1 values ('7/1/2006', 2, 25) insert into t1 values ('7/1/ ...Show All
Windows Forms How can i create a "right-click menu" i C#
Hi all. How can i create a "right-click menu" in some datagridviews and how can i avoid a "right-click menu" over other parts of my program I am developing a mdi-application, and my default "right-click menu" is all open forms. I want to create my own menu and not show the default one. Does anyone have a url where i can read/get som info on how to create this. Thanks. Thank you. In my form i have 4 datagrids and all 4 have different contex menu. So naturally i create the differents context menus on run-time. It works perfectly. BUT: how can i assign ikons to menu item on run time Lars ...Show All
Internet Explorer Development New Snip IT Context Menu Extension from MS - Undocumented Installer Feature
Hi all, Just downloaded and installed the new Snip IT context menu extension from http://go.microsoft.com/ linkid=6168206 Unfortunately there appears to be an unwelcome feature in the installer. User preferences for the install directory are not reflected in the registry entries for the script source location folder. Test Plan. Download and run SnipIT.msi from the above download page. When prompted to choose the installation folder, choose a location on your computer other than the default (C:\SnipIT\SnipIT\). I choose d:\snipit Continue and complete the intallation. Open regedit and inspect the values for each of the IE Context menu created under the key HKCU\Software\Microsoft\Internet Explorer\MenuExt\ H ...Show All
SQL Server Integration services(data flow error)
when executing my data flow package that contains only one source and one destination OLE db source -> SQL server destination the following errors occurs in my output Error: 0xC0202009 at Data Flow Task(infraction action), SQL Server Destination [3600]: An OLE DB error has occurred. Error code: 0x80040E14. Error: 0xC0202071 at Data Flow Task(infraction action), SQL Server Destination [3600]: Unable to prepare the SSIS bulk insert for data insertion. Error : 0xC004701A at Data Flow Task(infraction action), DTS.Pipeline: component "SQL Server Destination" (3600) failed the pre-execute phase and returned error code 0xC0202071. i've checked the structure of my source and destination table but nothing seems to ...Show All
Windows Forms ControlPaint.DrawReversibleLine() - are there more options?
Hi, It seems to me that the options available for drawing lines with ControlPaint.DrawReversibleLine() are quite few (none really) - is there any way I can change the line that is drawn I would like to have a punctured line (like te one Excel uses when resizing rows and columns). Thanks for your help, Cheers, Mikael Not really. ControlPaint.DrawReveribleLine() uses a special trick that was popular way back in the days of Windows 3.0. It draws a line with SetROP2(R2_XORPEN) . That lets it erase the previous line drawn by simply drawing it again rather than completely refresing the image. Speed was the concern back then when video adapters were slow. That's not (really) the problem anymore, just draw your line using t ...Show All
Visual Basic prevent null exception from occurring
Hi there, I'm fairly new to VB.NET and love it but I'm not sure how to prevent a null exception from occuring. I can use the Try ... Catch to prevent the program crashing but I would prefer not to use this method. Is there a way to test for this without throwing exception I need to return a blank value for objUserInfo.Properties.Item( "mail" ).Value for example if nothing is found. I'm building a string from data gathered in active directory to output to a CSV file. It seems if a value is blank then an exception is thrown. The relevant section of code is: Dim objUserInfo As DirectoryEntry Try objUserInfo = GetUserInfo(objSubFolder.Name) ' ' Exception occurs on the following line s = s & ",&qu ...Show All
Visual C++ ms-word addin comunicating with other programs
Hi all, I wrote an addin for ms-word and I wish to write an application which communicates and share functionality and data with this addin. is it possible to write an application which communicates with a running ms-word addin -- the addin is running in ms-word and should be communicating with my program. Thanks for the reply, it is helpful, and Ill start reading the references now ...., BUT : are these remoting methods reliable enough for security applications Should I be concerned with security issues when dealing with this technology (security is very important for my application) AND , By the way, are sure "remoting " can be applied with an Addin . Best regards. ...Show All
Windows Forms STA and threadpool problem
Hello, I have a Windows Form project which i tried to merge with a console project that uses Thread pool. After i did that i got a messege saying: "WaitAll for multiple handles on a STA thread is not supported." OMG someone please help me! this is an emergency beucase i must use the ThreadPool. anyone has an idea Your question has nothing to do with the original thread topic, you need to start a new thread. ...Show All
Windows Search Technologies How to specify the terminal_computer we want to search?
Is there any method specifying computers we want to search Can we realize this by WDS APIs or the APIs from other DLL You can only issue remote queries against Vista machines. You cannot issue a remote query against WDS 3.0 / WDS 3.01 servers. http://msdn2.microsoft.com/en-us/library/bb231297.aspx shows the details on how to specify a server, e.g. SELECT System.Author,System.ItemName,System.ItemUrl FROM zarasmachine.SystemIndex WHERE SCOPE='file://zarasmachine/C:/Files' The SDK has samples on issuing queries programmatically. Hope that helps Gerald Microsoft ...Show All
Visual Studio Express Editions Tabbed Web Browsing
hi everyone at the moment I'm trying to make a web browser which supports tabbed web browsing I've made it so that you can click a button to add new tabs but I'm not sure how to make the address text box control the tab which is currently being viewed, at the moment it's only able to control the first tab. How do I get it to control the tab which is currently being viewed and also how do I get the web page's name to be shown on the tab my code so far : Public Class Browser 'Creating an instance of the Navigate class Dim NavigateWindow As New Navigate Private Sub Browser_Click( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Click End Sub Private ...Show All
SQL Server ssis package
I am pretty new with MSSQL 2005. I was curious if anybody is familiar with the SSIS package where if I had a text file and I wanted to bulk insert it into a table in the database With SQL 2K is was pretty easy but now with the Visual Studio 2005 it seems to be quiot a bit different. Thanks, Gene Hello Gene, It's very simple... 1. Open up a new project. 2. Create a data flow task. 3. Double click the data flow task. 4. Right click in the connection managers area and select "New Flat File Connection...". 5. In the connection editor, set the location/properties of the text file. 6. Add a new data flow source of "Flat File Source" (from the toolbox). 7. Double click on the Flat File Source object and s ...Show All
