N. Gregg Brown's Q&A profile
Visual Studio Team System Detecting unused code across multiple assemblies
In an older version of FX Cop (a few years ago now), I think there was a public class called Graph. I wrote an app that used this class to detect unused code across multiple assemblies (we have 247 assemblies at present and around 4.5 million lines of code). Is there any current way of performing the same operation with the current version of FX Cop I managed to pull it off quite successfully - the simple answe ...Show All
.NET Development How can I gen connection string in config file from server?
Please help me ! How can I get connection string in web.config file from server when Remote Object has been registed on IIS The code details: Remote Object: Imports System.Runtime.Remoting Imports System.Runtime.Remoting.Channels.Http Public Class CustomerObject Inherits System.MarshalByRefObject Private m_strConnectionString As String Sub New () m_strConnectionString = System.Configuration.Config ...Show All
Windows Forms Word Viewer
Not sure if this is the right forum for this but here goes; I was wondering if anyone knew how(if possible) I could store bits and peaces of a word document(including images, in a blob for example) in a database and then fetch it from there and view/edit in a winform, not in ms word. Hello, I am using Visual C++.Net 2003. I would like to run Msword 2003 as a part of the windows form. I added a reference ...Show All
Visual Studio Express Editions I think the solution is simple:
Im just trying to get for loops to work properly and just basically messing around. This does actually work properly; yes i realize the names are retarded but they just came out :P Basically in this program you highlight an item in the textbox, and when you press ok that selected item will come up in a messagebox and say "you have selected so and so" Anyway... my question is how would i get this to display "You have selec ...Show All
Visual Basic StringTokenizer in VB.NET and highlighting
Is there anything like a StringTokenizer in VB.NET e.g. If I've got a String "artificial intelligence", how to divide it into two strings Another question is about highlighting particular words. e.g If I have a short text "He is a professor" in a Label. What I need to is to highlight the word "professor" by displaying it using different colour. split(" ") ...Show All
.NET Development Using Windows Service without Web Service to send emails from web application!!
Hi, I have to check certain conditions from the database (SQL Server 2000) and send out emails by fetching the email addresses from the database again. My application is a web application giong to be launched onthe company intranet and coded in ASP.Net and VB.Net. I could make a simple windows service. But all the examples I am getting online for accessing my database is using the Windows Service via the web serivce. But I d ...Show All
Windows Forms windows form stops responding during non-infinite loop
Hi,I have a windows form that sends out a monthly opt in newsletter email to all of our community members. The problem is that the list is large, and every time I run the program it sits there appearing to be frozen. I have to watch the program under task manager and watch its resources to see if its running, and checking the queue mail folder for emails. This obviously is not a great way to run the program.In my code I loop thru a sqldatareader ...Show All
Software Development for Windows Vista VB wf designer problem with rules and withevents
Hi, I'm experiencing the compile time error WF1368: Activity 'ifElseBranchActivity1' validation failed: Property "Condition" has invalid value. Condition expression is invalid. The field "delayActivity1" on type "wwfcon.Workflow1" does not exist or is not accessible. if using the vb workflow designer and some simple rules. I've tracked it down that the property can be found if the Activity (delayActivity ...Show All
Windows Forms Problem dragging documents from my App into Word2003
Hi, I've been trying to implement drag and drop from my application to other applications. It's a little more complex than usual in that the files first have to be downloaded over the web, but this should not be a problem. When the drop occurs, I download the file over the web to a local directory, and then copy from here to the external application. I've implemented this as shown below and this works fine for dragging my word documents ...Show All
SQL Server SSIS Variables not changing value?!
Greetings my SQL friends, I have a very simple package which consists of a SQL Task component and a Script Task. The SQL Task retrieves a single value from 1 row table in one of my database and assigns that value to a variable. The Script task simply outputs the value of the variable in to a message box. I know, it's all simple stuff (I am trying to master SSIS ) The problem I have is that when I change the value of the column in my table, the ...Show All
SQL Server OLEDB question
This may be a newbie question but here it goes. I have SQL Server 2000 running on a windows server 2003 machine. When i have my database local, on MSDE everything is fine. But when i switch my code to move to the server, (after i've attached the database within the server) it tells me that server either does not exist or login failed. Now here is my connection statement OleDbConnection m_conn; string connectionStrin ...Show All
Visual Studio Team System excludegroups filteritem does not filter local groups.
Hi, I have a custom Process Template generated using MSF Agile 4.0. The problem is it does not exclude the groups in "Assigned To" field. We want to see only the people names rather than groups. Below is the definition of "Assigned To" field in the Task work item. <FIELD name="Assigned To" refname="System.AssignedTo" type="String"> <HELPTEXT>Assigned person</HEL ...Show All
Visual C# C# 2003 code optimization?
I have written a Newton Fractal generator. In computing the Newton Iteration I included a switch to determine the order of the equation. See code snippet below: public Complex evaluate(Complex x, int order) { switch (order) { case 0: return (((((((A*x+B)*x+C)*x+D)*x+E)*x+F)*x+G)*x+H)*x+I; case 1:   ...Show All
Windows Forms System Slow
Hi, This is the first time i am posting a thread abt my system over here. I hope i get a good response. well the question is system config is P4/512mb Ram/30gb hdd/Windows XP SP2/L2 Cache/CDRW etc The thing is that my system runs absolutely slow. after adding up a Broadband connection on my system it really pains to see that. I have already done the following things: Fdisk - Reinstall it made a little bit important but its the same ...Show All
Visual Studio Team System No Message - no Result!?
Hi I'm running a FxCop project with some assemblies. One assembly doesn't contain messages (assembly is clean). This assembly doesn't appear in the report. As well when I run FxCop in command line. FxCop command-line even produce no output when the complete FxCop project contain no messages. Is this a feature or a bug Thanks Hubertus This is by-design. To force FxCopCmd to always output ...Show All
