Jim_Cross's Q&A profile
Visual Studio Overriding custom attribute in a derived class
In my model, i use the base class "NamedElement" which defines the Name property for all other classes. This property is browsable and updatable but in a derived class, i want to force this property readonly. How can i override this attribut Can you explain the use of DomainTypeDescriptor Thank you, Thank you Gareth, I had seen this but i hoped a more simplest solution. Just a suggestion Is it possible to add a property modifier attribute on a domain property Then, i can override my property and add some custom attributes in a custom partial code. I need the same thing with a role definition. I want to initialize a role when it is used for the first time. The best soluti ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Where to find the Default shader for a base?
Hey Guys, Is there somewhere I can find the default shader code that XNA uses Id like to use this as a base as I only need to make minor changes to the shader... Cheers Shawn Hargreaves - MSFT wrote: We aren't currently shipping the source for BasicEffect. If you think this would be useful, please file a suggestion over on the Connect site. Where is the connect site cheers :) ...Show All
Visual Studio textchanged event on texteditor
How can I intercept the event triggered by the texteditor/textbuffer's text changing The VSPackage I'm working on is similar to the SynchronousXmlDesigner sample. If the user changes the xml from the codeview I want to know about it! Implement IVsTextLinesEvents interface which includes a method called: OnChangeLineText This method will be called whenever the text on any line changes. Once you implement this interface you jsut need to hook up the class that implements this interface with your text buffer doing somethign like this: IConnectionPointContainer connptCntr = (IConnectionPointContainer)vsTextLines; Guid riid = typeof(IVsTextLinesEvents).GUID; IConnectionPoint cp; connptCntr.FindConnectio ...Show All
Gadgets Dll inside gadget
hi every body how can i use a dll inside the gadget code and if it is required to regsiter the dll please any one know answer reply thanks Fathi S. Elashery Thanks for the help. Very informative. Is it possible to create an ActiveX control with C# instead of VB6 Thanks in advance ...Show All
.NET Development User credentials delegation from IIS on WinXP to SQL Server on Win2003SRV fails
Problem: I am trying to create an asp.net website with integrated windows authentication to access SQL databases. IIS resides on WinXP and SQL Server on Win2000 SRV. Both are in the same NT Domain. IIS and SQL Server cannot reside on the same machine and a stand alone web server is ideal as the website needs to access multiple SQL Servers. IIS is set to Integrated Windows Authentication. The anonymous access in IIS settings is unchecked. The web.config file has Identity element set for impersonation <identity impersonation="true"> The machine running IIS & the SQL Server are set to be "trusted for delegation" in active directory. The domain user accounts that will be accessing the databases are not marked a ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Rocket Commander XNA Game
Hi everyone. I ported my famous Rocket Commander game (first .NET 2.0 game, free game with source code) to XNA and thanks to some multi-threaded optimizations it runs very good on the Xbox 360 too now. More information, the download links, screenshots and some notes about the porting process from MDX to XNA can be found on my blog: http://abi.exdream.com Rocket Commander XNA Screenshot: can not compile the source... its missing the XNAGraphicEngineContentProcessors.dll ...Show All
Visual Studio Team System Version problem with Schema Compare
I have a SQL 2005 server with my source database compatibilty level set to 80 for sql 2000. The project option is set to SQL 2000 compatibility. If I make a change to a full-text index and attempt to update the project using schema compare, it scripts for SQL 2005 not SQL 2000. This causes the build to fail. Is there an option I should set for schema compare ...Show All
Visual C# Read pixel from other application?
hello, i would like to know if it is possible to read pixels, from an minimized application. And show them on a picture box in my app. If somebody know this, please tell me how, where to start or give me an example. Thank you very much Chris You can get The pixel from another application with help of some API call There are two approach First Method: Capture forground window Then Create Bitmap from it then use Managed Bitmap class to read pixel from it some thing like Bitmap bmp=etDesktopWindow(); Color color=bmp. GetPixel (Cursor.Position.X,Cursor.Position.Y); For an example for this method look at How to use Visual C# to obtain the color of the pixel that is referenced by the mouse pointer ...Show All
SQL Server Deploying Reports from Development to (Remote) Production Machines
After intial development of some reports on my notebook I will need to deploy them to a production machine remote from my office. In other words I will will not be able to directly from the BI (aka VS) Studio on my notebook. I had thought that I might be able to simply send the RDL files to the remote site and instruct them to create data sources with the same name (and in the same folders) on the local ReportServer (not the BI Studio) then use the "Upload File" option to upload the RDL files. I have tried this once so far, without success. The next alternative that I can think of to copy the entire set BI Studio project files to the production server (which should have the BI Studio installed) and deploy normally from ther ...Show All
.NET Development Sorting out Data from exel connection
Working with VB express 2005 Hi I got this connection to an exel doc.: Dim cn As System.Data.OleDb.OleDbConnection Dim cmd As System.Data.OleDb.OleDbDataAdapter Dim ds As New System.Data.DataSet() cn = New System.Data.OleDb.OleDbConnection( "provider=Microsoft.Jet.OLEDB.4.0;" & _ "data source=C:\isa.XLS;Extended Properties=Excel 8.0;" ) ' Select the data from Sheet1 of the workbook. cmd = New System.Data.OleDb.OleDbDataAdapter( "select * from [Folha1$]" , cn) cn.Open() cmd.Fill(ds) ds.AcceptChanges() cn.Close() My problem is retriving the data from the dataset(DS) and inserting it to the SQL database, i am trying to create a xml doc with the d ...Show All
.NET Development Unable to read data from transport connection
Dear all, I am facing one problem when my Server Application which is written in vb.net 1.1,is reading data from the client through Stream.read() it is sometimes throwing one exception like "Unable to read data from transport connection" . The Client application is written in C++.But this is not happening all the times.This is working fine some time but some time am getting the error. My application is a simple client server apllication in windows environment. Looking for your help. regards, Anuj Seems like that your connection is being closed sometimes so when your try to read/write you get that error. There may be different reasons for it. Make sure following things: 1) Connection is not being closed on ...Show All
Windows Forms Database Question
I have two forms, a Main Form of a CookBook, and another form that should Add Data to the CookBook. The first form has bind navigator, DataSet, BindingSource and a Table Adaptor. Now, when the user clicks an "Add" button, a modal form appears where the user has three fields like Title, Ingredients and Recepie. When he writes those fiels, and clicks the add button, everything will work fine and the record will be added to the database. How do I do this tehnically Do I need to add all the stuff, tableadaptor, bindingsource, etc. Hi, Yes, Nefer. Just dev another form with all the stuff you want like button, datagridview or so, and to update the exact data in the database. Dont forget when the up ...Show All
Visual Studio Express Editions Creating a server using TCP/IP
Are there any tutorails that will help me make a server and a client in using VB 2005 and .NET Thanks http://msdn.microsoft.com/vstudio/downloads/101samples/default.aspx should have a sample or two in the base class libraries samples (group 1) Best regards, Johan Stenberg ...Show All
Visual Basic Embedded Resource?
Hi, I am trying to create a file that is seperate from the EXE file. The application I am making has a typical login form. The usernames and passwords are stored in a database file. Instead of coding the validation of the user into the EXE, I want the code to be in it's own file. I would like to access this file from my application. At this moment I figure that the validation code should be created as a module. The module should be built as an Embedded Resource. First question is; is this the best method to do this, meaning would a module be the best approach I want the file seperate because I want the ability to change the validation coding at anytime without having to recompile the EXE file. Logic dictates creating the validatio ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Aug2006 SDK install question
Hello! I have VS.NET 2003 and VS.NET 2005 installed on the same workstation. When I installed the SDK it attached to VS.NET 2003. How do I force it to attach to VS.NET 2005 Thanks in advance! Thanks for the information, David. I found the Empty Project feature! Just idle curiosity now (and this is probably posted somewhere)... but, would you care to lightly touch on some of the reason for removing the extensions and templates from VS2005 ...Show All
