Mario Rodriguez's Q&A profile
Windows Forms subtracting 2 times in string format
Hi, I have 2 strings in "HH:mm" format, for example "03:55" or "22:09" Is there any easy to way subtract 2 strings in this format such that if string1 ="22:10" and string2 = "01:30" then answer should be string1 - string2 "20:40" Thanks, No easy way, but you can use the DateTime type to do the Math, then convert the res ...Show All
Visual C# xml
i want some basic of learn xml and held with asp.net with some example thank you Hi! You can start reading this http://msdn.microsoft.com/asp.net/learning/ ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How can I make a TransformedColored rectangle in D3d?
I learned how to make a triangle with a custom vertex of TransformedColored. Is it possible to make a rectangle (or any other shape) in a similar way I am not sure how you made that traingle, if it was a triangle list, or what ever. But yeah, the method is similar. Basicaly you make 2 triangles and but them next to each other, so it looks like a rectangle. YOu can also optimise this by letting the tw ...Show All
Visual Studio Team System Sample Projects
I have been hunting for examples MSF projects , I noticed on this forum that were plans to provide some . I was wondering how that is progressing. I am currently trying to understand how documnets will look and feel and hang together. Whilst I know there are templates they down't really help. It is so hard to build a sample that everyone can relate to. As such, in the MSF class, we take everyone though class-l ...Show All
Windows Forms Databinding - datarelations - textbox
I have a form with some textboxes and a datagrid. I have two tables in my database: 'testdata' and 'history' 'testdata' is my parenttable, 'history' child... I've made the relation like this: System.Data. DataRelation dr2; System.Data. DataColumn colHeaderT; System.Data. DataColumn colTest; colHeaderT = ds.Tables[ "TestData" ].DefaultView.Table.Columns[ "Lognr" ]; colTest = ds.Tables[ "History" ].Defa ...Show All
Visual Studio Express Editions How to add controls to a TableLayoutPanel
I'm sure that this is easy, but I can't locate a method to add controls to a specific row and column in a TableLayoutPanel. I have a table with four columns and up to 34 rows. I would like to iterate over the rows and columns to add either a checkbox or a label to each cell in the table. Then based on the state of the application set the label text. Finally, when the form is submitted read the state of the checkboxes. Your assistance would be gr ...Show All
Visual Studio 2008 (Pre-release) FaultException with InnerException
Hello, I'm having difficulty to use FaultException<Exception> which the exception objcet which is used as Details for the FaultException contain inner exception. It's must be confusing because of all this excpetion inside exceptions, the drawing is as follows: [FaultException<Exception>] + [Exception] + InnerException = Another Exception When I throw FaultException<Exception> in which the exception object which is used as D ...Show All
Visual FoxPro WinSock
I just tried Microsoft WinSock OLE Control 6.0 (SP4). It binds to a port and it goes into a LISTEN state but I cannot figure out how to unbind the connection. Close() method does not work, SendComplete() does not work either I do not know why Other methods do not seem to be relevant. Does anyone have any experience with WinSock Thanks. I don't have any experience with Winsock as I don't use it, but maybe these Wiki entries may be of ...Show All
Visual Studio Team System TFS RTM Project portal problem
Hi all, I'm not able to add existing web parts to my team portal, which is based on the MSF Agile template. I get an .NET Framework 2.0 eventing error... Has anyone had the same problem Regards, Bjorn This is a known issue with WSS and .NET 2.0 Framework. To work around this issue, you must use FrontPage to modify the page. We are working on a fix for this. ...Show All
Visual C# Form Container
How (or where) can I get a form container like I want to place one or two forms on a master form Anything that can host any other control is a container, such as: panel1.Controls tabControl.Controls form1.Controls and so on. You definitively can host any kind of controls in a MDI form that is the parent container. So you can stuff or host any control (eg. such as any of the above 3) inside any other. If I under ...Show All
SQL Server Table Variables in Stored Procedure
I am using a table variable inside a stored procedure that I am trying to execute from an OLE Datasource task in IS. I know there was a problem doing this in DTS, which would result in an Invalid Pointer error. I am not getting that error, but I am getting an error that says "[OLE DB Source [55]] Error: A rowset based on the SQL command was not returned by the OLE DB provider." The stored procedure runs fine on it's o ...Show All
Visual Studio Team System Beta 3: Active directory requirements?
In http://forums.microsoft.com/msdn/ShowPost.aspx PostID=16441 it is stated, that Team Foundation do not require AD 2003 and ADAM post Beta 2. Could you please confirm that Beta 3 can be used with AD 2000 without ADAM Regards, Carsten-S The short answer is, No. However, since you want to know if your domain controller will allow Windows NT machines here is the longer answer. We will only support the fol ...Show All
Visual Studio Team System [OT] Security Attribute question
FxCop advise me to assign some security to my library, with this warning: http://www.gotdotnet.com/team/fxcop/docs/rules.aspx version=1.35&url=/Usage/AssembliesShouldDeclareMinimumSecurity.html I should confess that I have little knowledge about this, never done it before. And I face the following conundrum: On one hand my component won't use any system resource (no disk access, no socket access, etc...) On the other hand one o ...Show All
Visual C# Transparent color for images larger than 256x256
Hi, Is there any way to set a transparent color for images larger than 256x256 For smaller images I can do that with the TransparentColor property of an imagelist. Alternatively, is there any way around the imagelist's ImageSize limitation Thanks, Guido ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Managing SetTexture calls
Hello, Would it make sense to remember which texture was set with SetTexture last, in order to avoid unnecessary SetTexture-calls Since this call is already wrapped within my texture manager it would be very easy to do this.. Or is there already a similar test within SetTexture Thanks, I know the general performace tips, but the costs table of the API calls is new to me. Quite informative, I'll consider these c ...Show All
