Woyler's Q&A profile
Software Development for Windows Vista WorkflowView draws square in bottom right corner when it should not
I'm hosting a WorkflowView in a form. When you size the workflow view just right, you get a control colored square in the bottom right of that WorkflowView which hides other parts of the WorkflowView. (This control colored square is the square that is drawn if both scrollbars were to appear). The parts it can hide is: A. When there are no scrollbars and the workflow is shrunk, the "Fit to Workflow Size" button appears. The control colored square is partially on top of that button. B. If you size your workflow *just right* and there are no scrollbars you can get it to overlap your root activity designer. ------------- Using reflector, it looks like the problem is that in the WorkflowView method: protected overr ...Show All
.NET Development Need help understanding dynamic DLL loading
Hi all, need some help with dynamic DLL loading. I am trying to create an application that will instantiate a class (from a DLL) at runtime. The type, exposed properties, and exposed methods of the instantiated class are known (inherited from a custom designed class). Using Assembly.LoadFrom([Path]) coupled with Activator.CreateInstance(type, param()) I was able to almost instantiate the class (for some reason I get an parameter error, will explain more). Unfortunatley the LoadFrom() will place a LOCK on the DLL and I am unable to replace the DLL with a newer version even after the application has been closed in the Debugger. The idea is that these dynamically loaded DLLs will be loaded and unloaded wehenever needed (similar to object in ...Show All
.NET Development Save SQL dataset to Access database
I have a dataset populated with data I've queried from a SQL Server database. I have an access database file with exactly the same tables as the SQL Server database. I know how to connect to the access DB, and create a data adapter, etc., but am unsure as to how to add the data from the dataset generated from SQL Server and save it into the access database. Do I have to loop through all of the rows from the SQL dataset and add the data to the access db one row at a time The VALUES clause will contain a placeholder, which happens to be a question mark: "INSERT INTO Table1(Col1, Col2, Col3) VALUES ( , , )" Looping through all of the rows and adding each row one by one to the DataSet will pr ...Show All
Visual Studio Team System source control server events
Hi, how can I subscribe for events like check in, before check in, pending changes and etc I saw that VersionControlServer class has very interesting events that I can use but they did not fire up for me. Basically here is what I am doing: TeamFoundationServer tfs = new TeamFoundationServerFactory.GetServer(serverName); VersionControlServer vcs = (VersionControlServer) tfs.GetService( typeof (VersionControlServer)); vcs.BeforeCheckinPendingChange += OnBeforeCheckinPendingChange; Then I keep the application running so the method can be called. And I expect when someone else is making a checkin to receive a notification about it. What am I doing wrong or I got the whole idea wrong Where can I find more information about t ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Direct X10 and Vista - Compatibility
Simple question, will Direct X10 only be compatible with Vista Everything comes down to money, but people invest heaps of many into to MS and sure they give you good software, but then they only support it for about 3-4 years and make you pay heaps more money for another piece of software. ...Show All
Visual Studio Team System Really delete from TFS
Richard Berg, in an earlier post you mentioned that the "destroy" command would be in the next rev. when is that re: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=568431&SiteID=1 thanks, scott Yes, once you install the new version you'll be able to destroy anything created with v1 (whether it's deleted or not). in an earlier post you mentioned that the "destroy" command would be in the next rev. when is that Brian is going to post a roadmap on his blog soon. Keep an eye on http://blogs.msdn.com/bharry ...Show All
SQL Server local computer Admin through AMO?
Hi everybody. I know that members of the Administrators local group of the local computer where SQL Server 2005 is installed are automatically members of the server role in an instance of Analysis Services. My problem is that in my application, through AMO I am able to see the Analysis Services server administrator added explicitally in the server role, ma am not able to obtain also the ones who are AS server administrators because inherit from the Administrators local group. Does anyone can suggest me how to obtain also this list, through AMO, ADOMD.NET or something else Thank you so much. Yes, you would have to query for the memebership in the local admin group. Some simple search should give you quite a few C# ...Show All
.NET Development Sending S/MIME encrypted email using C#
Hi All, Can someone let me know or provide me with sample implementation of how to send S/MIME encryption to send Emails using C# ---Thanks RNilesh Hi Rajesh! Did you get the solution for this (encrypt body and attachment as well ) I need to use this solution too. Thanks, Felipe ...Show All
Windows Forms ListBox Help
Sorry I accidently posted this already in the wrong forum Visual C# IDE. ... I have a ListBox who's contents change frequently. When they do I want the focus and selected item to be at the top. Heres my problem. When the contents change I call List.SelectedIndex=0; This causes the first item to change color as if it is selected. If the user presses down, however, instead of moving to the second item, it now "focuses" the first one (draws the dotted focus rectangle around it). Pressing down a second time goes to the second item and pressing it again, goes to the third as expected. The problem is I want the first item to be selected *and* focused so that when the user presses down for the first time it moves him/her to th ...Show All
Software Development for Windows Vista Launch a Dialog Box from within the Credential Provider
Hi Guys, I have the following scenario. a) I created a CredentialProvider which has got just one "CommandLink". On click of it I want to lauch a dialogbox which will have some text fields which the user will enter and I need to read the Input and then make a webservice call and based on the response, I will have to launch another dialogbox or window. In the above scenario I am not able to launch a dialogbox. But OnClick of the commandLink I am able to launch a MessageBox. I guess the reason is because the dialogbox creation is happening with parent as null. I read somewhere that there is a method called "OnCreatingWindow" in the events that get passed to the "Advise"method. I can call that method and get ...Show All
SQL Server Database Question
Is there a minimum number of operating system files you need when creating a database in 2005 What do you mean by operating system files Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
SQL Server Reporting Services - Rendering
I have created reports using Reporting Services and the problem I am having is with the Print Layout. I view a report with parameters and print. I then change the parameters and click 'View Report' again and the new report is displayed. However, the report does not refresh in the Print Layout, so if I try to print the 2nd report, the first report is the one that is printed. Any ideas how to solve this Thanks Bdot - aparerntly this is a confirmed bug but you can work around it in code by hooking up to the ViewButtonClick event and calling RefreshReport. c/o http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=267834&SiteID=1 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Requirements to built your own games?
First of all hi.. i'm new to the programming games stuff.. so i would like to know if XNA Game Studio Express is a good way to start with programming languages What are the main languages used in XNA Game Studio Express C, C#, c++, VB Does XNA Game Studio require a medium knowledge of this programming languages or any newbie can learn how to program their own games without any knowledge of programming languages Thanks in advance!! XNA Game Studio Express is specifically targeted for people just like you. You will be able to use any of the .NET language (C#, VB, etc) to program using the XNA framework. You will need to know how to program in that language, but you don't need to be an exper ...Show All
Visual Basic Mouse back/forward buttons with webbrowser
I'm trying to set up a WebBrowser control so that it will respond to the user pressing the mouse's Forward or Back buttons and navigate accordingly, regardless of where the cursor is located in the form. The WebBrowser control doesn't have any click event handlers, and I couldn't add one with AddHandler, so I'm not sure what to try. Searching here, I read about GetAsyncKeyState which can be used to get the status of the mousebuttons, but I don't know how I would use this to code an event handler for these buttons. *sigh* I said using the mouse forward and back buttons, not the left and right click buttons. Try reading a little harder next time, okay ...Show All
Windows Forms Is it possible to set a user control to be owner drawn?
I have this user control that is acting like a form. It contains buttons inside of it, and you move it around a window. But I don't want to use a form because I add this control to a panel that is my background for my main window. Basically I want complete control for drawing this user control because I'm trying to get around the whole 'transparency is set to the parent's background color' thing/hack and implement true transparency in my own draw code. Any help would be much appreciated. If you aren’t having any luck in overriding OnPaint and painting it the way you want... then you are nearly out of options unless you want to use someone elses control(s) or look at if WPF could be used for your applicati ...Show All
