Steve Faris's Q&A profile
.NET Development Compare time
Hi, Im having a lil question. Im trying to compare 2 times with eachother. One time is in an xml file. The other one is the time at this current moment. If the time is older than 1 month, it should remove a whole table from the xml file. This is the code i produced so far: static void Main(string[] args) { try { DataSet xmlFile = new DataSet(); xmlFile.ReadXml("test.xml"); foreach (DataRow dateR ...Show All
Visual Studio Team System Possible to detect use of enum.ToString()?
Does anyone know if it is possible to detect the use of an enum's "ToString()" method The reason I ask is because we have started obfuscating our code using Dotfuscator, and of course because that renames the enums, it plays merry hell with any use of enum.ToString()! It'd be great if FXCopy could detect such usage. Also, I guess we'd need to detect enum.Parse() and other reflection-style access. Any help would be much appreciated! ...Show All
SQL Server SS2005 Replication - cannot drop subscriptions from publisher
I am executing sp_dropmergesubscription, but the rows are still in dbo.msmerge_subscriptions, and are still shown in the replication monitor as expired; the last synch dates were in april (expiration is set to 10 days). The 'expired subscription clean up' job appears to be running okay. I need to remove these subscriptions from the publisher as the subscribers are mobile devices, which sometimes are lost. I ...Show All
Visual C# Access levels, public interfaces and multi assembly programs
I am building a program that has several assemblies. I want the graphical shape assembly to control everything about these shapes, especially drawing themselves. All shapes are derived from an interface IShape . This interface is public and stored in an assembly (named common) that houses all Interfaces that the apps needs to know about in all assemblies. The idea is to isolate all shapes but make them available to the rest of the prog ...Show All
Windows Forms Getting Rid of Namespace when calling dll methods?
First of all Greetings to all since this is my first post. I'd like to ask if anyone knows a way to call static functions from a dll, without having to write down the whole reference type. Eg, say that i have a dll named "Foobar ...Show All
SQL Server where can I download SQL 2005 Beta 9.00.0852
Hi, I need SQL server 2005 Beta version 9.00.0852. Please can any one let me know that where I can download that. Complete version . I have a hard time to find Thanks in advance Why on earth would you want Beta 2 RC1 of SQL Server 2005 I can practically guarantee you that you are going to have such a difficult time finding it that it probably aren’t worth your time to try. Not only is it quite out dated, it is unlikely that ...Show All
Visual Studio Toolwindow package, setup project
Hello, I developed a ToolWindow project, and is running ok in my machine I need to install it on another machine with VStudio 8.0, I created a setup project including all the necesary files. I'm creating 2 registry entries for make it run: HKLM\Software\Microsoft\VisualStudio\8.0\Packages\{my package GUID} With the properties: Assembly, Class, CodeBase, CompanyName, ID, InprocServer, InProcServer32, MinEdition, ProductName, ProductVersi ...Show All
Smart Device Development Launch an application on a PC
Hi guys, Is it possible to launch an executable file on a shared directory of a PC with an application on a Pocket PC I mean : I want, from my pocket application, send an instruction that launches an other application on a network station, and this application had to run on the station, not the pocket pc. Has anybody any suggestions Thank you ! You will need an application on the PC that listens for the comma ...Show All
SQL Server Streams in SqlFunction
I am trying to use System.IO.Compression to compress/decompress the buffer. I have the data in byte format in sql server and I need to create an CLR user defined function. I have everything running except that for some of the files, the compressed size is larger than the actual file size. I tried to use both Deflate and GZip compression types. Did anyone face the similar situation. Thanks in advance for your help. ...Show All
Windows Forms Display Text in TextBox at Cursor Position
Hi, I want to display the text which is dragged from a TreeView at the cursor position in the TextBox. I don't how to get the text from the textBox till the cursor Position. Can u suggest me someways to do it Thank you for con ...Show All
Visual Studio Express Editions Application won't run beyond splash screen on testing machines
I have almost finished developing a rather extensive application that was in part upgraded from VB6. Since deployment is a bit different with VB Express than VB6, I've been trying to get a handle on this aspect. The compiled application runs on my development machine without any problems. I have loaded .net 2.0 framework on two different machines and have dealt with various issues and error messages, and now at the point where the splash scre ...Show All
Visual C++ Help with visual beta 2
Im in a CS class using the microsoft visual studio 8 beta 2 as our program. last year we used lawence press libs and we cant use those in beta any suggestions Hi, I've looked at the libraries you linked to and it seems that they have been designed back in 1997 for Visual C++ 6.0. Since that release, we have made tremendous improvements in the product, specifically in the realm of standards conformance. Thus, the primary reason for the libr ...Show All
Visual Basic Downloadable Search Application (windows) using VB.NET
Hi- I am working on a downloadable desktop application (windows) using VB.NET which can search for data in a data file. I have used XML as a data file before, are there any other better data file formats available Any help will be highly appreciated. Thanks, Prabhu Thank you, Vikram. I am expecting the new tool to go live in the month, so I am not sure about SQL Exp. 05, but will look into it. Regards, Prabhu ...Show All
Visual Studio Team System Customizing bug form
Hi there, How do I make sure that the group box is only as big as it fills all the controls in it and does not leave any empty area, so that it looks better as well I can utilize maximum area of the form. Basically how do I set/control the height (as I can do for width by percentwidth attribute) of any control or group in form Thanks, Anu Hi Anu There is no option to set the height for each control. Yo ...Show All
Windows Forms Drawing transparent button
I'm trying to create a button with a transparent background, but I get an odd result. I override the button class and the OnPaint Method. protected override void OnPaint( PaintEventArgs pevent) { SolidBrush bursh = new SolidBrush ( Color .Transparent); pevent.Graphics.FillRectangle(bursh, new Rectangle (0, 0, this .Width, this .Height)); } Using this code I ...Show All
