unninxt's Q&A profile
Visual Studio Tools for Office Set wait cursor for word document
I have a long running VSTO procedure running. During its processing, I would like to display hourclass as the cursor. Please advice how to change the word's cursor. Thanks, Yuhang I don't have experiance with Word, but in dealing with Excel, I had to place my operations on a seperate thread and then invoke back to the main thread to do the windows update for hourglass and a progress bar. The reasoning for that is that is, the hourglass operation request is asynchronous; the user would never see it changed until the work was done. (It gave the impression that Excel was locked up, even though work was ha ...Show All
Visual Studio Team System Project Creation Wizard Extensibility
When creating a Project Creation Wizard, is it possible to have it store a string value within the project For example the PcwTEExample from the SDK has an PCW that asks the user to enter a couple of web addresses. these addresse are saved to an external xml file it would seem. Would it be possible to store these inside the project, so that the value wasn't machine dependant Code examples would be much appreciated. This sounds very much like what I'm trying to achieve. The problem is that since I'm not able to find any documentation on any of the TFS classes, I find it rather hard to know where to start. I have looked at the TEPC ...Show All
SQL Server System database and table maintenance.
Hi There I realize this is a pretty stupid question, but what is the general rule as far as maintaining system databases and tables are concerned. For example i never heard anything about having to rebuild indexes on system tables in a database only user tables, shou;d one be rebuilding indexes and updating statistics on sysobjects, syscolumns etc on a user database Also should one be doing the same in master database All maintenance and optimization stuff i have ever read has only spoken about user objects, i am not sure what the best practice is as far as system database and tables are concerned Thanx ...Show All
Visual Studio Team System Deploy with Unit Test
I wish to use VSTSForDP to support my pre-existing unit tests. Currently the process we use is anytime we make a change to the database schema we use SQL management studio to generate a script that will create the database. We then check that .sql file into TFS as a solution item. Our unit tests have a piece of init code that reads in the .sql file and executes it against our test server to create a fresh database that our unit tests will use. We wish to simplify this process using DataDude. When our Unit Test init code runs I would like to run the .sql file that is the result of the build on our DataDude project. How can I do this With ...Show All
.NET Development System.valuetype
Hi There is something I wan't to understand. How come there is no way to inherit from ValueType I know it is seald but why Is it because a user might create a "mutation" object Thanks Avi You are mixing classes and value types based on your knowledge of C#. You need to break that association. .NET deals with value types and reference types. A reference type supports inheritance, overloading, etc. A reference type is allocated in the heap and is GCed when no longer in use. A value type is allocated on the stack and is freed when it goes out of scope. Because a value type has no ...Show All
Visual Studio Tools for Office Running a Word VSTO Project - What steps must be accomplished?
Greetings! I have developed a Word VSTO Project based on a template: my Oracle Forms application launches MSWord and creates a new file from that template, with a custom actions pane and with a mail merge. It is working fine, but only in my PC. This feature must be shown in an important presentation and it must be installed in a colleague's mobile computer. Unfortunately, they have tried this afternoon and have not succeded! I would like to confirm what steps must be fulfilled in order to make it work! First, he needs to install Office2003 and the .NET framework in his computer. Then, he must give full trust permissions to the ...Show All
.NET Development Array.ConvertAll and List<T>.ConvertAll but nothing that works with IEnumerable<T>
It appears there's an oversight in the design of System.Collections.Generic. Given an instance of an implementation of IList<T>, one cannot use generic algorithms because there is no static class which implements the generic algorithms (things like ForEach, RemoveAll, ConvertAll, etc.) for downlevel generic interfaces. For example, ForEach could be implemented on an IEnumerable<T>. Similarly, different levels of support for ConvertAll could be implemented for IEnumerable<T> (returning an IEnumerable<U> , ICollection<T> (returning U[] or List<U>, doesn't really matter). Am I missing something Should I ...Show All
SQL Server SQL Express and Templates
In SQL Server Express, whenever I setup a Stored Procedure, a template appears, which is wonderful. Can these templates be modified (for example, additional information added) and if so, where is this documented Regards, Flavelle Mike: Bug reported as requested. thanks, Flavelle ...Show All
Visual C# Diff Between Web and Window Application
Hi All, Please explain me in details, What are all the limitations of windows and web applications Awaiting for your reply! Thanks in advance Regards, Sriram I'm afraid that this question is far to broad and detailed to answer reasonably on the forums. Please refer to the MSDN documentation for .NET instead. MSDN provides recommendations, warnings and guidelines about chosing the type of application to write (web, windows, smart client), how to properly write, debug, test and deploy an application and how to work around issues you might find. Please feel free to post specific questions as you proceed through y ...Show All
Visual C# Preventing decompilation!!
Hi, Can someone tell me how can I prevent decompilation of assemblies created in .NET. Are there any freeware softwares that makes this happen. Please provide me the download link of these softwares, if there are any. Thanks, Frens You can use a obfuscator, here is a little list of obfuscator's for .NET: {smartassembly} Decompiler.NET Deploy.NET Salamander .NET Obfuscator Semantic Designs: C# Source Code Obfuscator Spices.Net Thinstall Demeanor for .NET XenoCode .NET Obfuscator and Optimizer ...Show All
Windows Forms DataGridViewColumn.HeaderText
After binding a DataGridView to a datasource and looping through the columns to update the headertext, some captions get modified and some don't. Sample code copied from ms-help: For Each column As DataGridViewColumn In EmployeesDataGridView.Columns column.HeaderText = String.Concat("Column ", column.Index.ToString) &n ...Show All
Windows Live Developer Forums invitation
Hi, please send me invitation to z0li@msn.com, thanks. ...Show All
Windows Forms How to build the shell explorer on the TreeView component?
Can anyone tell me how I build an explorer like the left pane in the Windows Explorer, using the TreeView component in VS-2005, C# What I need is the ability to browse from the desktop, and downwards on the disk structure. I found the dialog for folder browsing, but I need it to be a part of my main window - exactly like the windows explorer... Thanks a lot for your help... Best regards, Mikael Hi, Check following article: http://www.codeproject.com/useritems/TreeViewFileExplorer.asp Max ...Show All
Visual Basic what about "can't change combobox height vb.net 2005'
In vb.net 2003 it was possible change the height of controls like textbox (with multline set to false) and combobox, now in vb.net 2005 I can't. there is a way to change that Dustin_H wrote: Combo boxes height can't be changed unfortunately :( Atleast, i've never found a way. Why they change things like that Now I have to reorder my hole application ...Show All
.NET Development Newbie Question (kinda)
I am attempting to open a connection to a SQL 2000 Server in VB 2005 Express, and I am receiving an InvalidOperationException. I can't seem to figure it out as my VB.NET is a little weak... Here's the code: Dim con As New OleDb.OleDbConnection( "PROVIDER=SQLOLEDB; packet size=4096;user id=BLAH;data source=SOMESERVER;persist security info=False;database=BooBoo" ) Dim cmd As New OleDb.OleDbCommand( "Select Customer.CustomerID as vCustomerID, Customer.FirstName as vCustomerFirstName, Customer.LastName as vCustomerLastName, Customer.CompanyIDNum as vCompanyIDNum, Customer.Zip as vCustomerZip, Installation. ...Show All
