Michael M. Emmons's Q&A profile
Visual C# Way to Exclude Directories on Reference Searches
I'm curious if there is a way to exclude a particular project directory from reference searches. The encapsulate Field function of C# is a great time/type saver if the reference search doesn't take forever. However I have a large directory that makes it take forever and I know a fact nothing in it would reference the current field. Is there any way to remove the directory from the reference search to reduce the function execution from 4 minutes back to a few seconds Hi David, I am afraid there is no such a Refactor's setting to exclude a directory for reference search. This seems a product limitation we ...Show All
Visual Studio Recursive excludes
I'm trying to write a target that backs up the current local copy of code the developer has checked out on their machine. I can do a simple full recursive copy: <!-- Archives existing code --> <ItemGroup> <ArchiveItems Include="$(BuildDir)\**"/> </ItemGroup> <Target Name="Archive" DependsOnTargets="SetArchiveTime"> <MakeDir Directories="$(ArchiveDir)\$(ArchiveTime)"/> <Copy SourceFiles="@(ArchiveItems)" DestinationFiles="@(ArchiveItems->'$(ArchiveDir)\$(ArchiveTime)\%(RecursiveDir)%(FileName)%(Extension)')"/> </Target> How ...Show All
SQL Server How to Do Text Mining
Hi All Can anyone tell me how to do text mining using Analysis Servvices in sql server 2005 I have a some financial document in text format and i want to mine those Thnaks in advance Satish The text mining tutorial here should be helpful: http://www.sqlserverdatamining.com/DMCommunity/Tutorials/Links_LinkRedirector.aspx id=689 ...Show All
Visual Basic How to add items in the listbox?
Hello All Forum Members, I have a access database contains tables I want to add thoes tables in listbox as the items .. How can I do that in VB.net 2003 I am very greatfull to you people for answering me this question and resolve my issue ... thank you very much ... Fatir Siddiqui Hi! Do you want to create list of tables from database or you want to add values from some table to your list Common scenario is to fill dataset and bind it to the list or grid controls. ...Show All
SQL Server Querying a really badly designed table
I am working on an application with a number of tables (which I can't change) that have data of the form a1, b1, c1... a2, b2, c2...a3, b3, c3... The tables contain 5 to 10 sets of data in each row. I want to create a stored procedure to return a cursor with a row for each set of data for a row of the table. I know I can use unions: select a1 as a, b1 as b , c1 as c... from sometable where pk=@pk union select a2, b2, c2... from sometable where pk=@pk union select a3... Is there a way that is more efficient (eliminates requerying the table and all the unions) While the structure rema ...Show All
Windows Forms Questions on using a timer
I have written a Windows service that needs to check other installed services to insure that they are still running. I want to use a timer to regularly perform specific tasks. However, the timer "Tick" event is not being fired (even though the timer is enabled and it has a valid interval). In my "OnStart" event for the service, I& ...Show All
Visual Basic HelpCursor on Menu
Hi all, I need to enable context sensitive help in my application. For this when user clicks on a menu item( "Whatis this"), i would change the cursor to a help cursor. I used system.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.Help As this code did not help in changing the cursor, i modified the code to Me.Cursor = System.Windows.Forms.Cursors.Help This code indeed worked. But when i move the cursor over a item in the menu, it changes back to the default cursor. Can someone tell me a way by which the cursor would remain as a help cursor irrespective of the item the cursor hovers over. Thanks, Suga ...Show All
Windows Forms How to upload file using WebBrowser class?
I want to upload file prorammatically using WebBrowser class WebBrowser.Visible property is set to false, so user cannot see the pages loaded to WebBrowser the code is: private void LoadUploadPageBtn_Click(object sender, EventArgs e) { FileStream fs = new FileStream(Environment.CurrentDirectory + "\\upload_page.htm", FileMode.Open, FileAccess.Read); byte[] buffer = new byte[fs.Length]; fs.Read(buffer, 0, buffer.Length); fs.Close(); this.webBrowser1.DocumentText = Encoding.ASCII.GetString(buffer); } upload_page.htm page is: <htm ...Show All
Windows Forms Easy way to format textbox without negative numbers
It is nice in 2005 to use Bindings, Advanced for a textbox and select a numeric format. One problem I am having, however, is that I see no way to tell VS that I want numeric formatting, but I do not want the textbox to accept numbers that are less than zero. Is there an easy way to do this What I think would be the smartest option is what I would hope MS would provide, which is a text box class that can have filters on it based on certain logical rules. So for example, if you want the textbox to check the inputted value for only positive numbers, the control would be used something like th ...Show All
Visual Studio Team System FxCopCmd.exe returned error code 1024
I am getting this at the end of running code analysis: FxCopCmd.exe returned error code 1024 Any help would be appreciated. Are you attempting to invoke the FxCopCmd.exe tool directly 1024 (0x400) is a special result code that indicates a message has occurred that should break the build. Can you provide more context for your execution scenario ...Show All
Visual Studio Express Editions How Can I Copy Source Code from Book Souces or MS WebSite to My Windows Application Form1.vb
Hi all, Is it possible to copy the VB Express code from Book Souces or MS WebSite to my Windows Application Form1.vb If possible, please tell me how to do it and how to make the code to be used by the component tray. Thanks, Scott Chang hi, its like any text editor like you copy text from a word file to another you can copy code(text) from any place to IDE actualy microsoft site have a nice option at the top of code snippet you will find copy code you can click it instead if highlighting text and copy in the ide right click and select past or press ctrl + v hope that helps ...Show All
.NET Development Handling Special characters in Indexing service
There are certain documents in the Indexing server that have special characters like ' and - in the document title (Document properties -> Title). On querying for these documents, these values are corrupted in the title example - is converted to ... How can this be fixed to get the correct results use contains in the query @Doctitle contains 'xyz' i think the following link explains http://ncrules.state.nc.us/searchHelp.asp ...Show All
Windows Forms Exporting Dataset to Excel in a Widows Forms Project (Not ASP)
I may be missing something but there appears to be a gap in the facilities for DataGridView 1) I can read an Excel worksheet into a DataSet Table with one line. The Table has all the columns and formatting from the spreadsheet. Example below. 2) In the reverse direction I can fully Create the file, Create the Worksheet with formatting and Fill the Rows with one line BUT only by reading from another DataBase using SELECT * INTO. Example below. 3) I can convert a Datagrid to and Excel Worksheet using ASP with a few lines. Many examples given on the web using RenderControl and HtmlTextWriter. No ...Show All
Visual Studio Team System where are the databases after installation of TFS?
I follow the to install the TFS (sigle server) except that i got a latest version than the bate3. when i finished, i expexted to see some databases such as STS_Config_TFS/ STS_Content_TFS, etc in SQL Server 2005. But I found nothing. Would you mind telling me why Is is related to the version of TFS by the way, I tested the WSS and team project creatation, all is done. thanks for your answer! John thank bruce and allen, it seems that there are some problems about WSS, i have cahnged it now it done. thank you two very mcuh. ...Show All
SQL Server SSIS will not start after SQL Server 2005 SP1 upgrade
Hi guys, I have experienced a problem with a SQL Server 2005 SP1 upgrade, where hotfix.exe reported an error during the SSIS component upgrade, and then the SSIS service would not start back up. I have since attempted an additional SP1 upgrade on the server, which completed successfully, however the SSIS service still will not start. The server is running Windows Server 2003 Standard Edition SP1 with SQL Server 2005 Standard Edition (x86), which had been a clean RTM install prior to the SP1 upgrade attempt. The following information was located in the C:\Windows\Hotfix\DTS9\Logs\DTS9_Hotfix_KB913090_0.log file (the servers name has bee ...Show All
