WXS123's Q&A profile
Visual Studio connections restrictions between shapes fail
hi, i want to restrict the connections between two shapes. I did this by using public override bool CanCreateConnection( ShapeElement sourceShape, ShapeElement targetShape, ref string connectionWarning) for the accordant connector class. e.g there is ShapeA & ShapeB. The problem is, that i can connect ShapeA with ShapeB, if i move the mouse over the "text decoration" of ShapeB although this is forbidden by the conncetor restriction. The restriction works fine, when i move over the shape area of ShapeB and not the "text decoration" of ShapeB. How can i define restrictions for the whole shape, includin ...Show All
Software Development for Windows Vista Sequential Workflow - Go to activity
Is it possible to "reset" the current activity to an activity already executed Sample: SubmitRequest (EventSink) ManagerAproval (EventSink) ManagerAproval_Invoked: If(!Aproved) SetNextActivity(SubmitRequest ); Mikael Have a look at the ConditionedActivityGroup activity as I think this might get you the functionality you want without having to resort to GOTO statements. Matt ...Show All
Visual Basic Taking a screenshot of a panel...
I am not very good with imaging and the like, so I have a question... How would I take a screenshot of a panel and save it to an image I need to take a screenshot of all the controls in it as well. Thanks, Tanner check this out: http://www.knowdotnet.com/articles/printform.html you can also use the print screen function and retrieve the image from the clipboard. ...Show All
Windows Forms Adding new rows to DataGridView does not follow sort order
Hi! I have a datagridview in which I add rows using the rows.add method. Grid is not bound to any datasource. The problem I have is that newly added rows are always added at the bottom of the grid, ignoring the selected sort order. Do I miss anything I wouldn't like to call .sort method again, since my grid may contain a lot of data and rows might be added every few milliseconds. Awesome. Thanks! -mark DataGridView Program Manager Microsoft This post is provided "as-is" ...Show All
Visual Basic How to split commandline application path from possible arguments?
I have commandline strings that contains application paths and might contain arguments. Some examples: 1. "C:\Program Files\Microsoft Office\winword.exe" "C:\some dir\documentname.doc" 2. "C:\Program Files\Some Dir\app.exe" /dosomething 3. C:\Program Files\Some Dir\somefile.exe 4. C:\somedir\somefile.exe /whatever 5. C:\Windows\notepad.exe 6. someapp.exe I'm looking for a simple way to split the path to the application and the optional argument. Sometimes the string contains quotes around the path (1&2) and sometimes, even when the path contains spaces, the string does not contain quotes(3). And s ...Show All
Visual Studio Team System Creating unit test for Sub with array passing ByRef in VB
Heloo! I have a problem with generating unit test for procedure/funcion in VB project. When I choose "Create unit test" for such procedure I get an error in the test body: Module MyModule Public Sub MyFunction( ByRef Arr() As Boolean ) ReDim Arr(UBound(Arr)) End Sub End Module Test generated by VS is: ''' <summary> '''A test for MyFunction(ByRef Boolean()) ''' </summary> <TestMethod()> _ Public Sub MyFunctionTest() 'Unit Test Generation Error: A private accessor could not be created for VBClassLibrary.MyModule.MyFunction: Error HRESULT E_FAIL has been returned fro ...Show All
Visual Basic Web Browsing program
OK, I know what I want in the browser, I know how to make most of it. The only problem I have right now I DON'T KNOW HOW TO MAKE THIS WEB BROWSING WINDOW!! I'm trying to make it in a panel, which probably is the wrong way to do this. I need help with the web browser commands. Oh, and I want it in the program, not external Internet Explorer window. Please help, I'm new at this and I'm trying to make an OS-like program set. I'm writing this freehand no with a compiler so there be errors in it. Dim wb as new webrowser dim pnl as new panel pnl.controls.add(wb) Me.controls.add(pnl) Pnl.location = (x,y) There ya go! Good luck. ...Show All
Smart Device Development Run an application on CF and the full framework with SQLCE
Hi, Is it a easy way to write a application that will work fine on the CF and the full version of the Framework when using the Sql Mobile database Now WebServices and other parts works just fine with the same executable, but I get an error when trying toopen the Sql Mobile database from the full version framework. I guess I could write a seperate component for this, but I would like to know if there is a easier way of doing this. With the CF 1.0 version I had to create a seperate components for the WebService interface so this time I would like to just have the same projects for both the CF and the full framework. I'm out i ...Show All
Windows Forms MenuStrip, ToolStrip and Forms Design Questions?
MenuStrip and ToolStrip Questions RenderMode = {System, Perfessional, ManagerRenderMode} I read up on all of these but seem to be missing what the exact differences are. Any link would be appretiated. It would seem no matter which of these I pick depending on the Display Properties Theme setting it changes to match. I am trying to pick a constant look acrossed all forms. I want how I design it to look like it does not change even if the Display Properties Theme setting does. Which one should I pick and what can I do to ensure getting what I design it to look like I do have third party tools and controls but just figured I would use nat ...Show All
Visual C# radio button's "selected" event
am using 2 radio buttons in my form. rAdmin and rDesigner. < input type =radio id =rDesigner runat =server name =userType onserverchange ="rDesigner_ServerChange"> < input type =radio id =rAdmin runat =server name =userType onserverchange ="rAdmin_ServerChange"> when the user selects either radiobuttons, data is displayed based on which radio button is selected. where should i write the code for displaying these data there is no onserverclick event available. i tried to write the code in onserverchange event. protected void rDelUsers_ServerChange( object sender, EventArgs e) ...Show All
SQL Server Reporting Services tutorial
Hi, I am trying to step thru the June SQL 2005 CTP Book on Line Tutorial on Reporting Services (ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/sqltut9/html/95c9c883-12e5-47af-8da1-b77c6ef7484c.htm) However the steps don't seem to match what is in the GUI. Is there an updated version of this tutorial Thanks in advance. Ned Never mind, I selected REPORT MODEL instead of REPORT PROJECT. Thanks, Ned ...Show All
Smart Device Development Emulator crashes with ActiveSync 4.1 German
The Device Emulator Preview always crashes if I cradle it in the Device Emulator Manager. This behavior occurs since I updated from ActiveSync 3.8 English to ActiveSync 4.1 German. Thank you. Thomas Can you reply by email to me ( barrybo@microsoft.com ) with specifics of the crash I'll be happy to debug this for you. Thanks, Barry ...Show All
Windows Forms Can you query a temporary, in memory table (using Join)?
In a variety of database management systems that I have used in the past (Paradox, Access, FoxPro, DBase, etc.) you could create data tables that only resided in memory. They would be what you might call temporary or intermediate tables. You could then use them in queries (joins) with other tables in the database and get your results, again in a m ...Show All
Visual Studio 2008 (Pre-release) how to open existing infopath form
Thank you very much for your help. But can you please help me in opening an existing infopath form when a button is clicked in my WPF application. Check here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=408504&SiteID=1&mode=1 No need to create a new thread for the same thing ;) ...Show All
Windows Forms Switches in Console Application??
Can anyone tell me, what is the proper way of creating switches in a console application I want to have certain functions execute on a specific switch. Ex... c:\MyApp /start If you want them to run consecutively, <i>don't</i> create a new thread. By doing the Thread.Start stuff, you're introducing the problem you're trying to avoid. Just c ...Show All
