Floorcookie's Q&A profile
Windows Forms change backcolor of columnheader of listview control in c#
how can i change backcolor of columnheader of listview control in c# can you help me thanks, nirav parikh There isn't a property as such to change this, however you can custom draw the header columns yourself: 1. Set ListView.OwnerDraw to true 2. Attach to ListView.DrawColumnHeader and set DrawListViewColumnHeaderEventArgs. DrawDefault to false. 3. Draw the column header ...Show All
Windows Forms BindingSource (Filter property)
Here is the example in MSDN for the Filter property: // Filter the items to show contacts who are owners. BindingSource1.Filter = "ContactTitle='Owner'"; Is it a SQL expression or just limited to "=" operator Note that BindingSource doesn't directly support filtering rather it requires the underlying data source to support filtering (which is typically only ADO.NET). The following link has informatio ...Show All
Windows Forms foreach Threading Question!
How can I start a thread inside of a foreach loop and then wait until that thread is finished before moving to the next thread Thread myThread; for (int i = 0; i<=5; i++) { //...set some myObject properties based on i... &n ...Show All
Visual C# How to cast Null object.
Hi all, I am wondering if I can do casting for null object. Lets see the following code: int i; object o; o = null ; i = ( int )o; I am getting error that "Object reference not set to an instance of an object." Is this possible by any other way Thank you Hello, Null casting is invalid in .NET Because null objects doesn't has a memory area. No start point. No length. It is i ...Show All
.NET Development SelectSingleNode XPATH to match single quoted data
I am using the XmlDocument class to query XML data with XPATH. Some of my data includes single quote characters. For example: < menuitem > S/CData.XYZ.Submissions.S/C's </ menuitem > How do I match on this data with XPATH within a SelectSingleNode method call I have tended to use single quotes to encapsulate string data within XPATH queries. For example: XmlNode test = DOM.SelectSingleNode(customer[@name='fred']); ...Show All
.NET Development XMLDocument.Load Proxy Error 407
Hi All, I am trying to use the XMLDocument.Load method to load an XML document from a web site ( http://www.xxx.com/file.xml ). As I am going through ISA and require Proxy authentication, I cannot seem to use any property on the XMLDocument object to specify such. I tried using the XML Resolver but to no avail. All I can specify there is the URLResolver and pass some credentials, but no proxy. I am using VB.NET 2005 PRO, and will be usi ...Show All
Visual Studio Team System Forgot password for TFSService
I forgot the password that I setup for TFSService. Since our Domain requires the password to be changed every 90 days, I proceeded to change the password. I also updated the password in the Team Foundation Windows services that utilized it. Unfortunately, I found out that I should have used the tfsadminutil tool instead of trying to find all the places to update the password manually. I really don't understand why there is an "OldPasswor ...Show All
Windows Forms DataGrid scroll - tough one
Hi all, Is it possible to make a DataGrid scrollable while freezing one of its columns That is, while the rest of the columns scroll, that single column stays put. Thanks. I saw a grid that does this, but again I am not sure h ...Show All
Visual Studio Tools for Office 1 Add-In uses .net 1.1, a second uses .net 2.0
Hello; I just created a simple Add-In using VS 2003. I also have VS 2005 & .net 2.0 (release) installed on my computer. The .net 1.1 Add-In would only run if I created a winword.exe.config file setting the runtime to .net 1.1. Without that Word would exit during it's startup (no message, no crash - just exit). With the config it runs fine. So, what if someone wants to run two Add-Ins with Word, one built under .net 1.1 and one built under .n ...Show All
SQL Server Retrieving a piece of datalogged equipment by most recent time
The TSQL below all works except the bolded part at the end. I'm want to grab only the most recently logged piece of equipment not the most recent and all past ones as well which is what I've got doing minus the bolded part below. But I don't know how to say get this Equipment ID etc and only the most recently logged one to find its present location. The bolded part below is just there to show what I want it to do I know you can use an aggregat ...Show All
Visual C# Problem permiting global shortcut keys
I was programming a program that would hide itself at the press of Ctrl-Space and show itself when Ctrl-Space was pressed. However, the program has to have focus or this won't work. Is there a way to permit such a shortcut press while using another program without clicking on its task bar button Yes, you can do this by capturing Windows Messages http://www.aaronballman.com/programming/REALbasic/WindowSubcl ...Show All
Windows Forms Problems with Server
I Install Terrarium Server beta 1 i have : MS Windows 2003 Server MS SQL 2k with SQL auth. framework 1.1. IIS 6.0 Then i try to acces my server like http://server/terrarium it shows : 'Error accessing....... Help me plz Andrew Could you post more inf ...Show All
Visual Studio Team System REFRESH files and TFS
I think I must be missing something as regards how web service projects work in a team environment. Perhaps someone can explain the missing link for me. Upon installation, the default location for Visual Studio projects is within My Documents. Keep this in mind for a moment. When a web service is created that requires an external assembly, you add a reference just like you would any other type of project. For a web service, t ...Show All
SQL Server making the shift from Access SQL to 'Real' SQL ;-)
for the record, this is my first post and i'm not sure this is the right place to post, but it makes sence to me. i've been spending a great deal of time with our new MS SQL server and love it but i've noticed there's a fairly large diff between the SQL i'm used to seeing in MS Access and the SQL that the server uses. as you can see by my below statement i'm starting to get the hang of this but i still run into new issues... my question.. ...Show All
Visual C++ How can I get the CheckedListBox for a Com project?
Hi, I'm developing a in process COM server to add prooperty pages to Active Directory. i'm using V.S. 2005's C++ with only the standard library. When I create the GUI resource file for the property page, there is only standard listbox availble in the Toolbox. I know that checkedListBox is availble if I were developing a window application using VC++ from the toolbox. Does anyone know how I can get that added to my toolbox for this project ...Show All
