Steven Yetter's Q&A profile
Visual C# Logging Feature w/o passing a streamwriter
I have written a program with several classes, and several methods that objects of each class performs. Now, I want to create a detailed logging feature, that will produce a single text file each time the program runs. I want to be able to add log entries from any method in any class in the program. What I don't want to do is, for each entry, open the file, write the entry, flush, and close the file. I also don't want to pass a streamwriter to ...Show All
Visual Studio Express Editions Can't get activation key for VB Express Beta 2
I have tried to get an activation key 3 times for my Visual Basic 2005 Express Beta 2. I fill out the form on this webiste, press submit, and it says an email has been successfully sent to my inbox. But there is no email in my inbox. I checked the email address. Can anyone help Has anyone done this successfully Robert OK - there are a couple things here: First, you get the P ...Show All
Windows Forms CodeAccessPermission.Demand() vs. Assert()
I'm trying to decide whether to use CodeAccessPermission.Demand() vs. Assert(), in my Internet deployed Win Forms client app. From the various postings I've read here and elsewhere, I've learnt: 1) "When the call stack is initiated, it hits the AppDomain boundary ...Show All
Windows Live Developer Forums Contest Deadline Question
Hello, I was wondering whether the launches for our applications will count past the 31st, until the winners are announced or will the applications be shut down for public access after the 31st My application should be complete on 27th-28th (before 30th for sure) and I would also like to get a chance to get some feedback (as well as launch points) from visitors and I (as well as most other people who entered this competition a little late) ...Show All
Visual C# Making a new event handler -- errors?
I'm attempting to create an event handler for OnResize so I can resize some controls on the form accordingly but I receive an error: Error 1 No overload for 'frmMain_OnResize' matches delegate 'System.EventHandler' C:\Documents and Settings\Vexen Empire\My Documents\Visual Studio 2005\Projects\WebBrowser1\WebBrowser1\frmMain.cs 23 29 WebBr ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Multiple Monitors as Independent Displays
Is there a way to use DirectX to write to a monitor on a second display adapter when the monitor is detached from the Windows (XP Pro) desktop The MSDN library contains a topic "Using Multiple Monitors as Independent Displays" which suggests that one can use the GDI function CreateCD or the DirectX function DirectDrawCreate (now a deprecated function). What currently supported DX9 function will let me open the device and use it for ...Show All
Windows Forms Forms designer error when trying to display
I have a Windows Forms project in a VS 2005 solution along with a Class Library project. The class library contains a class with the following static method: public static void LogError(string strSource, string ErrMessage) { //write the log message to the log if ( !EventLog.SourceExists(ConfigurationManager.AppSettings["ApplicationName"]) ) { EventLog.CreateEventSource(ConfigurationManager.AppSettings[" ...Show All
Windows Forms DataGridView Soring
I really like the new DataGridView control, however, it always seems to sort columns containing numbers and dates as if they were strings. The Windows Forms 1.x ListView control did the same thing so what I ended up doing was to create an ...Show All
Windows Forms VDProj BannerText
Hi All, Is there any way to change BannerText in the welcome screen of a vdproj file made with VS2005 It seems like now it gets it from VsdWelcomeDlg.wid and currently has this value: "Welcome to the [ProductName] Setup Wizard" Obviously, I can't edit that file, so I want to know if there is any way to change BannerText without changing that file (using a post build event, a script, or anything else). Why ...Show All
SQL Server Is SQL Server 2005 still using Named Pipes ?
I keep getting errors. It all started when I enabled named pipes on my SQL Server 2005 server. Ever since then I've had connection problems up the butt. Most recently I got this error so does this mean that SQL Server is still trying to use named pipes even if I only have TCP/IP enabled in SQL Server Configuration Manager Error: TITLE: Connect to Server ------------------------------ Cannot connect to BG-SQL2005. ----- ...Show All
Visual Studio Visual Source Safe and .sln
I've been using vs8 standard for almost 3 months now and I just noticed that the solution files are not getting checked into SourceSafe. We are still using version 6 of SourceSafe. Could that be the reason, or are the .sln not supposed to check in Will they rebuild automatically if they get lost. I will probably go into SS and force add the .sln files. Also, the .vcproj checks in, but projname.vcproj.MASTER.bill.user never does. Is that a ...Show All
Windows Forms Problems during databinding of data in Windows 98
Currently my colleagues are facing a very strange problem with the .Net framework. I wonder if there is anyone who can help us to resolve this problem. The problem occurs when data binding a control, e.g. ComboBox on a .Net application running on a Windows 98 Second Edition platform. (All required applications are installed: MDAC, Microsoft dot net 1.1 SP1 Framework etc). The controls returns an empty list with no content. We tested the sam ...Show All
Windows Forms i am wondering...
I am using vb.NET part of VS.NET, and no matter how many times i check to see if targetanimal is nothing ( targetanimal being animalstate of the current target ) i always seem to get OrganismNotVisibleException, and my creature ends up attacking&nbs ...Show All
Visual Basic How to edit a collection at design time
Hi All, I am using VS 2005 and I am creating a control that has a property which is a collection. I would like that collection to be editable in design mode, like, for example, the tab pages of a TabControl. In my specific case, the collection only holds colors. I wrote this code in my control : Private m_ColorList As List( Of Color) Public Property ColorList() As List( Of Color) Get &nb ...Show All
Software Development for Windows Vista Is Sequential workflow can be a base workflow and can we access methods inside that by inheriting
Hi, I am trying to acheive Pure XAML in ASP.Net. The steps in my work 1. I had one Sequential WorkflowLibrary which is having code as shown below.I have removed sealed to make that inheritable. public int testCondition = 0; public void If_Exec( object sender, EventArgs e){ MessageBox .Show( "If Executed" );} public void Else_Exec( object sender, EventArgs e){ MessageBox .Show( "Else ...Show All
