Bruce Bukovics's Q&A profile
Windows Forms how to use function key to set focus
Hi, I have a problem here is that I have a grid which I am keying in value. What I need to do is that how can i use the function key any will do be it F1 to F12 to focus on some other combo box. protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { if (keyData == Keys.F12) { comboBox1.Focus(); return true; } return base.ProcessCmdKey(ref msg, keyData); } ...Show All
Visual Studio 2008 (Pre-release) Text Areas
hi is there a component in wpf, that can accept several lines of code such as the text area in HTML thx thx anyways i managed to find out private string GetText(RichTextBox richTextBox) { // use a TextRange to fish out the Text from the Document TextRange textRange = new TextRange(richTextBox.Document.ContentStart, richTextBox.Document.ContentEnd); return textRange.Text; } = new TextRange(richTextBox.Document.ContentStart, richTextBox.Document.ContentEnd); return textRange.Text; } http://blogs.msdn.com/jfoscoding/archive/2006/01/14/512825.aspx incase it is of help to you ...Show All
Windows Live Developer Forums Messenger Development - Basic Help
Hello everybody, First I'd like to excuse myself for asking questions like this directly, instead of digging in documentation first, and trying to find answers there. Some advices from experienced developers would be really helpful I need some general advices about developing an application that uses Messenger. What I need is speech recognition and text to speech capabilities on client side. Is there a way to use this stuff with messenger client, and what is an easiest way do develop it Since I never had a contact with messenger development, I would appreciate some guidelines and general suggestions about how to start building application based on Messenger... Thanks in advace Hi, There's no need to excuse yourselve, a for ...Show All
SQL Server Package Configurations not so portable?
I'm still struggling with finding a sound approach to creating configurations that are truly portable. For instance if you use XML files to store configuration information, the path to the XML file that stores the configuration is baked into the package. This would require the same file system structure on all machines that could host the package. Store in SQL server - one key thing that is valuable to configure is Data Sources - but how can you configure a data source at runtime by storing it as a config in SQLServer, when the data source itself is used to specify the server that stores the config information Environment variables or registry entries seem to be the most practicle because they truly are machine specific. ...Show All
SQL Server Foreach endless loop
I'm having a problem where I'm using a Execute SQL Task to retrieve a dataset and storing that in an object variable. Then on success of that execute sql task I use a foreach loop task to go through the dataset and do 2 tasks inside the foreach loop. When I execute this package I have ~12 records in the dataset however when I get to the foreach loop in the 2nd iteration it keeps repeating it. It acts like it is stuck on the second record (tuple) and never goes on. I'm using an ForEach ADO Enumerator in the foreach. I've even set a breakpoint on each iteration and no task fails in side the foreach loop. I'm completely perplexed why it will iterate to the 2nd record but get stuck there in an endless loop. I've tried this on 2 different compu ...Show All
SQL Server Search Stored Proc
Does anyone know a way to seach through all databases on a SQL 2000 server looking for a particular stored proc by name We use Microsoft Visual SourceSafe (actually version 6) which, for 12 developers and 4 DBAs (2 dev and 2 production), works just fine and, as a bonus, integrates with SQL Server Management Studio. Microsoft would probably want you to use their Team Foundation software: http://msdn2.microsoft.com/en-us/teamsystem/aa718916.aspx ...however in my opinion the pricing and complexity both mean that it is better suited to larger organisations than ourselves. There are several open-source source-control packages avaliable - I can't comment on these as I have no ex ...Show All
Visual Studio 2008 (Pre-release) Alias in LINQ?
How about allowing the use of alias in LINQ I have a blog and I'd like to get the number of comments for each post. Printing post.Comments.Count will query the database for each post, and will pull the post's comments. This is unneeded and a situation I want to prevent. I can't use an anonymous type because this is a set of posts I return from a method: IEnumerable<Post> GetPosts() { ... } I thought maybe I could extend the partial Post class with a property named CommentCount, and assign a value in the LINQ query: from p in db.Posts select p,p.CommentCount = p.Comments.Count() Then the count will be inside the query. Thanks! Thanks! However, var q= from t in db.Tag ...Show All
Visual Studio 2008 (Pre-release) Deserializing A SAML Token Received From An STS?
Having received an RST message, an STS serializes a SAML token into the body of the RSTR message returned to the client. In that the RST and RSTR support was pulled from WCF, it would appear that the SAML token need be deserialized on the client side for caching and reuse. Documentation concerning the SamlSerializer, SecurityTokenResolver, WSSecurityTokenSerializer and SecurityContextSecurityTokenResolver classes is sparse, however, and attempts to do so consistenty result in: "The SecurityKeyIdentifier that was found in the SamlSubject cannot be resolved to a SecurityToken. The SecurityTokenResolver must contain a SecurityToken that the SecurityKeyIdentifier resolves to." Little seems to have been written concerning th ...Show All
Visual C++ unresolved external symbol __RTC_CheckEsp and others
Hello, I am trying to complile and link a bunch of code which makes use of the setupapi.h and hdisdi.h, defined as "extern C". I need the Win DDK, which are correctly installed together with Visual C++ 2005 Express Edition. I am underlining those includes because they caused many link errors. Only after reading previous answers, I reduced their number but am not able to fix the last 3 :-( The linker errors I still get are: DisplayUSB.obj : error LNK2019: unresolved external symbol __RTC_CheckEsp referenced in function _main DisplayUSB.obj : error LNK2001: unresolved external symbol __RTC_Shutdown DisplayUSB.obj : error LNK2001: unresolved external symbol __RTC_InitBase .\Debug/DisplayUSB.exe : fatal err ...Show All
SQL Server Profiler for SQL Server Express 2005
Dear All, I need a tool to see what transactions and in what order are being issued against the SQL Server Express 2005 DB. Because of the SQL Server tools don't come with SQL Server Express 2005, then i run SQL Server 2000's Profiler with SQL Server Express 2005. But It prompt error "Failed to start a new trace". FYI, i don't want to use the backend sql trace .in command prompt.. Pls advise me on how to run the sql profiler to trace the transaction being executed in SQL Express 2005 Thank you. Thanks for replying the email. I got the idea of this "SQL Server 2000's Profiler works with SQL Server 2005" from some other forum. However it doesn' t work at all. So is there any ...Show All
Windows Forms Docking TableLayoutPanel
I have a splitcontainer, which contains a docked table layout panel. I want to dock the tablelayout panel to fill, but without anchoring. When the users resize the form, I want the table layout panel to stretch vertically and horizontally, but I want EACH cell within the table to proportionally resize. Right now, the only way I can dock to fill is to have a top and left anchor, and when that happens, only the top two cells of the 4 row by 1 column table layout panel stretch vertically (and all of the cells stretch horizontally). How do I have it so that all of the 4 rows stretch proportionally both vertically and horizontally This forum is messed up. Can you delete the last 2 posts This is the pic--> http://img56.imagesh ...Show All
Windows Forms Visual Studio 2005 View Form Designer
Let me explain the whole schenario-- I am using Win XP on my machine. I am developing one windows based appliction in Visual Studio 2005 with the third party controls used on my forms.I can run and open the designer on my machine easily. But when I try to open (especially, the form designer) the same application on my other machine it shows me the following error. However, I am able to run the application too but not able to view the form designer in the design mode. "An error occurred while parsing EntityName. Line 2, position 93." and then all XML lines.....as below------ at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Throw(String res, String arg) at System.Xml.XmlTextReaderIm ...Show All
Windows Forms Page setup
I am having problems with my page setup i do not know how to enable it so that users can type text in to the page that they created Assuming you're talking about an ASP.NET app, you have many different options, the most common of which is the textbox control. Here's a quick tutorial on using it. http://www.w3schools.com/aspnet/aspnet_textbox.asp ...Show All
Visual Studio 2008 (Pre-release) Convert VS.Net 2.0 Project to C# 3.0
I've got a lot of VS 2005 code that I'd like to start using LINQ/C# 3.0 features in. I've got the same references as a LINQ project and I've got the same "using" clauses. However, I am still getting a compilation error that System.Array does not contain a definition for "Where" Anyone have an idea on how to accomplish this Kavita Kamani posted instructions for adding LINQ support to existing projects at http://blogs.msdn.com/kavitak/archive/2006/10/16/getting-linq-to-work-outside-of-a-linq-project-template.aspx . Check it out and see if it helps. Jim Wooley http://devauthority.com/blogs/jwooley ...Show All
Visual Studio Team System PM Related VSTS Questions
I received these questions from one of our clients who is a project manager trying to use VSTS. Any information would be greatly appreciated. Background--The client has experience using MS project with Project Server and PWA so the questions are geared towards what tools and how Microsoft sees VSTS interfacing with Ms Project and Project Server. Here are the questions: 1. What are the guidelines and recommendations for the team, primarily for the PM in managing the project plan while it is in executing phase E.g. Developers using TFS for work items, how these updates are managed in MS Project. Client would like to see an 'Approval' process like Project Server so that the PM can see what developers update on remaining hours and compl ...Show All
