Skyler Fowler's Q&A profile
Windows Forms how can i set a column's backcolor of ListView control(c#)
i just know, private const int WM_PAINT =0x000F; protected override void WndProc(ref Message m) { base.WndProc (ref m); switch(m.Msg) { case WM_PAINT: //BackColor=Color.Red; if(this.Columns.Count!=0) { Graphics g=Graphics.FromHwnd(this.Handle); i=0; //index of columns g.FillRectangle(new SolidBrush(mycolor),0,0,this.Columns[ i ].Width,this.Height); //but initial,columns[0] is not exist } break; } } anyone can help me You will have to DrawString all the subitems manually. Use this.Column .Width as the subitem offset. And again you will have to check if there are Items available. ...Show All
Visual Studio Questions about Sandcastle CTP August
Hi, thanks for the new Sandcastle CTP. It took a little time to adjust my batches, but now it produces nice CHM files again. Here are a few issues I came across: I didn't measure, but I think the generation time is significantly longer compared to CTP July. The Sandcastle-Blog mentions, that there's a new /internal+- switch now. I'd like to include protected members but exclude both "internal" and "internal protected". How can I achieve this Is or will there be a /protected+- also switch The index that is now generated for CHM helps has words that are fored from e.g. the class name, a dot and the member name. For example "MyClass.UsefulMethod". In an index however it would be much better to i ...Show All
Visual Basic passing variables between forms
I am having serious issues trying to take data from one form and passing it to another form... I have a 3 form new employee application that gets information from the new employee in textboxes and then sends it to a database... my problem is that once i make an instance of the form: dim theFirstForm as new Form1... and dime theSecondForm as new Form2. i cant seem to figure out how to access it and store it in variables... so that on the third form i can access it and populate a database with all the information. My programming teacher made the suggestion to make a new class and send all the info to the class and then on the submit button access it from there and then populate the database... any suggestions on the best way to do this i hav ...Show All
Smart Device Development Unable to load DLL (AGL).
Hi All. I am trying to build a custom keyboard control for PDA applications. I create a sample application & it worked fine. Now i am trying to put that Keybord into a DLL, but I got the error " An exception occurred while trying to create an instance of System.Windows.Forms.Form. The exception was "Unable to load DLL (AGL). ". Can anyone tell me the solution for this problem I Got the solution, actual problem is that I was trying to put a windows form in a Dll, which is not allowed & solution to this is Create a WIndows solution & set its out put type as DLL ...Show All
Visual Basic ExitWindowsEX - How to get it to work in VB.Net 2005
I have been attempting to get the ExitWindowsEX function to work in VB. I have not been able to get it to work as yet. I have read numerous MSDN articles and help solutions from various sources on the internet. Non of the solutions I have found work for me. I am hoping to get some help in making this work in VB. Here is what I have so far: Public Enum TokenQueryFlags 'As UInteger STANDARD_RIGHTS_REQUIRED = &HF0000 STANDARD_RIGHTS_READ = &H20000 TOKEN_ASSIGN_PRIMARY = &H1 TOKEN_DUPLICATE = &H2 TOKEN_IMPERSONATE = &H4 TOKEN_QUERY = &H8 TOKEN_QUERY_SOURCE = &H10 TOKEN_ADJUST_PRIVILEGES = &H20 TOKEN_ADJUST_GROUPS = &H40 TOKEN_ADJUST_DEFAULT = &H80 TOKEN_ADJUST_SE ...Show All
SQL Server Field name as a Parameter
Hi, I'm trying to figure out how to pass a field name into a procedure so the procedure can selectively find out the value of different fields. The DB table I'm interested in has multiple bool fields in it and the field name is the parameter I want to pass into the procedure. With the example code I list below, there is only one row that exists in the table so the end result should be dependent upon the value in the field. The calling procedure is "attempting" to pass in the name of the field, and the called procedure should use the paramter passed in as the field to return in the table. If the field returned in the called procedure is true, the called procedure returns "0" to the calling procedure, otherwise it retu ...Show All
Visual Studio Team System Performance Profiler w/o Visual Studio
I have been running the Performance Profiler through Visual Studio and through the commnad line utilities on my development machine without a problem. My goal is to take these command line utilities and copy them to a testing machine that does not have Visual Studio and profile the app on that hardware. (I copied them from C:\Program Files\Microsoft Visual Studio 8\Team Tools\Performance Tools) After I instrument the assemblies I run the exe from the command line and I keep getting the message "MyApp has encountered a problem and neeeds to close. We are sorry for any inconvienence" with the Send and Don't Send buttons. I am testing this with a very simple application that just has a few buttons and displays a few message ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Where do I find my Xbox 360's Connection Key?
Where can the Connection Key be found on my Xbox 360 to get it to connect with XNA You need to purchase an XNA Creators Club membership first, and download the XNA Game Launcher onto your Xbox 360 from Xbox Live Marketplace. Then you'll be able to generate a connection key on the console to enter in XNA Game Studio Express. XNA Creators Club memberships will not be available until we launch, which I believe is December 11th. --Stephen ...Show All
Windows Forms Adding custom designerverb (combobox)
Hello, I'm building a custom control with a custom designer. No I would like to add some designerverbs. But all the designerverbs are shown as linklabels. Is it possible to add a combobox to the designerverbs Thanks in advance After another few hours of programming, searching and trying I got what I want. For the record, I used the following resources: http://www.codeproject.com/vb/net/UniversalDropdownEditor.asp http://msdn.microsoft.com/msdnmag/issues/03/12/CuttingEdge/ ...Show All
Windows Live Developer Forums Developing Messenger bot
Hi. I'm developing Messenger bot. It will be based on .NET 2.0 and be using DotMSN library to handle messenger protocol. I'm trying to enable activities handling in this bot. Right now I'm able to get data from activity sent using SendData method of Channel. But I need to send data to activity client from my bot. Could anyone help on this I've sniffed messenger packets and it seems that there is direct TCP connection for data exchange. Is there any docs on that protocol Thanks. Sorry, lost one file. Here we go. DataSendMessage: internal class DataSendMessage : P2PMessage { string data; public DataSendMessage( string data) : base () { this . data = ...Show All
SQL Server Can't connect to full MSDE 2000 (urgent)
I think I've "filled" an MSDE 2000 SP3a database to its maximum 2GB size, and now can't connect to it. OSQL gets an "insufficient file size" error. Have also tried to connect via Ent Mngr, and get database is "suspect" error. How can I connect in order to purge some data Thanks!!!! DT When connecting using Enterprise Manager, which database is the suspect Search for the database file in your file system (databasename_.MDF) and check whether you do have enough free space in the disk containing the MDF file. If not, try freeing up some space on that disk just for you to do maintenance. Then you can do a couple of things - truncate the log and shrink ...Show All
Visual Basic Adding an inherited form failed by Assembly Load Error
I would like to add an inherited form to my VB.NET project under a solution that contains assemblies written in various .NET languages. Whenever I confirmed to add an inherited form, an "Assembly Load Error" error dialog box popped up. The dialog box said that "Unable to load assembly 'VCS.NET.dll'. Ensure that the file is a valid .Net framework assembly.". My VB.NET project did not refer to the 'VCS.NET.dll' assembly directly or indirectly. It still prompted me such an error dialog. I am a little bit confused. Could somebody advise on this matter Jeremy "VCS.NET.dll" is my own .NET module written with C# and I am using VS2005 standard edition + VS2005 professional edition t ...Show All
Game Technologies: DirectX, XNA, XACT, etc. cloud of dust like in battlefield 2 : mc
does anybody know how the developers from battlefield 2 : modern combat did the cloud of dust effects did you know what i mean A truely volumetric effect would be overkill for something like smoke behind a car (or fire, for that matter). I remember volumetric fire from Quake II - It looked like a horrible solid explosion. I used to throw grenades just to watch the explosion geometry animate. ...Show All
Windows Forms Finding controls inside a region ?
Hi there, I have a problem which I expect to solve here.. Here is what I want to do : I have got 5 sub panels and 1 main panel (all of them containing various controls) .. I want to do simple drag&drop operations on them. To be more clear I will drag the main panel over one of the sub panels. Now, where I stuck is that when I drop the main panel anywhere in the Form a method should check wether there is a sub panel in the region of the main panel. If yes the main panel will transfer its controls to that sub panel. If no the main panel will return to its original position. But also, in the region there may be two panels. In this case the main panel will transfer its contents to the closest one. How can I do such region checks and also ...Show All
Visual C++ XML
Hello folks, I am currently working on a program that scans values (temperature, fan speed) for boat engines. Now, I want the program to save the scanned values in a xml file, and i already have this to work. But, it should add new values to the same file once every minute, so i would want to append the existing xml file in some way.. How do i do this This is the code thus far for the xml output: std::ofstream xml( "xmlvalues.xml" ); xml << "<INSTALLATION>" << endl << "<INFO>" << endl << "<NAME>" << " </NAME>" << endl << "</INFO>" << endl << "<TECH ...Show All
