Andrew K.'s Q&A profile
.NET Development Have multiple versions of .Net - can I delete them?
My computer is running XP Pro, fully updated including SP2. During my "winter clean-up" of my programs, hard drive, etc., I noticed that 3 versions, with updates, of .Net Framework was on my computer. They are: 1.0; 1.0 HotFix; 1.1; 1.1 HotFix; and 2.0. I'm pretty sure that I didn't download these (though I might have) and assume that they were downloaded with some update, or maybe some program. I never directly access these programs, yet some system or program might be using them in some way (just don't know). My question is, can I safely remove any or, preferrably, all of these items without affecting other p ...Show All
Visual C# How do I move my records in one dataset into SQL database with field matching?
I am working on a attendance application( base on SQL Express) for school, I figure out the way import the CSV files(Attendance Record) into a dataset but I cannt find any information regarding how to transfer the record into SQL Express Thanks Hi, Try using the sqlDataAdapter object. You need to set its select, insert, update, delete command. After doing that you can try doing something like: System.Data.SqlClient. SqlDataAdapter adapter = new System.Data.SqlClient. SqlDataAdapter (); //Set the commands.. adapter.Update(dataSet); The adapter will check the status of each row in the dataSet and will invoke the apropreat ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Pass int array to the pixel shader
I want to pass an int array to the pixel shader. I used SetIntArray(name, val)..the problem is that in the shader I do not know the exact size of the array, therefore in declaring it i am trying to use an int *. It seems as if the compiler does not like this. Is is it possible to use pointers in the shader If not how can I pass a variable length array to the shader can someone give me an example of the usage of this function unfortunately i'm having the same problem. i created a texture that is supposed to be used as an render target: ... IDirect3DTexture9* pT; ... pDevice->CreateTexture(WIDTH, HEIGHT, 0, D3DUSA ...Show All
Windows Forms datagrid zorder bug
I have two forms each of which contains a datagrid. When either one of them update their datagrids' underlying data source, such as insert a row or delete a row, it will become the top most form although it doesn't appear to be the active form (its caption not highlighted). Therefore, when the updating is happening, the two forms are fighti ...Show All
.NET Development How to get a free port ?
I would like to get a free port for an application. I do not care which port it is. Ingo Rammer in a 2001 post provided a hacky solution to this issue. I would like to know if there is cleaner (threadsafe etc.) solutions available Will .Net 2.0 provides a native helper to solve this issue Thanks in advance, Joannes what you describe is a discovery mechanism. remoting doesn't and will likely never have support for discovery. WCF doesn't have support for discovery either in the current release, though there is a sample that allows you to use it: http://wcf.netfx3.com/files/folders/protocol ...Show All
.NET Development Blank XMLNS="" gets inserted? ::URGENT::
Hi, I have a xml document displayed below, which I want to programmatically create. <rootABC xmlns=" http://www.xyz.space.com/land "> <ele1 xmlns:xsd=" http://www.xyz.space.com/Airschemas " xmlns:xsi=" http://www.xyz.space.com/AirschemaInst "> <ObjVal> <Name>POC2</Name> <Age>tempCube</Age> <Height>dimension1</Height> <Weight>MeasureId1</Weight> <color>Partition1</color> </ObjVal> <country>ProcessFull</country> <Airport>UseExisting</Airport> </ele1> </rootABC> to ...Show All
Architecture A UI synchronization mechanism is needed.
I'm working on a windows application that looks like Visual Studio .Net 2003. I want to allow users to open multiple MDI child forms. Users can also open Properties window or other windows, which look just like those for Properties, solution explorer, and object brower in VS.net 2003. I need a better mechanism to deal with interactions among the MDI child forms, the main form, and other isolated windows, such as Properties window. Here's one of the cases. Suppose the Properties window contains a TreeView object. Each time a user clicks on a TreeNode, a corresponding TabPage that holds an MDI child form will be brought up if it hasn ...Show All
Visual C# Could the compiler only build modifled project?
Whenever I build the solution, the C# compiler build a lot of projects even the files in the project has not been modified. This costs a lot of time. Is there any option that could make the compiler only compile the modified project(projects contains files that has been modified since the last build) Thanks! i'm sorry,i don't konw how to make the compiler only compile the modified project but i think you can only compile the project file use the VS to open the project file you want to compiled are you chinese ...Show All
Visual C# Why can't I use the Escape Key as shortcut?
Hello people, how are you I hope fine. I'm trying to set the Espace key (char 27) as a shortkey in a ToolStripMenuItem in the Visual Studio 2005, through the Shortcutkey property. But the VS says that: "The value of argument 'value' (27) is invalid for Enum type 'Keys'. Parameter name: value" Is this a bug Or is it not possible to do Thanks Andre I saw the post about it being by design. I think this issue wasn't evaluted well enough. There are 2 issues here. It's easy to workaround the 1st issue by trapping the escape key. But that is not all of it. The 2nd issue is the display of the ESC. How do ...Show All
SQL Server SSIS Package ProtectionLevel
How do I change an SSIS Package ProtectionLevel to ServerStorage Thanks. Ok - I figured out how to change it, but I get an error when trying to save. "Failure saving package." Additional Information: "Failed to apply package protection with error 0xC0014061 "The protection level Server Storage, cannot be used when saving to this destination. The system could not verify that the destination supports secure storage capability.". This error occurs when saving to Xml. (Package) Please advise. Thanks. ...Show All
Audio and Video Development What is the good IDE Tool for iHD programming?
Hi, I'm totally new to this iHD / HD DVD world and I'm exicted that I found this forum. Hopefully I'll learn a lot from and contribute some opinions to this forum. My 1st question in iHD programming is what IDE tool should be used in programming iHD And my 2nd question is how to run / preview all 3 samples from HD DVD Programming Guide. Thanks, -mh Hi mh, Welcome, and glad to hear you're excited! :-) At the moment we are using Visual Studio to do development, since iHD is XML and ECMAScript. Visual Studio provides both XML and ECMAScript authoring support, as well as ECMAScript debugging. You can a ...Show All
Windows Forms DataGridViewCheckBoxColumn, DataSets and Read/Write XML Methods
Hi, I really hope someone can help. I have spent a fair amount of time looking at MSDN documentation today and am very perplexed. I have a DataSet made up of a data table (so datarows and datacolumns). It is not populated with a database and the columns and rows are specified programatically. One of the columns is of type System.Boolean. In my windows.forms application I set the DataGridViewControl.DataSource property to equal the data set on form load. The column is displayed as a list of checkboxes as I hoped. I can tick a couple of the checkboxes and click a button that saves the dataset to xml using the WriteXML method. The problem I ...Show All
Windows Forms How to scope across multiple projects in a solution
I have created a solution that contains multiple projects in Visual Basic. One of the projects is identified as the startup project, and that startup project contains a startup module. The startup module creates instances of forms that are defined in the other projects. I wanted to create global constants in my startup module to be accessable to the code i ...Show All
SQL Server Sql2005 installation headaches
I am trying to install sql 2005 on a machine that had VS2005 beat and SQL2005 CTp on it. I have uninstalled every possible component that was in the beta release, and I still get the error, SQL Server 2005 Setup has detected incompatible components from beta versions of Visual Studio, .NET Framework, or SQL Server 2005. Use Add or Remove Programs to remove these components, and then run SQL Server 2005 Setup again. For detailed instructions on uninstalling SQL Server 2005, see the SQL Server 2005 Readme The mentioned readmen file is usless, can someone please tell me what I have yet to uninstall to satisfy SQL Thanks ...Show All
Windows Forms Considering a bugreport about AutoScrollPosition property of the ScrollableControl class
I used the ScrollableControl class in one of my projects for a while and I'm puzzled why the class implementer from MS decided to implement the AutoScrollPosition property in such an inconvenient and weird way. Here's from the WinForms 2.0 docs: AutoScrollPosition represents the location of the scrollable control's display rectangle. The X and Y coordinate values retrieved are negative if the control has scrolled away from its starting position (0,0). When you set this property, you must always assign positive X and Y values to set the scroll position relative to the starting position. For example, if you have a horizontal scroll bar and ...Show All
