Chris Treadaway MSFT's Q&A profile
Visual C# Exception thrown in delegate causing problems
Hi, Could be a bit of a noob question, but I don't understand why the following is happening: Basically I am trying to sort a list of strings, but treating them as dates (by parsing with DateTime.Parse), but if any of the strings don't parse, then i just want to sort this list alphabetically - the standard List.Sort() way. list is a System.Collections.Generics.List<string> The problem is, the program exits complaing of a formatException at point A (below), and it is not caught by the try/catch around the sort statment. I can't understand why not. Any help would be greatly appreciated. try { list.Sort( delegate ...Show All
Visual C++ Help ID generation not available for ActiveX Control
Hi there, Well we have been using an ActiveX control in VC6 for quiet a long time and generating help ID for them but , when We start using newer versions of VC Studio the Option for generating Help IDs for ActiveX control is not displayed and we have difficulty using Context Sensitive Help, If there is any work around Please help us out. Regards Usman Mahmood Yes this is still an issue can I have any work around for it or .... Regards, Usman Mahmood ...Show All
Visual J# Play sound and video in J#
Hello. How import sound to J# . for example you select word in combobox and then go sound , at that moment then you select. Better then it will be taken from resources. And how with video Sound is more important, but i want to know how to import video to. i need code. Hi, PLease take a look at following links.. 1. http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnwmt/html/playingdigitalmediainavisualbasicnetapplication.asp - this white papet addresses the issue in context of VB .Net. But it should not be difficult to change it to J#. YOu just need to change the code to J# syntax. 2. http://www.codeproject.c ...Show All
Visual Studio Express Editions Charts and graphs with VB Express?
Can anyone recommend a charting component for VB Express. I would like to add some bar charts to my application and am not sure what the best approach would be. It would be great if there was a free solution available. Has anyone got a recommendation Thanks Thanks for the info. I dont know how I missed this on my first visit. Carl ...Show All
SQL Server Invalid Data Type error with Subreports
I have a report with two subreports. The parameter connecting the report with the subreports is based on a field with a datatype of UniqueIdentifier. If I run each of the subreports by themselves, entering in value for the parameter, they run fine. When I try to run the master report, it runs, but the subreport sections contain the following text instead of the correct output: "Error: Subreport could not be shown." The Output window shows 2 warning, one for each subreport: The expression use in subreport 'subreport1' returned a data type that is not valid. I don't know for a fact that it is the parameter causing the probl ...Show All
Visual Studio Express Editions Wish to use text box to only allow numeric Data entry
I am creating a windows form with VB expressions How to I allow only text to be input into text box How do I allow only numeric data entered into textbox How do I place a "zero" in the textbox if there is no value for the user to input How do I allow for Currency How do I place "," seperators and "$" i.e $ 1,123,123.00 eg. Code: 'this is to create liabilites calculator Dim mort. as double =textbox1.text Dim Credit as double =textbox2.text Dim Total as Double =Textbox3.text Total = Mort + Credit If i debug and do not place values in the box I get error. So I need to Have & ...Show All
SQL Server SQL Express Minimum Requirements Warning on Windows 2000 Professional???
The computers here at work run Windows 2000 5.00.2195 SP4. Everything checks out with the minimum requirements at http://msdn.microsoft.com/vstudio/express/support/sqlreadme/#_3462_setup_issues_238p However, one of the "Reports" from the installation says the machine does not meet the minimum requirements, but provides no details. It installs and I have Admin rights on this machine, but I can't even connect to the Northwind database that I downloaded. Is this due to our logging process where the "system" is actually in another country (ie, "CITYNAME/Username" Any help is appreciated! Jason ...Show All
Visual C# changing visual studio 2005 code to c#
i have been working with visual studio 2005 express and would like to learn more about c#can someone assist in converting the code below its used from button 1 click on a windows form. Dim xlApp As Microsoft.Office.Interop.Excel.Application Dim xlBook As Microsoft.Office.Interop.Excel.Workbook xlApp = CType(CreateObject("Excel.Application"), _ Microsoft.Office.Interop.Excel.Application) xlBook = CType(xlApp.Workbooks.Open("C:\Program Files\Bernie\Co Books") _ , Microsoft.Office.Interop.Excel.Workbook) xlApp.Application.Visible = True Me.Close() ...Show All
.NET Development Connecting to Progress Database from .Net
I would really appreciate if somebody could help me with this. When I try to make a dataConnection to Progress database using ODBC and System DSN, it works fine (I can see the tables and data) but if I hit the Test Connection it gives me an error Error [HY000][DataDirect][ODBC PROGRESS driver] Insufficient information to connect to the data source. Same thing happens while coding I I use the same connectstring to make a odbc connection it gives me the foll 2 errors: Error [HY000][DataDirect][ODBC PROGRESS driver] Insufficient information to connect to the data source. ERROR [01S00][DataDirect][ODBC PROGRESS driver] Invalid attribute in conn ...Show All
.NET Development Prepending data in a log file
I can open a file with filemode Append. What I really want is prepend, so the latest records are at the 'top'. Is there an efficient way to do this for log files which may be quite large and updated quite frequently Or is the solution to provide a viewer that displays the data "upside-down" hi paulustrious, well how about doing the reverse create a temp file and insert the latest log, after that append the previous logs, delete/rename the old log and save the temp with the correct log name ...Show All
SQL Server Recompiling Views
Say I changed code inside a view using e.g. 'alter view' statement and then the view gets executed. Is it executed with the new code or I have to recompile it first Thanks Kris IMHO, you are openning the door for troubles when you let the users to add fields to tables. Anyway, recompilation happends automatically when the DBO is called and it doesn't exist a execution plan available on the cache area for that particular DBO. ...Show All
Visual Basic Update object data in collection
I am going to have a collection of objects. Let say an employee collection. I add 3 employees to the collection and now I want to update some data for the 2nd employee. Maybe say change the employees salary. How would I change that data. Dim empCol as Collection Dim emp1 as employee Dim emp2 as employee Dim emp3 as employee . . . empCol.add emp1 empCol.add emp2 empCol.add emp3 ' Change Salary of employee 2 within the collection empCol(2).... create a collection class the inherits from the base collection.... Public Clas ...Show All
Visual Studio Team System Install Testing Tools
Hi, I installed VS 2005 Beta 2 (not from Team Suite dvd, but from VS 2005 DVD) and then installed Team Foundation Client. I can connect to Team Foundation and make most of the PM tasks, but I don't have the Testing tools. What is necessary to get those tools Thanks a lot For convenience, let's end this thread here and shift to: http://forums.microsoft.com/msdn/ShowPost.aspx PostID=5088 --- Eric Jarvi http://blogs.msdn.com/ejarvi ...Show All
Visual Studio Editing an existing connectionstring with the DataConnectionDialog at runtime
Can anyone tell me if it is possible to edit an existing connectionstring with the DataConnectionDialog at runtime in my own winform application I can create a new one at runtime in my own winform application using the following code: Microsoft.Data.ConnectionUI. DataConnectionDialog dcd = new Microsoft.Data.ConnectionUI. DataConnectionDialog (); Microsoft.Data.ConnectionUI. DataSource .AddStandardDataSources(dcd); Microsoft.Data.ConnectionUI. DataConnectionDialog .Show(dcd); Once I have created one, I would like to be able to use the same dialog to edit it by feeding it the existing connectionstring information (the equiv ...Show All
Game Technologies: DirectX, XNA, XACT, etc. how to make a 3D Game using XNA Build
hello, I want to create my own game using XNA Build , but the tutorial that is provided on site is not so helpful for creating the game can u give some tutorial /document so that i can learn to develop the game on XNA Build. Or atlest provide some guideline to have some 3d effect using XNA Build. Thanks Meenal Hey Meenal, XNA Build is a program designed to make building code and content for games easier. It doesn't have any type of functionality that would help you create or write a 3D game. You may be thinking about the XNA Framework which you can read more about on our site at: https://www.microsoft.com/xna/ but it is not ...Show All
