Gabslost's Q&A profile
Windows Forms Listview header
hi please anyone tell me to change Header Color of System.Windows.Forms.Listview control Thanks Raju Here is a link to a code project article on Customizing the List view control, it has some information of moderfiying the header that might help. Customizing the header control in a listview http://www.codeproject.com/cs/miscctrl/customheader.asp ...Show All
Visual C# How to search string in a file?
Hi, I would like to know how to search string from a file. If my filename is "a.txt" and my search string is "abc", how can I do a search for this string If this string return true, I will take some action. Please advise. Thanks hi read the file and store in a variable then search the specified text u want ...Show All
.NET Development Null Value exception thrown, need to change default action
Migrating a legacy Access VB6 app to VS 2005 B2, the old app handles null's read from ADO recordsets in its own way. The migrated code using a dataset is suffering from exceptions that the generated dataset code throws. I need to be able to reset the default action to either ignore or replace etc. This is an option for the field in the dataset (codegen etc). However I would like to do it once for the entire dataset (30+ tables of 20 columns and n assorted queries etc). Doing this by hand for each field is a real pain. Is there a way to change the default null handling option from throw exception to anything else, when initially gen ...Show All
SQL Server SQL 2005 - sp_rename doesn't work on user defined data types
First a little intro, the company I work for relies heavily on user defined data types for the object model we have set up. This gave us maximum flexibility to for example easily extend descriptions to a varchar(50) instead of a varchar(40) when a customer required this. The process of changing the datatype is first we rename the datatype to have a new name, and afterwards the new datatype is rebound to all tables, stored procedures etc... however, in SQL 2005, one of the first steps, namely renaming the datatype fails, in fact it appears you can no longer rename user defined datatypes if they are used within stored procedures. A ...Show All
Game Technologies: DirectX, XNA, XACT, etc. to David Weller and tom miller
Hello . Please fix before xmas Microsoft.DirectX.DirectInput; Version beta 2 december 2005 no mouse or keyboard support SystemGuid.Keyboard or SystemGuid.Mouse SystemGuid is gone. We have to release a sdk for game engine cos money problem it is hard to wait 4 month with no income in the firm and 4 peoble on the payrool we have been programing for allmost 1 year now prepering for net framework 2.0 of directx and mobile directx that is a lot money we have blow off for wat. we cant not even release a sdk becource no mouse or keyboard support we are a microsoft partner in EMpowered program and has sign up fra beta teste ...Show All
Smart Device Development Smart device help installed correctly?
I have VS2005 installed with WM 2003 and 5.0 SDKs. I am able to build and debug for both sets of platforms although I have just noted that the Windows Mobile SDKs are NOT listed in the results of any searches that I do. E.g., if I search for "SetWindowText" a general win32 API, the WM APIs do not appear only the desktop win32 type. Also, the VM 2003 SDKs appear in the contents but the VM 5.0 SDKs do not. My question is: are the VM 5.0 SDKs supposed to be viewable and searchable in VS2005 Beta 2 ... and so why might they do be appearing in my installation The help for the Windows Mobile 5.0 SDK, is inst ...Show All
SQL Server DATABACK UP
How can i backup the full database to another diffrent server Simply do the backup via the GUI or the BACKUP DATABASE command and do a restore at the destination server with RESTORE DATABASE. WHat version of SQL Server are you using http://www.microsoft.com/technet/prodtechnol/sql/2000/maintain/sqlbackuprest.mspx HTH, Jens Suessmeyer. ...Show All
Smart Device Development VS 2005 seems to require a focus on a form
When developing my vb program in vs 2003, I was apparently not required to focus on anything on a form if I didn't want to. So on a form with nothing but a few buttons used for the purpose of calling other forms, I could use this code to press ESC and close the form: Private Sub LocMenu_KeyDown( ByVal sender As Object , _ ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase .KeyDown If e.KeyCode = Keys.Escape Then Me .Close() End If End Sub Someone helped me write this code, and I don't understand the implications of "MyBase", but in any case, I could press simply press ...Show All
Visual Studio Express Editions VC++ 2005 Express - for each loop
Hi everyone! I'm kinda newcomer, thus I've quickly encountered a problem which I can't solve in the 'elegant' way. The problem is how to iterate the collection of various types of controls (controls conteiner) and operate only on a specific controls type. I'm not sure if I've made myself clear, so here's a code which doesn't work: for each( Windows::Forms::NumericUpDown^ ctrl in this->tableLayoutPanel->Controls ) xmlwriter->WriteElementString(ctrl->Name, ctrl->Value.ToString() ); tableLayoutPanel contains NumericUpDown and Labels (which couses all the problem here) type controls. I want to ...Show All
Visual Studio Tools for Office Programmatically insert a TOC entry and define outline level ? (solved)
Hi, I am able to insert a TOC entry field programmatically, but I don't know how to insert the options such as : - outline level - suppresses page number - multiple table Here is my code : object oTCType = Word.WdFieldType.wdFieldTOCEntry; object oTCText = "\"" + title + "\"" Word.Field subdocTCField = this.Fields.Add( Application.ActiveDocument.Range(ref oTCStart, ref oTCStart), ref oTCType, ref oTCText, ref oTrue); Thanks in advance for your help. Hi Lex If you insert the TC field using Fields.Add then you have to include the ...Show All
Visual Basic Adding Sound
How to play sound in my Windows Form http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=13162&SiteID=1 ...Show All
.NET Development A Question on GC
I have a MDI program in which user can open different document and edit it. After several user use it, they report that it becomes more and more slow. So I watch the memory usage of it carefully and found a problem : it seems the memory is never released after a document is closed. I watch the memory cost in Tesk Manager, and found that whenever a document is opened, the memory cost increases. However, after the document is closed, the memory cost does not drop. When another document is opened, it cost more memory. I later realize that since the document is opened for a while, the objects it allocated have been moved to Generation 2. So ...Show All
Visual Basic Gadgets
Has anyone anything to say about programming gadgets with VB '05 for windows vista's sidebar Is there a template Do we have to wait for the next version of VB before we can Will we be able to at all or never Randy ...Show All
Visual Basic Microsoft Visual Basic 2005 Express - New Project dialog is empty!?
Look at this screenshot: http://hjem.get2net.dk/dondata/Empty.gif I have allready tried to Repair the installation, and allso completely uninstalled VB and the installed it again, but the dialog is still empty. What is happening here Comon! Am i really the first person i the world to experience this I still haven't solved the problem and I'm still standing here with an ampty dialog. ...Show All
Visual Studio Team System Tests and deployment files in uplevel directories.
I am using xml configuration files that are stored outside of the bin folder at the same level. \bin \maps When trying to unit test my code I have set the deployment items to copy the folder maps, but it copies the files into what would be the bin folder at run time. So the paths (..\maps) that are used at runtime, are incorrect. This link has some info, but it doesn't answer my question. http://forums.microsoft.com/msdn/ShowPost.aspx PostID=7546 You can specify an output directory as part of your deployment item. [DeploymentItem("source","dest")] -- Is this not working for you ...Show All
