kaokaokao's Q&A profile
Windows Forms Sample Code: TreeGridView - collapsing/expanding DataGridView
I've just started a blog and the first main post is a sample that I wrote to customize the DataGridView to support collapsing and expanding. I call it a TreeGridView: http://blogs.msdn.com/markrideout/archive/2006/01/08/510700.aspx Let me know what you think! -mark DataGridView Program Manager Microsoft This post is provided "as-is" Fantastic code Mark!! I have been looking and wondering if this was possible with the datagridview for sometime now. Thanks Alot!!!! ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Targeting older machines
Hi there. I guess part of this is more of an opinion question. I want to target older machines that may not have up-to-date graphics cards. Right now I am using a game engine that gives the developer the option of using DX8, DX9, or its own software driver. To compile the engine, I naturally need the DirectX SDK. Problem being that the latest realeases don't have DX8 support. So the question becomes: Is DX9 a 'safe' way to go for older machines (in which case I will just pitch the DX8 stuff in the engine) Or should I try and grab an older version of the SDK that includes DX8 support Thanks. ...Show All
Visual Studio Team System Disconnect from TFS gives error
When I right click the TFS server in Team Explorer and choose Disconnect, it gives me a confirmation prompt, I click Yes and it gives me the error "Value cannot be null. Parameter name: uriString". Is this a bug or am I just doing something wrong Is this still there in the Refresh Beta3 If yes... how do i disconnect Thanks Thomas ...Show All
Visual Basic get character
hi for example; textbox1.text=29.06.2006 I want to get forth and fifth character than I want to write to label1.text result must be :label1.text=06 How can I do Label1.Text = TextBox1.Text.Substring(3, 2) Or Label1.Text = Mid(TextBox1.Text, 4, 2) Hope this helps a bit... ...Show All
Windows Live Developer Forums Yahoo API
I would recommend everyone here to also take a look at the Yahoo API. It is far superior to the MSN API. You can find it at http://developer.yahoo.net/ First, they actually provide all the searching capability that MSN provides, plus extra functionality like image search. Second, they have great language support. Third, they have integration with other sites like Flickr. Fourth, they are very responsive to bug reports, ideas and even have a great API blog that's very active with their improvements, apps being built, etc. Microsoft has simply dropped the ball with this API. They delivered a product late ...Show All
Visual C++ how to compile c++ program
i m getting no clue how to compile c++ prog .. i create my c++ file using file->new->file->c++ then i write the simple code "hello world" thing and press f5 . but it doesnt compile nor build even i tried ctrl+f5 . actually when i went to debug menu the F5 button and ctrl+ F5 option (start without debugging) in light shade, i mean i am not able to select that. pls help abhishekp wrote: thanks is there no other way to compile.. Well, you need a compiler to compile the cpp file, and you can either use cl.exe (in which case you can avoid creating a project), or use the ...Show All
Visual Studio Tools for Office How to Freeze Worksheet Panes (C#)
Is there anyway to programatically freeze the panes on a worksheet Specifically - I'm looking to freeze the window at E4. Regards BR you might get a better answer from the excel forum http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.excel.programming&lang=en&cr=US regards, Eric ...Show All
Visual Studio Express Editions Learning -Books-
Anybody have a good sujestion for books. I am new to programing and have bought Visual Basic 2005 step-by-step and also Visual Basic 2005 The Language. I am looking for a book that deals with a larger overveiw of programing in general someting that can set a solid base for a good future. Any thoughts would be helpful. Thank you. The book you're talking about is called Code Complete. It covers a lot of topics that are about programming in general. If I was a manager, I'd buy a copy for every person I hired. ...Show All
SQL Server Proxy Account in Clustering server is not working
Hi, We are having 2 node clustering server and insalled SQL server 2005. I have a requirement to run a job using proxy account. I have created a proxy account using my ID as a Credential and i'm part of admin. If i running a job uisng proxy a/c getting the ollowing error. Is there any work around on this issue. U nable to start execution of step 1 (reason: Error authenticating proxy xxx\username, system error: Logon failure: unknown user name or bad password.). The step failed. This scenario should work fine on win2000 cluster.If you are seeing this on Windows 2003 Sp1 cluster, we have a tr ...Show All
Visual Studio Outline Pen Width
Hey Guys, I have a quick question: How can I change the pen width for the outline of a shape Thanks in advance Pablo Hi Pablo, It works the same for all of the shape types. In the current bits, you'll need to write some custom code to change the pen width. To do so, you need to override the InitializeResources method for the shape classes that you want to change. And then, use code like the one below: public partial class ExampleShape { protected override void InitializeResources( StyleSet classStyleSet) { base .InitializeResources(classStyleSet); PenSetting ...Show All
Visual Studio Team System How to change user connected to team foundation server?
Hi I've been trying to explore the beta 3 refresh and would like to know how to change the user that is connected to the team foundation server without logging into windows as that user Thanks Rivaaj Hello Steve, Could you please try the following 1. Login on the client with the current domain account you want to use. 2. Right click the VS 2005 icon. Select 'Run as..' . Select 'Current User'. Good luck. ...Show All
Visual C# Constructor Chaining in C#
Dear All, I am actually new to Object Orientated Programming. I was just studing about Constructors and I came across the concept of Constructor Chaining.Can some 1 explain me about what is this constructor chaining.I know it means that we can call one constructor from another constructor. I have tried 1 example which is as follows: class Class1 { private string e_name,e_JobTiltle,e_Address ; private Class1( string name, string Title) { e_name =name; e_JobTiltle=Title; } private Class1( string name, string Title, string Address) { e_name =name; e_JobTiltle=Title; e_Address = Address; } Now how can I impleme ...Show All
Visual Studio Express Editions User Login Troubles
Hi, I pretty new to all of this. I have followed the tutorial on http://beta.asp.net/guidedtour2/ and is working all ok locally. When I uploaded to IIS 6 on a Windows Server 2003 SP1 and tried logging in using login.aspx it gave me this error: An attempt to attach an auto-named database for file C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\WebSites\WebSite1\App_Data\aspnetdb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share. What solution(s) can I try to get the loggin script working If anymore info is required like the Stack Trace I will ...Show All
Windows Forms User Control
Hi All, I'm newest in winforms and I want to learn more about windows forms User controls... How can I create and use user controls in my project Samples are wellcome!!! Marcus Vinícius M. Montezano ...Show All
Visual C# Accessing .AVI As Embedded Resource
I've got a project in VS2003 where I've added a number of images and a video clip as an embedded resource on 'Build Action'. I can access the images easy enough by using the following code: System.Drawing.Bitmap bitmap = new System.Drawing.Bitmap(GetType(), "sampleImage.jpg"); this .pictureBox1.Image = bitmap; The problem is accessing the embedded .AVI; both the ActiveX Windows Media Player and the DirectX AudioVideoPlayback require a string pointing to a file Accessing Video File Thru ActiveX Windows Media Player Control: private AxWMPLib.AxWindowsMediaPlayer axWindowsMediaPlayer1; this .axWindowsMediaPlayer ...Show All
