Ingo's Q&A profile
Windows Forms Control TextChanged Event Question
My group is in the process of creating a few common forms that we will use as templates for all the applications we create. Basically, instead of inheriting from System.Windows.Forms.Forms we will inherit from these subclasses. One of the common features we would like available in the form is when the TextChanged event fires on any TextBox or Combobox on the form, we would like to mark the form as IsDirty and enable a Save button. Because these ...Show All
Visual C# C# compiler error
The o1 != o2 is not interpreted properly by the compiler in the code below! Using XP SP2, VS 2005 final, .NET 2.0 CLR v2.0.50727. Any ideas if ( false != false ) { Debug .WriteLine( "false != false, should not come here!" ); } bool b1 = false ; bool b2 = false ; if (b1 != b2) { Debug .WriteLine( "b1 != b2, should not come here!" ); } object o1 = false ; object o2 = false ; if (o1 != o2) { De ...Show All
Visual Studio Team System Proxy setting non-binding for localhost
Using declarative webtest, proxy setting is being ignored when making localhost connections. In the webtest, you can specify the proxy host&port in the webtest properties, or if your IE proxy setting is set before it is launched, it is automatically populated in the webtest. Requests do seem to be passed through proxies - except when making calls to the localhost. It looks like the proxy setting is ignored by Visual Studio when mak ...Show All
.NET Development Need help with small program feature
Hi everybody, I need help with a small feature for my program. I want to make a button that calls a webbrowser like mozilla, IE,... and I want it to show a specific website. Is this possible If yes could someone post the code here Thanks in advance ...Show All
Software Development for Windows Vista Getting Host Variables
Im wondering if anyone can help me. I am hosting Windows Workflow in ASP.NET. In ASP.NET I am using NHibernate. NHibernate has a run time variable that is created when the web app starts up that all the sessions use to create querys, etc. Its a good practice to only have ony application variable because of 2nd level caching, etc. My question is how would I go about getting access to this application variable inside windows workflow. I cant pass ...Show All
SQL Server Cannot connect to SQL Express Remotely
I have SQL Express April CTP (from VS Beta 2) installed on machineA, but I cannot connect to it from machineB using the command "sqlcmd -S machineA\sqlexpress -E". This command works just fine from machineA. I have enabled the TCP/IP protocol for the SQLExpress instance through the configuration manager, and turned off the Windows Firewall on machineA. Any ideas on what I'm doing wrong Hi, ...Show All
Visual C# Error sending filled form via email
This is the code I use to send my form via email: protected void sendMail(string strFrom, string strBody) { //create the mail message MailMessage mail = new MailMessage(); //set the addresses mail.From = new MailAddress(strFrom); mail.To.Add("myEmail@myDomain.com"); //set the content mail.Subject = txtSubject.Text; mail.Body = strBody; mail.IsBodyHtml = fal ...Show All
Visual C++ error C3861: 'exit': identifier not found
Hi, I'm trying to build an old code (main.cpp) where I'm using SDL. This is my first time using Visual Studio 2005 . I have included the following: #include <SDL/SDL.h> #include <stdio.h> #include <stdlib.h> int main( int argc, char *argv[]) { if ( SDL_Init(SDL_INIT_AUDIO|SDL_INIT_VIDEO) < 0 ) //SDL_Init will return -1 if it could not initialize { printf( "Unable to in ...Show All
Visual Studio 2008 (Pre-release) RichTextBox How To!
Hi, I have searched the net and the documentation that shipped with Beta 2 and have not found any results or information that was able to aid me. Hopefully there are some RichTextBox experts that could please help me with the following things: How can I make the RichTextBox single line (this was possible in Win32, and no, changing the control template to a textbox does not work! Because then it essentially is a t ...Show All
Visual Studio 2008 (Pre-release) Proper documentation for WPF?
Hello! Is there some proper written description of WPF somewhere, for instance for download from the Microsoft website. Concerning proper I mean some documentation which present a complete conceptual driven presentation of WPF with operational directions of examples. I think the SDK browser is very poor in presenting an overview of the area. I think it works much better for situations holding only a small amount of information. By the w ...Show All
Visual Studio 2008 (Pre-release) 401.1 unauthorized access error with Windows 2003+IIS 6.0+WinFx Runtime Feb CTP
Hi There, I am not quite sure I should post this question here. I assume there is co-working issue between IIS6.0 and Indigo. Our indigo service hosted with IIS 6.0 behaves kind of weird: when accessing our Indigo services after the server has been running some time (let's say, 10 hours, 12 hours overnight), 401.1 unauthorized access error occurs. Not only the indigo services, any access to public websites on this server gives the same pro ...Show All
Visual C# Datagrid Events
I am trying to find an event that then the user scrolls down the datagrid for each record I can display the notes in a listview control. So, when the user goes to a different record the notes for that record will appear in the listview control. Can somebody help thanks Hopefully this is not taken in the wrong thought, but did you create a handler for the event, not just copy and paste the code I presume this is Framework 1.1 not 2.0, since ...Show All
Visual Studio Express Editions SQL Query In VB Express 2005
Hi I m a good VB 6 user. I used SQL Query in the codes of VB 6 in the recordsource property of the database. Now Where and how should I write sql query in code window in VB 2005 Express since there is no recordsource property. An example to query datagrid by using a sql query in button code will be greatly appreciated. Example When Button_Clicked something........= "select * from mytable where myquery" End Sub H ...Show All
Visual Basic Buying Visual Basic 2005
Am I able to buy just VB 2005 or do I have to buy the Visual Studio suite Thanks in advance! I made a mistake. I said VS express when I meant to say VB express. But there is definitely a downloadable VB express. I've had it on my system. Standalone VB Express 2005. I didn't used to like DOT NET at all. I didn't like post VB6 IDEs. But when I saw VB Express, I fell in love with it.&n ...Show All
SQL Server using UniqueIdentifier list in Select * from table where UniqueIdentifierCol in UniqueIdentifierList
I'm looking for a way to extract rows from a table where the row's primary key is an UniqueIdentifier using the "where . . . in" clause of the "select" statement. I have a program (VB.net) that assembles a list of desired UniqueIdentifiers and casts them as a single string of comma separated GUID.tostring values. This list string would be passed to a stored procedure such as: Procedure FindPartsInUIDlist ( @Select ...Show All
