Luis Esteban Valencia Muñoz's Q&A profile
Visual Studio 2008 (Pre-release) Data Binding from Different Assembly
Dear all, I have recently attempted to data bind an object class from another assembly to the WPF application, however, the data cannot reflect successfully. I have used the same XAML and code-behind coding that bind the object in the same assembly to the WPF application that works. In addition, I have added the following: xmlns:src = " clr-namespace:xCAP.SampleSystem.Chat;assembly=ChatService " So what do I need to do beside the above Regards chm Hi, The following is what I have for my binding syntax : Dim DataProv As New ObjectDataProvider Dim testMsg As New TestMessage DataProv = Me .FindResource( "test" ) testMsg = DataProv.Data te ...Show All
.NET Development Using System.Net.Mail with Gmail is Faulty
Can someone try this on their computer with their Gmail account I'm not sure if its every mail service or just gmail, because gmail is the only mail service that allows for smtp access (hotmail and yahoo don't) that I use. The problem is that the mail message send completed event is not triggered, even when its done. The email is sent and all, its just the event isnt triggered. I can send the message, and EVERYTHING works good, but the event isnt triggered. That's the ONLY problem whatsoever, there isn't any email problems or no email message problems, its just that the event is never triggered. ...Show All
Windows Live Developer Forums OGC WMS / WFS Connection to Virtual Earth 3D
Hi everyone, We are trying to tile different maps to Virtual Earth in 3D mode. everyhing is fine when i am using an image file by just suggesting my tilesource. But when we try to use a WMS as an image source i can not see anything on the control. In 2D mode its ok, I know that it s not possible but how about in 3D mode. I thought that we have a problem with WMS and for this reason checked out my WMS source. but everything seems well with WMS because i received the images from WMS by using the same source request (with GETMap function of WMS) . Here is my sourcecode. if someone can help about where i m makin the mistake, i ll be glad for anything .. thanks. < script > var vemap = null ; function GetMap() { ...Show All
Visual Studio Sandcastle - how to generate additional content for root namespace pages?
I understand that I will have to do some xslt work, but I'm hoping that someone with some Sandcastle expertise can outline what I need to do to achieve my goal, which is as follows: We have many namespaces in our application. In the root namespace pages, I want to create a new section under the members section called "Resources". I want this section to be a table containing links to additional reading material (UML class diagrams, DRDs, etc.). Ideally, I'd like to store the information needed to build this section somewhere within each assembly's project... in an xml file or such. So... how should I store the information, and which xsl file(s) do I need to modify TIA! Thanks ...Show All
Visual Basic Open a form and show a particular record
Hi, I have a stored procedure that returns a record dependant on a value sent to it. I have created a form that shows the detail view of the Dataset from this stored procedure. How / where do I send the form the parameter (from another other form) so that the form opens on the right record Ta. John Thanks for your answer. I tried adding a new sub and got a " Public Sub New ( ByVal recordcriteria As String ) in designer gernerated type "Trial.frmName" should call initialize method." error Also, I cant see the fill method having such a form. Get a too many arguements error... I'm OK with passing the criteria, it's just geting the criteria into the adaptor/recor ...Show All
Visual Studio "Webs do not support linked files" Exception
Hi All, Whenever i wish to add files to a webservice programmatically using objVSWebsite.Project.ProjectItems.AddfromFile(filename) It throws exception-- Webs do not support linked files Can somebody please let me know the remedy of this exception regards Hi Rajiv, WebSite projects does not support linked files. That is the nature of the WebSite Project. As know probably know there is no project file for WebSite project. Therefore it can not know about linked filed files. Ole ...Show All
Windows Forms Don't want design mode
I think this is where I should post this question... When I double click on my FormName.cs in the workspace window, I would like to default to 'view code'. Where can I find the option to set it as such I need designer mode much less often than I need source mode. And yes I know I can right click to view code, and I can use the tabs to go to what ever I have open, but I double click more often out of habit and the tabs are in almost a random order. Thank you. Right click the FormName.cs in solution explorer, select Open With... . In the dialog that appears select CSharp Editor (or Microsoft Visual Basic Editor) and press Set as Default and then OK. ...Show All
Visual Studio 2008 (Pre-release) Cannot set Name attribute value 'Tab1' on element 'MyTabItem'. 'MyTabItem' is under the scope ...
Hello, I'm using WPF RC1 and I'm trying to create a set of custom control with template to skin the appearance of the TabControl. When I'm trying to use those controls in my application, I'm getting the following error: "MyPage.xaml(71,69): error MC3093: Cannot set Name attribute value '_Tab1' on element 'MyTabItem'. 'MyTabItem' is under the scope of element 'MyTabControl', which already had a name registered when it was defined in another scope. Line 71 Position 69." Here is a trimmed version of the application's page XAML. < DockPanel LastChildFill = " True " > < rbn:MyTabControl DockPanel.Dock = " Top " > < rbn:MyTabItem Header = " Tab1 " Name = "_ Tab1 " > ...Show All
SQL Server How to construct table with unique PK
Let say I have 6 tables. I want to autogenerate the PK for each table and that is unique for each table and cant be duplicated on other tables. Let say I have table with PK of 1, so table2 to table6 wouldnt have a PK of 1. If table2 have a PK of 2, table1, table3 to table6 wouldnt have a PK of 2. Same for others. Identity will not be appropriate. Will 'uniqueidentifier' data type suffice How bout guid Or what must be my datatype Or what will I do to implement this Any links Thanks have a composite primary key key1 and key2 have key1 to have a default value of "A" for the first table, "b" for the second and "c" for the third key2 would be an identity your pk would ...Show All
Software Development for Windows Vista Persistence Service with Remote SQL Server connection
Is there anyone out there that is successfully persisting and tracking workflow data on a remote server I've had no problems doing this on my local machine. I'm attempting to point to another database server and am getting this error message: System.InvalidOperationException: Workflow with id "9ff9b8b7-2243-4dfd-b606-a7daa88d9b16" not found in state persistence store. I've checked all of the obvious things, remote connections being allowed, DTC turned on and running, etc. I've even opened port 135 through windows firewall and added dtc as an exception. What am I missing ! You aren't compromising any .NET 2.0 work by installing 3.0. .NET 3.0 is simply a set of librari ...Show All
Smart Device Development Vista, VS2005 SP1, Mobile Device Center and disconnects
Situation: I had to install Vista Ultimate x64 I installed Visual Studio 2005, SP1. Both in Italian. I could not install the "Service Pack 1 Update for Windows Vista " because it is available only for English. To work with my PDA, I installed "Microsoft Windows Mobile Device Center Beta 3 for Windows Vista (AMD64)". I'm able to sync my PDA with my PC. The problem: When I run my VS2005 VB application, it is correctly distributed on my PDA. BUT, as soon as it load the symbols for debugging, the PDA gets disconnected from the "Windows Mobile Device Center" (but NOT from VS 2005!!) This happens randomly, but about 4 times out of 5. I can debug my application, but since my application is tryin ...Show All
.NET Development performence issue of an XML reader
Codes: // Load an XML file and display the structure and content in a tree view. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Xml; namespace XMLReader { public partial class XMLReader_WindowsBased : Form { public XMLReader_WindowsBased() { InitializeComponent(); } private void btnSelect_Click( object sender, EventArgs e) { ofdXMLFile.ShowDialog(); txtXmlFile.Text = ofdXMLFile.FileName; } private void cmdLoad_Click( object sender, EventArgs e) { // Clear the tree. treeXml.Nodes.Clear() ...Show All
Visual Studio 2008 (Pre-release) Getting Error when try to publish the exe with XML file.
Hi, When im trying to publish the exe, im getting 'System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission' error. Actually im reading a XML file inside the code behind. If ill remove that then it wont create any problem i think. Please, can anyone help me to publish it Im publishing a Web browser application, ie, partially trus WPF Appl. How to make it a full trust appl ...Show All
Visual Basic where does SubClassProc come from ??
in the AddressOf SubClassProc below ; Delegate Function SubClassProcDelegate(ByVal hwnd As Integer, ByVal msg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As Integer Declare Function SetWindowLong Lib "USER32.DLL" Alias "SetWindowLongA" (ByVal hwnd As Integer, ByVal attr As Integer, ByVal lVal As SubClassProcDelegate ) As Integer Sub SubClassWindow(ByVal hwnd As Integer) If PrevProcPtr = 0 Then PrevProcPtr = SetWindowLong(hwnd, GWL_WNDPROC, AddressOf SubClassProc ) End If End Sub in my code defWindowProc = SetWindowLong( Me .Handle.ToInt32, MessageHandler.GWL_WNDPROC, AddressOf SubClassProc) it says that SubClassProc is not declared. But I don't know where to declare it.... ...Show All
Visual Studio Team System TFS Templates with Reports and Sharepoint QuickLaunch Links
Hi, I have a TFS Template which creates a wss site. The site is basically a copy of the MSFAgile template. I'd like to know how to change the links that appear under the Report heading in the Quick Launch part. eg: Report Priority Project velocity .... Any help would be most appreciated. Thanks Ben. The simplest way I have found to modify the SharePoint template is to open it up using Frontpage and editing the links. Then do as the previous post mentioned save it as a separate template and include a reference to the new SharePoint template in the process template. ______________________________ Sarah Cameron - Incycle Software ...Show All
