Michael Mossman's Q&A profile
.NET Development Persisting Identity from Parent to Child(ren) on a new record problem.
Situation: I'm going to add a new Category & one or more Sub Categories on a Form. In my GUI, you can fill out the information for the single new category and on a DataGrid, you can add 0 to... well any number of Sub Categories. But the problem happens when I have 1+ Sub Categories. Until I save, Category has an Identity of -1. This is the ForeignKey for the SubCategory Table. I use Stored Procedures to insert. I insert the single Category first and at this time, the tables real Identity is passed back to the Category. But when the DataTable changes, the Identity isn't being reflected to the SubCategories through the relationship. So the next step, the SubCategories are inserted, they're inserted with a CategoryID of -1 and th ...Show All
Audio and Video Development Window Media SDK
Don't know if this is the right place but anyways... Want to know if its possible using the Windows Media SDK to automatically create a thumbnail preview from a frame of a wmf file. Basically want to create a jpg/gif thumbnail and display it to the user in the browser as a preview of a particular media file. I've searched around and can't seem to fund anything about this. I've been able to grab thumbnail previews of different file types(avi, mov, mp4, mpg) using a different SDK, but it doesn't support wmv's so had to use the Windows Media SDK instead. Have been able to grab the metadata from the file, but not sure if its possible to get a preview thumbnail. We are using VB.Net. You know i had a feeling it ...Show All
Visual Studio Express Editions Cannot Download Express C++
Both today and yesterday when i try to download C++ express edition from the main download link and the manual install download links i get a error message "download.microsoft.com can not be found. Please check the name and try again" Are the servers down or are these links broken Rachelle I just tried the links and they worked for me. It's possible that they might have been down temporarily yesterday. Are you behind a proxy that could be blocking access Just out of curiousity, can you try downloading from the manual install: http://msdn.microsoft.com/vstudio/express/support/install/ Let me know if that helps! Resolved offline. ...Show All
Windows Forms GridVeiw Delete problem
Hi I'm using SQL 2005 and VS2005. I added SQLDataSource and GridView on the form and GridView's AutoGenerateDeleteButton is set to True. Suppose a table contains ID(int), Name(Nvarchar(20)) columns. And I add DeleteQuerey of the SQLDataSource to DELETE FROM Test WHERE ID=@ID . When I execute the query in the SQLDataSource wizard, then it's working fine. But I run the application and press Delete button gives exception message as Must declare the scalar variable "@ID". Does anybody know the solution Any help is appreciated.. Julia To handle the deletion operation automatically in the gridview, we need to set DataKeyFiled property to some unique key in the ...Show All
SQL Server Cant find SQL Profiler
I am using SQL Express. Does this have SQL Profiler - i cant find it on any menus. I am wanting to test SQL commands direct onto the SQL database, independently of vs.net If Express doesnt have profiler can anyone suggest an alternative Many Thanks Chris No, there is no profiler in SQL Express, you could write your own one with the profiler API. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Software Development for Windows Vista Windows Filtering Platform Sample code: diagevents
Hi, I run sample project diagevents in Vista 32 bits enviroments. When i call the first function in diagevents.c located at C:\Program Files\Microsoft SDKs\Windows\v6.0\Samples\NetDs\WFP result = FwpmEngineOpen0(NULL, RPC_C_AUTHN_WINNT, NULL,NULL,&fwpEngineHandle); It returns error code 5 which is ERROR_ACCESS_DENIED; I installed sdk and also file correct value as application's parameters Please let me know if any thing I may miss. Thanks, Forrest ...Show All
Visual Studio Tools for Office Range.InsertBreak generates exception
Hi All, I'm inserting a break in a Word 2003 document which has some XML tags. It works fine for most of the documents but errors out for some documents where the XML tags are placed haphazardly i.e. not in an orderly manner. The exception that is generated is as follows: "this method or property is not available because the current selection is outside of a block-level element" I get a COM exception when I try range.InlineShapes.AddPicture for the same document. However, im able to do some calls like range.paragraphalignment. Can anyone give me pointers TIA Pavan Hi Pavan If you're asking WHY this is occurring with some commands and not with others, it's because some are just format ...Show All
SQL Server How to check if a file exists
Hi, can someone tell me how to check if a file exists. If it exists then i want to continue with the process and if it fails then send a mail to me. Thanks in advane. Darren & Allan has written a component if you wish to use a component within SSIS. It can be found here : http://www.sqlis.com/default.aspx 23 Thanks Sutha ...Show All
Visual Basic csv to array??
I am new to .net programming so please bear with me if I seem like I don't know what I am talking about, because I probably don't. I used to play around with vb6 but never did any thing more than a few exercises from a Learn vb6 book. I want to read a csv file into something. I was thinking an array, but after searching the forums, I see TextFieldParser, Collections, Generic Collections, DataGridView, etc... I really don't know what all of this stuff is and would really appreciate some help. What I need to do is read in data from a csv file. (I started by using the StreamReader and am able to read the file line by line). The file is in the format of <Record Number>,<Date> <Time>,<0,1 or Null>,<0,1 or Null&g ...Show All
Software Development for Windows Vista Starting DirectShow
Hi, i am trying to learn DirectShow, i have look through the directShow sdk but i think i need something simpler or a book that i can filp and reference easily. Any books to recommend Because it seems that there are only 1 book for directshow. thanks Hi, thanks for the reply. Looks like these are the only 2 directshow available. Anyway thanks for the tmhare site, it has alot of good links. Maybe the best way to start is to start from the sdk documentations. ...Show All
Visual Basic disable text change event
i am having a text change event, i am writing a function to clear the values, while doing so the text change event is triggered and unwanted things happen, i need this event to happen when the text edited manually and not while clearing the text through the function i need that event not to be triggered while clearing the values of the textboxes, is there any options in VB.net to disable that event for temporary and then enabling the functionality Thanks in advance URGENT!!! You'll have to wait for someone with more insight than me to come along, IceAngel89, as I would expect the AddHandler/RemoveHandler method to work ...Show All
Windows Forms stretch form to full screen c#
Is it possible to strech my form to the resolution of my screen [coded in C# net2.0] I need to install my application to computers that have a lower screen resolution. 1280x1024 to 1024x768 for example. Thanks for your helps Mark That's my problem ! If I use the maximized form function, all composents into my form still keep the same size !!! Could you give me more help about Dock and Anchor properties to set them properly Thanks ...Show All
.NET Development Problem making HTTPWebRequest from within Web Service
I'm having a problem connecting to a web server, using HTTPWebRequest. I'm using the request to call a web site, from which an XML response is returned. I have no problems calling the address from a browser and receiving the XML stream. I also have no problems making the request and receiving the XML response from a standalone console app I've written. The bizarre thing is that when I use the exact same code and uri used in my console app to make the request from inside a web service, I get no response. More specifically, I get the following exception: "System.Exception: Error whilst extracting locations from XML ---> System.Exception: Problem connecting response from url ---> System.Net.WebException: Unable to connect t ...Show All
SQL Server Using Multiple Versions of SQL Server in a Replication Topology
Hi there, I have one publicacion on ms sql 2005 Enterprise w.sp1/MS Windows 2003 Enterprise w.sp2 and one subscriber on MS sql 2005 Enterprise w.sp1/MS Windows 2003 w.sp2, but I have also 3 subscriber on MS SQL 2000 w.sp3/MS Windows 2000 advanced server w.sp4. They replicate the same database with a publication compatible with 80RTM, All works fine with data replication, but I can't replicate DDL to MS sql 2005 suscriber, I don't care that don't replicate DDL, but I want manually alter triggers at MS sql 2005 suscriber, but I get this error at the subscriber on when I run the ALTER TRIGGER statement : Msg 21531, Level 16, State 1, Procedure sp_MSmerge_altertrigger, Line 67 The DDL statement cannot be performed at the Subscribe ...Show All
Windows Search Technologies Disable WDS System Tray Icon
Hi, I wanted to disable/remove the Desktop search icon from the System Tray. I am using WDS 2.6.x version. How can i do that. I tried using PreventRunAtStartUp but my requirement is to permanently remove the icon even after opening the application from the Start Menu. Please help. If you just want to get rid of the icon there's a simple way: Rightklick on you Taskbar -> Properties -> Check "Hide inactive icons" -> Customize -> Search for "Windows Desktop Search" -> Always Hide Regards ...Show All
