Daniel de Lima's Q&A profile
.NET Development Binding XML file to DataGridView in Windows Applications with C#
Hi, Please forgive me if the question is too simple, I am a beginner. Part of my application I am working on requires a contact list (similar to the one in Outlook). I decided on the following: 1. Create a Class with public properties for the contact details (name, email, phone, etc.). 2. Use List<MyContactsClass> to combine each contact into an array. 3. Serialize List<MyContactsClass> to XML and store on a disk. 4. For retrieval and display, I have two options: o Use DataGridView bound to XML file. o Deserialize XML to my List<MyContactsClass> and bind this to ...Show All
Visual Studio Team System Bug in MS Project integration
In project, when you import items and then select the task column, the dropdown arrow appears but then disappears almost immediately. In order to get it to stay selectable I have to open the properties for the item and then close them and the drop down arrow stays visible. Jeff Jeff, It appears that this issue was reported and fixed before the Beta3 bits were released. Can you please confirm the version of the Team foundation server and client you are using Thanks! ...Show All
Visual C# Missing character in string
Hi to all! I miss a certain character in my string! The character is the symbol for female (this editor won't let me use it). It indicates the end of a page in a .txt file that is converted from a .pdf file. Has anyone an idea how I can still use it with a string.indexOf(symbol) *UPDATE* The question is actually, how can I select a form feed character (= ascii code 12 = page-break) from a string Kind regards, Nele As long as you know the character code for it you can write the character literal with an escape sequence, e.g. string.IndexOf('\xNNNN') ...Show All
SQL Server Disabling Product Feedback on en masse deployment?
Hello. After installing SQL 2005 Enterprise (MSDN-version), I was greeted with Product Feedback pop-ups on opening SSMS. I'm all about product feedback (hence why I'm here), but before I deploy a final/non-MSDN version to lots of users, I was wondering - if this also occurs with the non-MSDN version - if there is a way to pre-disable the feedback options I assume you're referring to the Watson and SQM messages, which I think is the final screen of the Setup process. This is present in all versions of the product. One way to disable the pop-up is to do a command line install, specifying an appropr ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Normal Mapping Vectors with Wrapping
The function D3DXComputeTangent computes normal mapping gradients (tangents and binormals) for each vertex in a D3DXMesh. This function has a parameter which sets Wrapping to true or false. How does this parameter affect the gradient calculations The actual algorithm that it uses is fairly simple, what wrapping does is essentially give you 3 options to place the texture coordinate at in a given dimension. So that means that a texture coordinate (u, v) in the range [0,1) x [0,1) (you can get this pretty easily by taking the floating point modulus wrt 1), if wrapping in both dimensions is enabled, is equivale ...Show All
Windows Forms create excel using templates
I am trying to create an excel file from a template file ( using the template to create excel headers and footers to appear on each page). the SAVEAS runs and creates the new file without the header and footer info. How can I take the template with this info and carry it into the new excel file. I am using Microsoft PIA excel library: - the&n ...Show All
Windows Forms email program - connect to server w/ uName and PW
I have sent mail plenty of times using web forms, but this time I'm building an email app for windows. The server in question needs logging into I assume, for it to work. I can get this far... SmtpMail.SmtpServer = "smtp.isp.com"; // SmtpMail.Send(myMessage); //error here of course because I have not logged in I have searched around for a sample with no luck. Anyone have a sample to log into a server THEN send the email - and even recieve Thanks, Zath Use a mailmessage and specify the fields, here is a working example: System.Web.Mail.MailMessage mail = new System.We ...Show All
SQL Server dynamic connection string
hi all, i've been reading through the forum on this subject but couldn't find the solution. i'm using RS2005. it's mentioned that dynamic connection string is not applicable for shared data source. is there a workaround for this thanks! Dynamic connection strings cannot be used with shared data sources. Other suggestions can be found in this related thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=16395&SiteID=1 -- Robert ...Show All
Visual Studio Team System Problem deploying VSTS client and server plugins
I have developed a client and server plugin for VSTS that will allow new items to show up in the Team Explorer tree after using a custom Process Template Editor. My question is that if I try and install this, and upload my custom Process Template Editor, it bombs out and gives me an error message saying my plugin is not registered. However, if I have the Visual Studio SDK (Dec CTP) installed, it does not give me this error. I know I am not deploying something that is required for my plugin that IS included with the Visual Studio SDK, but I don't know what it is. Is it required that the client have a Visual Studio SDK installed Thanks, ...Show All
Windows Forms Form_load code runs many times
My Form_load event handler code keeps cycling and executes about 12 times before proceeding to display the main form. This causes a lot of problems plus wastes time. Has anyone seen this problem Thanks, Luis I found the reason. For some unknown reason my form_load had 12 times the handles clause repeated like: Handles MyBase .Load, Handles MyBase .Load, Handles MyBase .Load ... As soon as I removed the duplicates it worked ok. Luis ...Show All
Visual C# I could really do with a pointer in the right direction
System.NullReferenceException: Object reference not set to an instance of an object. at _Default.Page_Load(Object sender, EventArgs e) in Default.aspx.cs:line 30 it is in the following code: using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Net; using TestShop; public partial class _Default : System.Web.UI. Page { string url = "http://link/CatalogueService" ; string username = "username" ; string ...Show All
Visual Studio 2008 (Pre-release) WPF Custom Control project related issue
Hey all, Using the Feb CTP, if you generate a Custom Control project, it looks like it's not easy to use it from an application. Or perhaps I did something wrong. I created a simple UserControl derived control (the default) and added an Ellipse into it. Compiled it. Then I created a WPF application, added a reference to this control library. But now, there's no way I can use it from the XAML for the main window. It won't recognize the control at all - not even the fully qualified name. I also tried to add it directly to the toolbox and got an error message that said that there were no controls in that assembly that could be added to ...Show All
Visual C++ Managed method in native class
Is possible to have a managed method within a Native(un-managed) class within a \clr project E.g. class myClass { public: #pragma managed void myMethod(void); }; I get an error when attempting to compile above about #pragma managed must be used at global scope! Is there some way to achieve this If not, why not Thanks in advance. In a nutshell Brandon. I have since resolved this problem, exactly as you have stated. Thanks. ...Show All
Visual Studio Express Editions Problems with Downloading Registration Benefits
There have been several reports of problems with accessing and downloading registration benefits. We have investigated the issue and have news to report. This sticky thread will be updated with additional information as it becomes available over the next few days. Background In order to negotiate deals with partners and authors to provide the highest value benefits, we must must be able to guarantee a secure download center that limits benefits distribution to those who have registered. We use the Microsoft Connect site to provide our secure download infrastructure, which is why you are redirected to the Connect site from ...Show All
.NET Development BinaryReader.ReadBytes()
Hi, I am using a binaryReader to read from a memory stream. I noticed if the stream reaches the end and I issue a binaryReader.ReadUInt32() command, EndOfStreamException will be thrown. however, if the stream reaches the end and I issue a binaryReader.ReadBytes(4) command, no exceptions are thrown and the byte array returned is just empty. Can someone tell me why this is happening I really would like to get the exceptions when executing ReadBytes() command. Thanks, Steve Steve - I've moved your post to the .NET development forum where you can get a better answer to your binaryR ...Show All
