Sponchiz's Q&A profile
Windows Forms Which column changed with DataGridView?
I have a DataGridView that contains couples of text box. I need to handle one text box changed events. I know I can use EditingControlShowing. However, how can I know which text box column changed Some way to know the column name Thanks. I'm not sure i follow you correctly. Are you trying to handle the change of a value in the textbox column If so use an event such as CellValidating, CellValidated, CellValueChanged. All EventArgs for those contain the ColumnIndex, and are raised at different stages. Other events around edit mode you could handle are CellBeginEdit, Cel ...Show All
SQL Server Dialog security with different instances of a service
I am in the process of evaluating the use of Service broker for messaging in a load balanced configuration, and am not having any success. My configuration is as follows. 1) Master database on Box #1 which is the initiator of all dialogs 2) Target database on Box #2 3) Target database on Box #3 One of my goals is that the databases on Box #2 and #3 are as close to identical as possible. My routing table on Box #1 looks something like the following Name remote_service_name broker_instance address TargetOne TargetService E96DC67E-F696-4D93-8545-C2E ...Show All
Game Technologies: DirectX, XNA, XACT, etc. complex Matrix question inside: at least, for me.
I am attempting to have a simple cube ( a die ) bounce and settle onto a flat surface in a somewhat realistic way. I have come across two mathematical issues (that aren't easy to google, btw) 1) to describe the cube free spinning in the air, I first set 3 constants, X , Y , Z , and on each update would used Matrix.RotationYawPitchRoll( X *t, Y *t, Z* t), mulitplied times a "current rotation" matrix rotMat to find an updated rotMat . So, the cube would have a rate of spin along each of it's three axis. However this looked odd, and I began to wonder if an object could actually behave this way in free rotation, namely, would the ...Show All
Visual C# User Selected Database Path
I am currently creating a frontend for a database. The frontend is essentially used to input data into the database. However, since the database needs/is stored on a server, my application will not find it, as the app.config file specifies the connection string as "C:\...\filename.mdb" which is the path of the file on the computer I am creating it on, not of the server. Is there some way to modify this code to be set by the user, from some kind of config form Perhaps using a openFileDialog and setting the selected path as a local variable and defining the connection string as this path If this is correct, how would I code t ...Show All
Visual Studio Team System Rule Interface
HI...I'm trying to check that an interface name begins with the letter "i" using the following code: public override ProblemCollection Check(TypeNode type) { Interface interfaz = type as Interface; if (!(type is Interface)) return null; if (!(type.Name.Name.StartsWith("I"))) { Problems.Add(new Problem(new Resolution("Interfaces deben empezar con 'I'"), type.FullName)); } return Problems; } could you tell me please what I'm doing wrong. thanks, Cinthia, The rule seems fine, although you don't need the following line: Interface interfaz = type as Inter ...Show All
Visual Studio Team System Cannot add new project to source control ?
I created a new project, including specifying the source control name. I got an error: TF30170 : The plugin Microsoft.ProjectCreationWizard.Portal failed during task SharePointPortal from group Portal. Explanation: Plugin error text: "The server commited a protocol violation" So, I tried again. This time, I typed in a portal description, and hit enter to go to new line. Instead it hit the default button, and my project was successfully created, without source control. Now as I have already started the actual project, I selected it and chose 'Add project to source control' I get a dialog box with a large text box I ca ...Show All
Visual Basic Trying to get StatusStrip on a Form to display text
Hi I am trying to display lines of text I am reading from a file to the status bar. I want to see progress of the programme through the file contents, but not through the message box as I have to close it for each line and their long files and that soon get tedious! Please see code below... All I get is the hour class - I need to trap end of file but first I wanted just to display the progress. Ideas anyone Appreciated - Regards, Graham Do While icnt >= 1 stringReader = fileReader.ReadLine() icnt = icnt + 1 Me .StatusStrip1.Visible = True Me .StatusStrip1.Text = stringReader Loop Hi- You can learn mo ...Show All
Windows Forms MDIChildren flickering very serious problem!!!
I am designing a MDI Application with the MIDChildren all in normall windowstate property. I create de (child)forms with a borderstyle.none, and make them a MDIChildren before I show them. This works OK, except that when the forms are created, they show up in the client area of the MDIForm, not maximized, with a caption, very shortly, before they are finaaly filling the client area. In other words, there is a short flicker when a new form is created and displayed. This process is most noticeable with a not-so-powerful PC (or is it a not-so-fast-display-card ). This phenomenon has been reported on several occasions in the newsgroups, but a c ...Show All
Visual C++ __gc* equivalent in VC++ 2005
I understand that the equivalent for __gc in VC++ 2005 is ref keyword. Similarly can anyone update me on the equivalent for __gc* in VC++ 2005. Thanks in advance Sivakumar, Thanks for your response. This worked out well for me. Regards, MadhuSri ...Show All
Visual Studio can Accessing members of the Field Collection By Index?
I know how to user the First() function to access the First element of a field collection, is it possible to access the Third and Fourth Is this possible using custom code Sorry, this is not natively supported. Only the first or last row can be directly accessed. You could however look into the "custom aggregate" approach discussed in this article: http://blogs.msdn.com/bwelcker/archive/2005/05/10/416306.aspx For some situations, you could get this working by modifying the custom code function to count how often it has been called and stop updating the value after it was called for instance th ...Show All
Visual Basic How to write 3-Tier Application using c# windows Application with MS SQL Server 2000?.
Hi , I am new to .Net . Please help me .. How to do 3-Tier Application using vb.net windows Application with MS SQL Server. Thanks..... Dear Friends i am also having same question How to write 3-Tier Application using vb.net I know much about object, ADO and architrucherof 3iter application as follows. But dear frends i need an example to understand to this please provide me example. ...Show All
Windows Forms outlook bar style control for VS 2005
Does anyone know of a good place to find info on building a control in VS 2005 that acts/looks like an Outlook bar I'm assuming the content of the clicked button would be handled via panels, but I really don't know how to approach the Outlook thing. thanks The 2005 documentation has an article detailing how to set it up of a form, that you can use as the basis for creating a control. Cathal ...Show All
Visual Studio Team System Team Build that performs builds from 2 projects?
Hi all We have an application that references another TFS project in the solution, so in order for my app to build it needs to build the project it is depending on first. Is this possible with Team Build Thanks Kev Refer blog http://blogs.msdn.com/manishagarwal/archive/2005/12/22/506635.aspx Thanks. ...Show All
SQL Server Running query in SQL 2005 stored procedure against table on SQL 2000
I'm trying to set up Service Broker Services on SQL 2005 x86. I've got two services set up, and a stored procedure associated with one of them. The stored procedure is going to execute a query against a database on another server running SQL Server 2000 SP3. I can get the stored procedure to activate by using ALTER QUEUE WITH ACTIVATION...EXECUTE AS USER My problem is that the execution of the query within the stored procedure ( selecting from a table on a database on another server running SQL 2000 ) fails with the following message: The activated proc [dbo].[IMaCSQueryExecutorProc] running on queue MaCSQuery.dbo.MaCSQuerySubmiss ...Show All
SQL Server Determining Trigger Order
I'm not sure if this is the correct forum or not for this question. Basically, i have 6 triggers attached to my table (2 of each type). I used sp_settriggerorder to make sure certian triggers fire first. Is there any way to go back and determine what order a trigger has been set to (first, none or last) I've scanned through all of the system tables and don't see anything. Thanks in advance. That's exactly what I was looking for. I didn't even think abou tusing sp_helptext to see what the procedure did. I'll definitely use that next time I want to know what SQL is doing. Thanks! ...Show All
