DavidAWinter's Q&A profile
Software Development for Windows Vista set the targetstate the same state in set state activity
Hi, can i set the targetstate to the same state in setstate activity is it correct way of calling the same state multiple times by different users from asp.net page where workflow instance ll be same for the single request not on user basis. any help would be highly appreciated. regards. ...Show All
SQL Server Detaching and moving databases
Not sure if this is the exact forum I need but here goes. Having a bit of an issue 'moving' a database. I've only just installed SQL Server 2005 on a Development/Test box so I can learn and mess around with it without doing any serious damage to anything important. One of the first things I've done is install the AdventureWorks database and, having installed it, decided I would move the files to their optimum locations. However having detached the database I can't seem to move or copy the .mdf or .ldf files - something still seems to have its tentacles around them - 'Access denied' error. Even rebooting the server doesn't work. So I've had to delete then re-attach the database. The question then is does Detach serve any useful purpose Or a ...Show All
Visual C++ unresolved external symbol __invalid_parameter_noinfo
Hi friends, We are building a sample project in debug mode with release build of library say test.lib we got error like "error LNK2001: unresolved external symbol __invalid_parameter_noinfo". Can anybody give solution for this problem Regards, Mukilan i am not clear about your point that make sure both library and application is using same runtime library . can you explain it more please My test.lib contains atleast 18 projects. I checked each project that each should be built with "Multi-threaded (/MT)" as Runtime Library. But my sample application is built with "Multi-threaded Debug (/MTd)" as runtime library. If i use the debug version of test.lib with sample applicatio ...Show All
Visual Basic ContextMenuStrip Control Initial Display Capability/Operation
Hello: VB.Net (2005) I have a ContextMenuStrip control (name: ContextMenuStrip1) associated with a TextBox control. When the TextBox is entered the ContextMenuStrip is displayed with the ContextMenuStrip1.Show instruction. When an item is clicked in the drop down menu the associated function operates as expected. Question regards the initial display capability of ContextMenuStrip1: How can one of the items in the ContextMenuStrip1 drop down menu be hi-lited by default upon initial display Question regards the operation of ContextMenuStrip1: Is it possible to activate the hi-lited item with the Enter key in additon to activation with a mouse click Thank you for suggestions.... jes ...Show All
Smart Device Development outof memory exception in webbrowser
Hi, I am using webbrowser control of opennetcf to display html page in netcf 1.0. I am using webbrowser.documenttext method to display the html pages.Each html page have 5 to 7 images.If i load 10 pages one after another i am getting outof memory exception.So how to dispose images in webbrowser to avoid this exception. I tried using Gc.collect and it doesn't work. The below shown is the sample i tried. <node1> <html> <body> <IMG align="" width="200" height="200" src=" file://\Program files\sample\1.jpg"/> <p> .. </p> <IMG align="" width="200" height="200" src=" file://\Pr ...Show All
Visual Studio 2008 (Pre-release) Can i debug the service developed using WCF.
hi, I want to debug the service that has been developed using WCF. When i inovke a method exposed thru a service i need to debug from the client to the service. Both me client and service are on the same machine. Is it possible to debug Thanks in advance. Regards, Rajesh. If you use VS2008-Orcas CTP this problem will vanish. if you use VS 2005 you will have to manually attached the debugger to the process. of course you must set the break point firstly. the steps to attached debugger to the target process is: 1. Insert the break point both the client end and WCF end. it is very important that you must set the break point in the WCF end 2. Click the menu item, Debug/Attached Process ...Show All
Windows Live Developer Forums Display Search Results in a <div>?
Hi, I tryed to display the search results in a div(like how I added on Driving Directions to my site and it would display the directions where I put the div), and I can't seem to do it. I am trying to make a major mashup like Atlas but I could never display my search results in the area. I replaced all of the /n with <br> and I got out the alert codes straight out of the SDK(I read a post that it is OK to view the source) but it doesn't work. Any solutions ...Show All
Windows Forms Create the Drop-Down List of Controls in a Properties Window like VS
I've create a windows forms designer using the MSDN sample: DesginerHost. In this designer i've a PropertyGrid control working fine. Now i need to add a Drop-Down List for contains the names of all the controls that i put in the desginer, so like VS Designer, when i select a control from the drop-down list, the designer show me this control selected and its properties in the PropertyGrid. I've tried to implement that, but i've some problems. Does someone have an example or same advise of how can i implement this Thank, Gabriel ...Show All
Audio and Video Development Pause\Play on 1 button on my popup menu
I have a popup that I want to have 1 button that is "pause" when he movie is playing but after pressed it turns into a play button...I know how to animate its state so that it shows "play\pause" graphics but in my script I need to know a good if\then command for this button. Case "menu_1" player.playlist.pause(); thats what it is right now and it pauses the video and switches to the "play" graphic for the button...just need a good if\then script for Case "menu_1" Thanx in advance! Also I would recommend NOT changing the graphic when the button is pressed, since that won't work if the user presses the pause key manually. Rather, I would trigger the graphic change based on the playsta ...Show All
Visual Basic Is there a DataGridView RowDirty Property?
I am running some code in the DataGridView.RowValidating event. What I need to do is figure out is the user actually "changed" anything in the current row. Unfortunatly I can't seem to find a IsDirty property for the row, or even for the cells (worst case senario I could have looped through each cell checking the Dirty flag). When I try to check the RowState of the DataBoundItem, I get back "Unchanged". Now in reality, that is not true. But when tracking the code, it appeard that when I change a cell, the change immediately get's pushed to the underlying table object, before the RowValidating event fires. That seems a bit backwards to me. I thought changes made to the data on the grid should only get pushed to the under ...Show All
Visual C# which event has been raised
how can i know from inside a DoWork event handler " backgroundworker" that a specific button has been pressed dowork { if btn1_clicked execute procedure1 if btn2_clicked execute procedure2 } it's a monitoring and management for network elements(cisco devices and servers) software using SNMP and ICMP i think i will stuck with the multiple backgroundworker solution thanks for your help ...Show All
Visual C# new Modifier behaviour in interfaces
Example: public interface B { string Name { get ; } } internal interface AB : B { // new - hides a member inherited from a base class (!) new string Name { get ; set ; } } internal class MyClass : AB { public string _name; // implementation of the AB.Name property public string Name { get { return _name; } set { _name = value ; } } } then: AB ab = new MyClass (); ab.Name = "!" ; ... B b = (B) ab; Debug.Assert (b.Name == "!" ); //true! Why when I call method get_Name () form interface B - the AB.get_Name () is called I don't get it because in AB interface Name property is declared with ...Show All
Visual Studio There seems to be a problem with inspecting ref class base element in VS8 debugger for C++/cli
hi When in e.g. Locals I have some thing like the following: - this //inspected this and expands its members - t1 // OK t1 is a member of this - [T1<T2^>^] // OK t1 is of type T1 - T1base<T2^>^ // OK T1base is the base of T1 - T1base<T2^>^ // WRONG T1base is not the base of T1base (neither do it contain an T1base) - T1base<T2^>^ // WRONG again + T1base<T2^>^ // and once more, hm... this seem to be a recursition problem, you can go on forever this way, and will infact not be able to inspect the base classes true members!!! br jho The beta (with these fixes in) is available now, you can get it via connect: htt ...Show All
Visual Studio Express Editions Freeze on SetParentHandle
My UserControl have to adds some child controls on Runtime. But somtimes my application will be frozen at the line below: this.Controls.Add(this.myChildControl); and open CallStack give me some inforation: 0x000000 SetParentHandle() Please help me out!. thanks ...Show All
Visual Basic Calculate the exact differences between 2 given dates
TimeSpan supports only up to Days. How best to get the exact differences between 2 dates in years, months, and days I searched online and most methods only provide the average by assuming number of months or numbers of years and such. DateDiff won't work, because according to the documentation: When comparing December 31 to January 1 of the immediately succeeding year, DateDiff for Year ("yyyy") returns 1 even though only a day has elapsed. Try this function. It could be faster, but it seems to work for the tests I have made for it (it assumes y comes after x): Public Sub DateSpace(ByVal x As Date, ByVal y As Date, ByRef years As Integer, ByRef months As Integer, ByRef days As ...Show All
