Daniel Herling Microsoft's Q&A profile
Visual C# CSV/Flat file parser with grid preview ?
I need to code a flat file parser (CSV, delimited, fixed-width), with visual preview in a grid. Does anyone know of any good demos/examples illustrating this in C# (in particular with the grid preview functionality). Thanks, Andy Hi I think this link will help http://www.csvreader.com/csv/csvdemo.zip . Cool ...Show All
Visual Basic vb.net console app loads uxtheme.dll
Hi, I was testing out for how to make vb.net not load vb.dll at runtime and the code is like this: Imports System Module MainModule Sub Main() Dim s1 As String = "abc" Dim s2 As String = "abc" If String.Equals(s1,s2) Then Console.WriteLine("done") Console.ReadLine( ) End If End Sub End Module The above code was compiled as a console app. Strangely I ...Show All
.NET Development Formatting DisplayMember string in a ComboBox
Hello, I have a ComboBox bound to a DataView as follows: myComboBox.DataSource = myDataView; myComboBox.DisplayMember = "DecimalDatatypeColumn"; For this example, we have 3 rows in the DataTable, with values for the DecimalDatatypeColumn of 1, 2, and 3. When I load the combo, they display as decimalValue.ToString(): 1.0000 2.0000 3.0000 Is there any way for me to format these strings to have them display as currency ...Show All
Visual Studio Team System NUnit or VSTS Team Test
Discuss.... We have mstest.exe for running tests from the command line (in case you're not using MSBuild.exe) and we also work with msbuild's "tasks" where you can specify which tests you'd like to run. These are authored from the UI when you're creating a new "build type" as part of VSTS. Tom ...Show All
.NET Development Query notification Architecture
I have starting using Notification Services and query notification from ADO.NET using SQLDependency. So I was wondering if the NS use triggers behind the scenes in order to start events. Thank you There's an article on MSDN about Query Notifications, maybe that contains the information you need. http://msdn.microsoft.com/data/default.aspx pull=/library/en-us/dnvs05/html/querynotification.asp ...Show All
Visual Studio Tools for Office Formatting columns in tables
I have a code behind word document where I populate a Word table. Once the table is created, I need to format cells based on a column. There doesnt seem to be a way to select a column range and apply formatting, like paragraphformat.alignment. I have searched high an low and the only solution I can find is to loop through each cell an apply formatting manually. for i as integer=1 to tbl.rows.count & ...Show All
Visual Basic Determine TopMost Window on the Desktop
Hi All, I have a tricky one (well, tricky for me) that I am having trouble finding a solution for. Here is the problem; I have a Form that is open and a Notify Icon. I want to be able to click the icon and have one of two things occur depending on the current state of the form. If the form is the Top Most (i.e. on top of all other normalised or maximised Windows) I want to hide the form. If the form is NOT the Top Most (i.e. behind a ...Show All
Visual C# setting media (mp3, wma) file metadata
I am trying to read and write audio metadata (mp3/wma) using Shell extensions. Its very easy to Get metadata using "myFile.metadataitem = folder.GetDetailsOf(folderItem, n)" but i cant seem to find any methods to Set the values. can this be done in the shell if not, does anyone know an easy way of setting metdata tags ... i have parsed the verbs on an audio file but nothing lets me change the metadata... I think that manipulating properties may ...Show All
SQL Server SQL Server Reporting Services - data extension 'XML'
The reports based on XML is perfectly displayed in development Environment. But than uploaded to Server, the following occurs: An error has occurred during report processing. An attempt has been made to use a data extension 'XML' that is not registered for this report server. Help needed, thank you. Thank you for the answer! Is there are any way to revoke this limitation ...Show All
Visual Studio Team System How to exclude a Folder from a Webproject
Hi We are testing here TFS SP3, and have the following question. We have a website project, that uses TFS as source-control. When adding some files to the folder of the webpage, TFS automaticly adds it to the TFS Soruce control. But when doing checking, it always wants also to checking these files, but I don't want to checking that, as this is just test-data created on the local environment. What do I have to do Thanks Patrick ...Show All
Windows Forms Custom ScrollBar
Ok. I have made a media player. And one of the functions is listed down below: public int Duration() { int ReturnSeconds; sCommand = "status MediaFile length" ; mciSendString(sCommand, sBuffer, 128, IntPtr .Zero); ReturnSeconds = int .Parse(sBuffer.ToString()); ReturnSeconds = ReturnSeconds /1000; return ReturnSeconds; } This code moves the Scrollbar exactly to the time of the song. Can someone tell me how to make a custom ...Show All
Smart Device Development Creating a unified installer for both SmartPhone and PocketPC
Hi, Is it possible to create a unified installer that automatically installs the correct version of software depending on whether a SmartPhone versus PocketPC is connected Basically, one installer self extracting Windows .exe file that installs the correct .cab file of two .cab files (SmartPhone versus PocketPC). Can it be done with the .inf/.ini files Thanks for letting me know. We will change this approach af ...Show All
Visual Studio Express Editions How to Remove SqlExpress beta COMPLETELY?
After repeated attempts to Remove the Beta components and re-install the Production SqlExpress I want to completely remove all SQLSerrver components to start with a CLEAN slate. How can I do that What can I do to completely remove all program components and Registry entries for SQL Express and Studio Beta components Have a look at this site and follow the links, on the site are links to some tools that ...Show All
Visual Basic Excel Application Object
I posted this earlier, but for some reason my post didn't stick. I have a problem with an Excel.Application object where I if I try to edit the property of a cell (like ColorIndex for instance) while a cell is currently being edited, my program crashes. What I want to know is either A.) How do I detect if the user is currently editing a cell or B.) How do I accept the change of the ActiveCell (like as if the user pressed Enter). Thanks for the h ...Show All
Visual Studio Team System WebTest Validation Rules
I've created a webtest that is using a FindText Validation rule. The test consists of navigating across several pages, and on the last step, looking for a text value, which will not be present. When I run the test from Visual Studio, the results message is 1 test failed and I cannot determine which step failed. In the short amount of time I've been working with this, it looks like I may need to extend the validation rule class and include some l ...Show All
