PolkaDance's Q&A profile
Visual Studio Express Editions Directory searching
Using: Directory.GetFiles(string path, string searchPattern) Is there a way to specify multiple file types in the search pattern What I'm trying to do is get all BMP, PNG, and JPG files from a directory without having to search the same directory three times to get all of the files. Thanks in advance, Bill I don't think so it is possible for provide multiple search patterns like "*.jpg | *.bmp". i faced this problem also a little while ago, but was unable to find any solution. Workaround : Get all the files from the directory and then compare each file extension ...Show All
Windows Forms DesignTime licensing in a PopUp form which runs via verbs
I have a Windows forms ExtenderProvider component that utilizes a form as a PopUp by using the verbs collection in a custom designer. Inside the PopUp form is an embedded 3rd party control which is used only on the PopUp form. My component is a dll and shows up in the TookBox from where it can be dragged onto a Form's component tray to add the new properties. The PopUp form is running via a service when the user selects it from the RightClick menu at design time. In the above context when my PopUp form is running, are its controls sited or is it considered a "standard" runtime form If it is running, is it still a DesignTime f ...Show All
SQL Server Execute SQL TaSk
I am trying to run a Direct Input SQL query to SELECT MAX value of ColA. This query when I run on Query Window runs fine - means it is NOT a NULL. I get a max value. When I run this query on a SSIS package outputing to a variable - I get the error. - [Execute SQL Task] Error: An error occurred while assigning a value to variable "MAXROWKEYID": "The type of the value being assigned to variable "User::MAXROWKEYID" differs from the current variable type. Variables may not change type during execution. Variable types are strict, except for variables of type Object. ". I need this output to be used for the s ...Show All
SQL Server Using UniqueIdentifier as Primary key
Hello, is it a good idea to set an UniqueIdentifier field as primary key why i can't set an indentity specification How can i do Thanks a lot You can only specify an identity attribute for fixed precision data types and always returns an integer based value (i.e. non-decimal). For example int, bigint, numeric, etc. As for if it's a good idea to use a uniqueidentifier as the primary key, that's always up for debate, but you definately can do it. It will be unique, so that's good, and not only is it unique in the table, but also globally unique. Depending on how you are indexing the given column, you will find that the ...Show All
Visual Studio Team System How to write Unit Testing for ASP.NET 2.0 under VSTS?
Hi, I have to write unit test cases for asp.net 2.0 web application using Team System's Test project. What I have done... 1. I created a solution under Team System 2. I added empty web site project to the above solution 3. I added Test project to the above solution. ---Solution +Solution Items xxxx.vsdml xxxx.testrunconfig +WebTestProj +TestProject +Properties +References -UnitTest1.cs So, I have a solution, web application and Test project...upto here my life is and then pains started like..... What I need to do ..... 1. I have to create a TestMethod whether the ...Show All
Visual C# Passing arrays from unmanaged DLL code to c#
Hi, I pass my dll the filename (string) to an image and it returns a list of points which are detected faces on that image. What I have done is pass a parameter from c# which is a pointer to an empty array. The dll code then allocates the array for the list of points and returns the size of the array. I then copy the array for use in c#. This does work - but is it the right way to do this (seems like a bit of a hack) If I wanted to pass a list of structs (instead of ints) back from the dll how would I do this see code below Thanks Ashwin ashwinv wrote: No i don't think so....as I am passing a reference ...Show All
Windows Forms How to delete from datagrid
Hello, I am trying to add a delete button to a datagrid and I am having troubles with the code. Could someone help me.. i will really appreciate. This is the code I am using: Private Sub DataGrid1_DeleteCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles DataGrid1.DeleteCommand Dim in ...Show All
Visual Basic How can I put a delay in between code strings?
Have an OLE wave file that I want to allow to finish playing before the system executes the next line fo code. I've tried "System.Threading.Thread.Sleep" and it doesn't work. Here's the section of code. oleChevronLock.DoVerb______________I want the delay here imgGate.Picture = img1Engaged.Picture Quick responce appreciated. oleChevronLock.DoVerb DoEvents() imgGate.Picture = img1Engaged.Picture or another "hack" is to put a timed loop in the middle of those lines ...Show All
Windows Forms Windows Forms tip: use Spy++!
I wanted to share a great little tip with all of you on how to debunk the inner workings of Windows controls. While .NET Windows Forms is a great library that makes creating forms very easy, there are limits to what you can do with Windows Forms. Luckily, it is just a wrapper around ancient technology, and we can still have a lot more control over the controls than you might think at first glance. Windows messages are still in the core of the .NET framework. I’m sure most of you have overridden a control’s WndProc once in a while. One of my debugging techniques to see what is going on inside a windows control is to spy it us ...Show All
Windows Forms Such a dumb question I am ashamed to ask
In a win forms application I am trying to pass a parameter to another form when I call it. Specifically I want to change the text of a label on the form and set a parameter for the data call to an appropriate value depending on whence I call it. At present I have in the calling form Form lookupForm = new combinedForm(); lookupForm.te ...Show All
Visual Studio Team System Unit Test Sample won't download (Woodgrove Bank)
Trying to download the Unit Test Sample from: http://msdn2.microsoft.com/en-us/library/ms243176.aspx does not work. The "Woodgrove Bank" sample link errors for the following URL: http://download.microsoft.com/download/2/5/1/251FF798-6CD7-418B-9AE2-81906B0C8ED9/ManagedDemo.zip.exe Is there any other way to download it Thanks, Burkhard A Google search revealed that somebody found this already back in December of 2005. As this is the first example on MSDN it would be nice if this would work. Thanks, Burkhard ...Show All
Visual C++ Price of Visual C++ Express
Hi! Another question: Visual C++ Express is now free, but from May 1, 2006, it won't be free. How much will it cost See: Microsoft Details Pricing and Licensing for Visual Studio 2005 http://www.microsoft.com/presspass/press/2005/mar05/03-21VS2005PR.asp => $49 -- Greetings Jochen Kalmbach Microsoft MVP VC++ My blog about Win32 and .NET http://blog.kalmbachnet.de/ PS: Please mark an answer as "answered" if it helped!!! Another question: Visual C++ Express is now free, but from May 1, 2006, it won't be free. How much will it cost Thanks. ...Show All
Visual FoxPro Old Fox Pro Code Please Help
I have the following code from an older version of Fox Pro. I typed it into VFP 8 and I can't get it to work. Does anyone have any suggestions SET BELL OFF SET TALK OFF SET DEVICE TO SCREEN CLEAR ****** NUM1 = " " NUM2 = " " NUM3 = " " NUM4 = " " NUM5 = " " NUM6 = " " @ 10, 5 SAY "ENTER LOTTERY NUMBERS" @ 10, 50 SAY NUM1 PICTURE "XXX" @ 10, 50 GET NUM1 PICTURE "XXX" @ 11, 50 SAY NUM2 PICTURE "XXX" @ 11, 50 GET NUM2 PICTURE "XXX" @ 12, 50 SAY NUM3 PICTURE "XXX" @ 12, 50 GET NUM3 PICTURE "XXX" @ 13, 50 SAY NUM4 PICTURE "XXX" @ 13, 50 GET NUM4 PICTURE "XXX" @ 14, 50 S ...Show All
Visual Studio Team System Manual Tests with Code Coverage for all assemblies
Heya. I'm not sure I'm doing this the right way so I'll have to ask. I'm using Unit Tests together with Manual Tests and I'd like to view the Code Coverage information on these tests combined. The Unit Tests runs alright with Code Coverage but I'm not sure how I should run the Manual Tests to gather Code Coverage. Today, I just double-click the .exe in the bin/Debug folder but that seems to just collect code coverage information on the .exe, not the other .dlls. How do I go about running a Manual Test with Code Coverage Cheers, Chris Nope, you're not the only one who has this problem. The way coverage fo ...Show All
Visual Studio Express Editions csv/text file read into a database?
im sure this is something that is frequently asked, but as i couldnt find anything VB related on here for what i need i thought i would create a thread. being new to vb.net and sql ill be needing some guidance for all you experts out there! i'ev listed below what i would like to acheive: receive csv files and store in a set folder (maybe at later date change the delimiter) monitor a folder that files are being received in input / amend database when file is read in from folder csv file is deleted/moved after being successfully read into DB any help will be much appreciated! Hi Rob, To a ...Show All
