Bryce Beagley's Q&A profile
Visual Studio 2008 (Pre-release) Relative bindings for nested UserControls
Hi all, Apologies if this is a stupid question, but I've trawled the forums and net for an answer, and just can't find what I'm looking for. I've created a XAML UserControl in another library that has binding defined for its element, however the DataContext for that control is specified in parent XAML form that is hosting the control. I'm using a XMLDataProvider as a test harness and I'm specifying the DataContext in the hosting XAML page (lets call this Form1) and then I'm creating an instance of the UserControl in Form1, then wanting to shift the DataContext to a contained element in the binding XPath. XML Data: < Items > < Item > < Number > 10001A </ Number > < BillTo > < Contac ...Show All
Visual C# class for handling exceptions
hi everyone! i need to control exceptions in my win applications, I already have a lil knowledgment about exceptions and i' ve been searching some good examples about the best practices for handling exceptions, but i havent found any complete example. Someone can help me showing me some portion of code, maybe the class you created to manage exceptions and the way u catch it. Hope to find some help. Best regards. Joseph I see exceptions as a two layer model. The first layer is to attempt ot catch the exceptions explicitly for the job being done. For example you are attempting to do a File IO operation. It should be surrounded by a try catch construct coded explicitly for "only" ...Show All
Visual Studio 2008 (Pre-release) InfoPath & WCFService
hi i have designed a InfoPath 2007 Form to add client details to my database.. this InfoPath form talks with a WindowsCommunicationFoundationService(WCFService)..and i have written the logic in a button_click event... i am able to run the form..but after entering the details in the form and when the button click takes place its not going into the button click event....instead i am getting an exception message as follows " System.Security.SecurityException That assembly does not allow partially trusted callers. at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) a ...Show All
SQL Server error
"To connect to this server you must use sql servermanagement studio or sql server management objects(SMO)" what could be the cause of this error happens when connecting to sql server 2005!!!! Hi, as you didn’t answer, I guess you are using a version prior Managment Studio to connect to a SQL Server 2005. SQL Server 2005 needs an SMO-enabled application for administration. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual Basic in my vb.net windows appliction i need to parse a resume and search for name and email id
in my vb.net application i need to parse a resume for name email id telephone no ect can any one help me how to do the resume will be in the .doc format and regardless of email the resume will be in the following formt and i need to parse it for name phone and all other details Name: Damon Williams Address: 121 Suburban Dallas , TX 75154 Resume ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Breaking changes from MDX?
Hello there, I have a question: when will we learn what kind of breaking changes will XNA bring if compared to MDX Also, what will be the extent of those changes Will they mostly be refactoring changes or will there be serious changes in the coding way compared to MDX Also I read soomewhere that XNA will have font and UI features. What kind of UI features are we talking about :) Widgets and the like Thanks in advance! Are you going to make them similar (compatible) to Avalon (please please :-) ) I presume you are gone make them XML based. Will you publish the chosen format before the next release of XNA so people can make there customised solutions compatible I hope you have a very nice day Bill Spinhoven ...Show All
Visual Studio Express Editions form load event
How do i trigger the form load event I want users to click a button and the program runs as if loading for the first time. Thanks tall dude, you're right. I'd reset all my variables & text with a few lines of code as a solution anyway. I'll try your suggestion next time. ...Show All
Windows Live Developer Forums I am not able to sign in on MSN messenger Please help anyone!
Recently i have been having porbelms with signing in on MSN, i think it is due to me agreeing to download the latest MSN. From this moment i am not able to sign in. I clicked on troubleshoot (80048883) and it showed 'Your gateway appears to be offline' which i dont know what it means. Then i went on on the Tools menu, click Options , and then click Connection, to check my connection and it showed 'You are currently NOT connected to .NET Messenger Service. I am really worried if anyone knows how to slove this problem please can you email back asap. Thanks alot, Jenny The only thing I have found to work is that if you re running WXP SP2 then for some odd reason I can only retrieve my ...Show All
.NET Development SN.EXE | Strong Names ?
me have read few articles that use SN.EXE to generate a keypair and use in .Net program. <Assembly: AssemblyKeyFile("..\..\MySNFile.snk")> but me not understand how it work and what the purpose/benefit with making my program "Strong Name" can anyone explain to me thankyou thanks for your answer and information. what the FullTrust and AllowPartiallyTrustedCallers mean thanks again ...Show All
Windows Forms InitializeNewComponent: How to override?
The code below will not work because InitializeNewComponent cannot be declared 'Overrides' because it does not override a sub in the base class. Removing 'Overrides' causes it to state that this method shadows an overridable method in the base class 'ControlDesigner'. To override the base method, this method must be declared 'Overrides'. So, how can I override the InitializeNewComponent method Thanks, Trausti <Designer( GetType (MyDesigner))> _ Public Class MyControl End Class Friend Class MyDesigner Inherits System.Windows.Forms.Design.ControlDesigner Public Overrides Sub InitializeNewComponent( ByVal defaultValues As IDictionaryService) MyBase .InitializeNewComponent(defaultVal ...Show All
.NET Development WebUSerControl
Hi, I need some help to create a web user control, following is the Scenario: WebUserUontrol.ascx file: 1 text box, 1 button control I want to create a control which will accept color value from textbox and onclick event of the button control it will change the back color of the page on which that control is being consumed. Value of the color property should come from textbox example: red, green etc. Suppose control is WebUserUontrol.ascx and web form is webPage.aspx, when the control will be used on the web page it should function as describe above. For this purpose I also want to use properties in the webusercontrol. Looking forward for the valuable responce. Regards, Kapil ...Show All
Visual Studio Team System VSS Migration hanging TF60047 - how to move forward?
I am in the middle of running VSSConverter to migrate our source (~2GB) from VSS to TFS. It has been hanging for an hour or so with error # TF60047. The error message says there could be a problem with the network connection or TFS connection. I am running in a single server setup so TFS and SQL Server are all on the same machine, and all are running, incl. all SQL Server service - I checked in Configuration Mgr. One problem earlier was that there was huge (~800K) memory usage by w3wp.exe which was being run by the TFSService account. So I shut down IIS. Now, even though memory usage is down to acceptable levels, the migration is still not moving forward. Any ideas on how I can proceed here Or if I were to start afresh, how do I do that ...Show All
SQL Server Variable use in a IN function
I am wondering if anyone can help me with this query. declare @empno varchar ( 11 ) select @empno = '''128''' + ',' + '''180''' --print @empno ( It prints out '128','180') SELECT Received . [Training Course] , Received . [Training Provider] , Received . [Date of Training] , Received . [Accreditation Received] , Received . [Training Completed] , Received . Comments , Received . ExpiryDate , Received . Year , Received . Month , viewEmployee . State , viewEmployee . Employee , Received . EmpNo , viewEmployee . EmpNo AS Expr1 FROM Received INNER JOIN viewEmployee ON Received . EmpNo = viewEmployee . EmpNo WHERE ( Received . EmpNo IN ( @empno )) If I type '128','1 ...Show All
Visual C# Reflection of an image (Fastest reply would be nice)
I am trying to make a reflection of an image but having trouble doing so. I have had to take my first image put into a picturebox make another picturebox with same image and flip Y coordinates to make it look like a reflection but when I try to add linear gradient brush in a rectangle around my reflection image picturebox I keep getting an error so far this is my code see if anyone is able to figure out what is wrong. Just so everyone knows I am a newbie at this and just fooling around with code to try to understand C# better because I am having trouble finding webpages with tutorials for C#. Thanks for any help on this. icon_ref is the icon's reflection I am trying to affect so it is the reflection image picturebox. iref is the i ...Show All
Visual Studio Generate C# 2005 project files
Hello, I am looking forward to manage some C# projects programatically. Precisely, I am generating C# files and I want them to be added and removed from their projects on-the-fly. It would be very useful to add VSS checkin and checkout compatibility in the process. To achieve this, I think have to be able to at least generate C# projects as well. What is the most efficient way to write these files Is VS 2005 SDK suitable for that task It would be very nice if I could use a method that offers maximal compatibility with future versions of Visual Studio. Thanks! Marc Lacoursiere RooSoft Computing yes, writing them by hand is easier IMO. If you edit the file in Visual Studio (any fla ...Show All
