He3117's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. rendering on hardware device
Hello, I am new to DirectX. How can I use the CreateDevice method to set the output to be displayed on my second display card(ATI Mobility Radeon X600) I set the device index to 1, is it appropriate Or I missed other properties Or I cant use the X600 card to render output device = new Device(1, DeviceType.Hardware, this, CreateFlags.SoftwareVertexProcessing, presentParams); Check out the adapterListCollection which you can enumerate to get AdapterInfo http://msdn.microsoft.com/library/ url=/library/en-us/directx9_m/directx/ref/ns/microsoft.directx.direct3d/c/adapterlistcollection/adapterlistcollection.as http://msdn.micros ...Show All
Windows Forms Invisible ListBox & ComboBox Items
This is embarrassing, but here goes... I create a new C# Windows Form application, dragged a ListBox onto the form. No matter what I do, I cannot get the items to display their letters. I have used several methods to add items to the listbox: listBox1.Items.Add("my string") - no work. listBox1.DataSource = new string[]{"one","two","three"} - no work. The Items collection IS being updated with my items. I proved this by binding a textbox to the Item[0] of the listbox. The textbox accurately displays the ToString() version of the 0th item in the listbox.Items collection. AND, the listbox displays ...Show All
Windows Forms TreeView/TreeNode Icons
Hello, I have previously used VCS Express Beta1 and moved my projects to Beta2. Small projects work well, but one - big - has a strange behaviour. In small projects the icons or bitmaps are displayed perfect, but in the big one I have white on white icons :-) The imagelist works fine in the IDE, shows selectedimageindex with an icon, when starting there are Icons in imagelist.... confused and hoping for help ;) TIA, Peter This looks like the same issue discussed in this thread . Try removing and readding the images to your ImageList. - mike ...Show All
Visual Studio Problem with Conditional Import inside VS
Hello I have a .targets file that supports multiple platforms, and has 3 elements like this: <Import Condition=" '$(Platform)' == '...' " Project="..."> When I build using msbuild.exe and specify /p:Platform=... it works ok for all platforms. When inside VS, it always imports the first one, regardless what Platform I choose. I also have a dummy Platform called "BuildAllPlatforms" that invokes the msbuild task for all platforms, and that works ok in VS. If instead of the import, I literally replace the import, and add the condition to every target, propertygroup and itemgroup, it all works ok. Is this a bug in VS I'm using RC1. Regards, ...Show All
Windows Forms DataGridView - need event to capture row delete
Using the DataGridView in VS2005 Windows Forms, I need a way to capture the event when a record is deleted. I see the "User Deleted Record" event which fires when the user highlights a row and presses DEL key, but that does not capture when the record is deleted by code--i.e. the user clicked a button to delete the current row. I have a User Control for the Add, Save, and Delete buttons for a grid so I cannot intercept that code to process delete events. What I need to do is to force the dataset to update to the database when the record is deleted. Thanks, Dave C> Mark, Thanks for your answer, but it does not provide a go ...Show All
Windows Forms Need to enable/disable ToolStripMenuItems when shortcut is activated
I have a common scenario: items with associated shortcuts on a dropdown menu. With the old WinForms menu system, when the user hit a shortcut, the Popup event fired for the dropdown menu and you could enable/disable the items according to current conditions. E.g. if the shortcut's associated item became disabled, the item wouldn't be actioned. This wonderful scheme doesn't work for ToolStripMenuItems, because shortcuts don't seem to fire any useful event like DropDownOpening. What to do You just have to set the Enabled property of the ToolStripMenuItem when its criteria changes, rather than waiting ...Show All
.NET Development operation must use an updateable query
When I insert new data in access table, i face an error which stats that "operation must use an updateable query". However sometimes it works fine and sometimes stat error. Please help me on this issue Best Regards! Shahnawaz Khan Hi I think that this is happening because the folder that you hold your database ("app_data" if you have not made any modifications in default folder ) has no write permissions. To test that ask from administrator of your web site to ensure that these permissions are read write and not read only. ...Show All
Windows Forms Webbrowser1.Document.Click event not firing?
Please can anyone help with firing an event from a document in a webbrowser control on a form Working in C# Express Beta 2. Eventually I'd like to identify the htmlelement that the user clicks on. I set up the handler like so private void webBrowser1_DocumentCompleted( object sender, System.Windows.Forms. WebBrowserDocumentCompletedEventArgs e) { webBrowser1.Document.Click += new HtmlElementEventHandler ( Document_Click); } and just have a really simple event handler (so I can learn what's going on) private void Document_Click( object sender, HtmlElementEventArgs e) { MessageBox .Show(e.ToElement.InnerText); } b ...Show All
SQL Server XMLBulkLoad
Hi, I have been working on SQL Server 2005 nearly for an year now. In Beta2, there is class XMLBulkLoad which can be used to bulk copy data from an XML file into SQL Server using a mapping schema. Now I have installed the Yukon April CTP and OMG the XMLBulkLoad class is missing. Does anybody have any idea whether it has been removed or changed to something else It was earlier "unofficially" in the " System.Data.SqlXml" assembly in the namespace "MS.Internal.Data.SqlXml" . I have been searching for these changes with no success. Can anybody also please tell where to find the changes for thi ...Show All
SQL Server Exporting the Table Structure...
Hye guys, I want 2 export the field names and their properties of my tables to a file by which I would be able 2 print it , Study it and share it with my other friends... for discussions... Which tool can be used 2 export the table stture in a printable format Kabin Hi Kabin, You have a few options depending on what you're looking for. You don't mention which version of SQL Server you have, so I'll try to provide instructions for 2000 and 2005 versions. 1. Create a script of the table's definition. From Management Studio in Object Explorer, right-click the table and point to Script Table as and then select Create t ...Show All
Windows Forms How Can I bring the Menu list of Recently Opened file in Forms?
I know we can do it in MFC SDI or MDI to bring the recently opened documents in file menu. Normally it is set to 4 but can go upto 16 files. How can we achieve this functionality in Forms(Preferably MDI forms) Any Help/Clue or reference pointers, please. Reference to C++/C# or VB 2003 is fine. Thanks in advance. Jil. Experts, I am again falling back on you! I found this article for c#. However, I need this for C++ 2003. When I googled and searched MSDN I am not seeing anything about MRUmanager. Neither my code is accepted. Is there any equivalent is Visual C++ 2003 Any hint Keyword will help me. Thanks ...Show All
.NET Development Web Service as a designer in 1.1 and 2.0
Hi In 1.1 i was able to drag and drop a control on a ASMX file where as this feature is missing in 2.0 In 1.1 this feature enabled me to drop a SQLDataAdapter on the web service designer, then i was able to expose the dataset as a webmethod which can be accessed by any client. Now I need to code for the same as this feature is not available in 2.0 i.e. the Web Service is not a designer now. Any reason why this feature is removed and also any workaround for the same. Thanks The approach taken by 2.0 is better, since it helps developers seperate all the logics and data access from web services code. To do this , you add a component c ...Show All
Visual Studio Team System All Unit Tests abort immediately
I've been using the TestManager extensively in Studio 2005 Team Version for months running dozens of unit tests as I develop. Recently, every time I try to run a unit test *in Debug mode*, it aborts immediately with no message. When I open the test results, all I get is this: Test Name: <test name> Result: Aborted Duration: 00:00:00 Computer Name... Start Time: 1/1/0001 12:00:00 AM End Time: (the real date time) That's it. Not a word more. And ALL unit tests are doing this, even ones that used to run just fine. If I just run them, they run fine, but I absolutely cannot run them in Debug mode! Very bizzarr ...Show All
Visual C++ removing the window frame
Does anyone know if there is a way to remove the window frame in visual c++ mfc ...Show All
SQL Server Complex Join
Hello, I am blocked with a Join Request I have 3 tables : TaUtilisateurs store the users TaClients store the customers TaJoinClients_Utilisateurs store right of user on customers : for example : TaUtilisateurs Id_Utilisateur Login 1 Nico 2 Philo TaClients Id_Client Entreprise 0 Company 1 4036 Company 2 TaJoinClients_Utilisateurs Id_JoinClient_Utilisateur Id_Utilisateur Id_Client Editeur Administrateur 1 1 0 True True 2 1 4036 True True 4 2 4036 True True I wrote a stored procedure to display the rights of users on each customer : S ...Show All
