ijrr's Q&A profile
.NET Development Using diffgram to update database
Hi there. Im trying to use a diffgram xml message to update the northwind database in sql server. the code im using executes but the changes are not updated. The code im using is from a text book. The code is supposed to change the contact name from Maria Anders to Maria in the customers table. I've added a reference to the SQLXML .NET assembly This is the xml fiile: diffgram.xml < xml version ="1.0" standalone ="yes" > < diffgr:diffgram xmlns : msdata ="urn:schemas-microsoft-com:xml-msdata" xmlns : diffgr = "urn:schemas-microsoft-com:xml-diffgram-v1"> < NewDataSet > < Customers diffgr : id =" Customers 1" msdata : rowOrder =&q ...Show All
.NET Development VWD Express-Accessing the SqlDataSource: Can not open user default database. Login failed.
Hi all, In my VWD 2005 Express program, I created a website "DobsonCh11" that had (1) Norwind.mdf file in my SQL Server Management Studio Express(SQL Server Express), (2) Northwind.mdb and Northwind mdf files in the App_Data folder, and (3) the following default.aspx.vb: Imports System.Data.OleDb Imports System.Data.SqlClient Partial Class _Default Inherits System.Web.UI.Page Protected Sub form1_Load( ByVal sender As Object , ByVal e As System.EventArgs) Handles form1.Load If Not Me .IsPostBack Then Me .Title = "Connect/query local databases" Me .Button1.Text = "Query Access" Me .Button2.Text = "Query SQL Server" Me .Button1.Width = 125 ...Show All
Windows Forms Duplicating MS Access Continuous Subform Functionality in .Net
Hello All, I'm currently writing an Inventory Control and Invoicing program for a friend. I statrted writing the app in MS Access and found that I couldn't get the level of control I needed. Rather than write it on old VB, I thought I'd try writing it in .Net. My main form in Access consisted of one main form and two subforms. The main form was Customer Information, the first subfor ...Show All
Visual Basic Datagrid cell mouse click
Hello, I've a DataGridView on a form and I need to catch the mouse click event on a specific cell so that I can display more information about the value showned. For other words, if a user clicks on a certain cell of the datagrid, I want to open a new dialog form to show more information about the value displayed on the datagrid. Thanks, Joao Pinto If the ID is in the dataset and you are just chosing not to display it. Then you can use the following property DataGridViewRow.DataBoundItem Property http://msdn2.microsoft.com/en-us/library/system.windows.forms.datagridviewrow.databounditem.aspx This gets the data-bound object that populated the row. So on the row you are displaying, you can get the I ...Show All
.NET Development static constructor
Dear All, I am first to C# .net. I heared about static constructor. I want to know more about these. Can you explain this to me. It is a sample code I modified. Please use this code to explain the static constructor. public class Bus { static int AAA; static int BBB; static int CCC; static Bus() { System.Console.WriteLine("The static constructor invoked."); AAA=AAA+1; } public static void Drive() { System.Console.WriteLine("The Drive method invoked."); BBB=BBB+1; } public static void Start() { System.Console.WriteLine("The start method invoked."); CCC=CCC+1; } public void Stop() { System.Console.WriteLine("The Stop method invoked."); } ...Show All
Windows Live Developer Forums My limited accounts has internet connection limitations: couldn't logon to hotmail, couldn't logon messenger, why?
I need help, i already tried everything... I have to run system recovery several days ago, coz of a certain anti-malicious softway caused my system crashed. after i recovered my windows XP home edition sp2, and updated from microsoft, i had my new problem. i have to setup a limited account for my son, and i found the limited accout couldn't logon messenger(live 8.0) (keep telling me 80048820 error) and the internet connection has limitations: couldn't logo to certain website, such as hotmail and gmail etc., when ever i changed the account type to admin, everything is fine. And interesting thing is: when i logon on as a adim then log off and login as a limited account, everything is fine also. But after reboot and login as a limite ...Show All
Visual Basic Data Changing Alerts
Hey there Not sure if i'm posting in the right group, but here it goes... I'm currently developing a Windows Database Application using Visual Basic .Net 2003 and SQL Server 2000. It is a multi-user database that when a new record has been added by one user, it displays in a grid on another users computer instantaneously. For previous projects I have been using a timer control however this causes problems when a user selects the record. I hope someone can help me with this, and thanks in advance. We're going to need a bit more information. Are you using the timer to periodically check the database What error are you getting If it's an exception can you post the information about the ex ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA GSE - Vista installation
Hello all, I'm running the latest Vista Ultimate (MSDN) version on my machine. For some reason I can't get GSE to install. At the end of the setup, Microsoft Visual C# Express crashes and the setup is rolled back. Always when it states "Registering project templates". Like the Visual C# Express site suggests, I've tried uninstalling the product, and re-install it as an Administrator user. But that doens't work either. Afterwards I receive the same behavior. I've also ran the GSE setup as an Administrator, but still no luck. Thanks for all suggestions and help! Thanks, Reading back the threads I have, I've probably missed the Beta SP1 :) I'll try it as soon as I get home! Eric ...Show All
Windows Live Developer Forums I want to set zoomlevel for microsoft virtual earth map,can i set zoomlevel to 4.45, a double value?
I want to set zoomlevel for microsoft virtual earth map,can i set zoomlevel to 4.45, a double value map.SetZoomLevel(4.45); It seems that the statement will have stack out problem Thanks Certainly in 2D mode this won't work simply becouse VE has only tiles for integer values. May need to test how it goes for 3D mode but i suspect you would be better off use the altitiude method instead. John. ...Show All
.NET Development Maximum SNMP VarBind/PDU length
Hi, I'm developing an SNMP agent for our product, which implements the Windows SNMP Extension Agent API. Some of our product's traps may contain a trap VarBind of type OCTET STRING. From what I read in the web, I understood that this variable can be 65536 octets long. Therefore, it is clear that a trap with a "large" string variable should be fragmented to several SNMP (UDP) messages. My question: Does Windows SNMP service can handle such a trap and does fragment it correctly, or it limits the maximum variable/PDU length Thanks! This forum is not the right one for your question. I looked around and could not find a suitable forum. May be there is one for MOM (Microsoft Operation ...Show All
Game Technologies: DirectX, XNA, XACT, etc. When is LoadGraphicsContent(true) called?
Hi, I'm wondering if LoadGraphicsContent(true) is ever called by XNA (rather than client code) except for when the game is first started. The reason I care is that if I have to reload, for example, a Texture that a few different objects are still using, I have to make sure that they use the new Texture reference rather than their old one, which is now dead. Basically: am I guaranteed that LoadGraphicsContent(true) is never called except when the application first starts up and when I call it myself It appears that's how it's supposed to be, but from the documentation I'm not 100% sure. Thanks, Max Yes, that is the way to do it. It is not necessarily inelegant (because you can hang other functionality on t ...Show All
.NET Development Appending prefixes to Elements in XML file
Hi, I was hoping to get some help regarding setting prefixes for elements of an xml file. I'm trying to do something like this. <root> <Prefix1:Body> <Prefix1:Element1>data1</Prefix1:Element1> <Prefix1:Element2>data2</Prefix1:Element2> </Prefix1:Body> <Prefix2:Element3>data3</Prefix2:Element3> </root> where I would like the freedom to assign Prefix1 and Prefix2 to different strings. At the moment I'm trying generate the xml file using VB.NET particularly XmlTextWriter. I using the statement xml.WriteElementString( "Prefix1" , "Element1" , "Prefix1" ) defining the prefix and the namespace. However this w ...Show All
Windows Forms How to Hide Entire Category in a PropertyGrid
Hi Folks, I would like to know if there is a way of Hiding entire category from a PropertyGrid (PG) I have been using the Browsable(False) attribute on property that I need want to be displayed on the PG. Then when all properties belonging to a perticular category have been browsabled-false the category automatically dispeared. However, I still have the a category that are still present and that is the Design category. It contains the Name and Locked properties, but I would like to remove them too. Is anyone knows how to get around doing that Thanks Seve I have solvented this issue using a TypeConverter in my components. The following line implement a custom TypeConverter for a compon ...Show All
Visual Studio Interacting with Server Explorer
I would like to make a mapping tool very similar to the mapping tool for DLinq. Is there any documentation on interacting with Server Explorer I would like to be able to drag an object from the Server Explorer window to create a shape on the diagram. Thanks for any guidance. -Daniel Actually, here's a somewhat terser post with the code needed to parse the clipboard. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=265925&SiteID=1 ...Show All
Windows Forms Invalid value for 'Clrversion'
When I try to publish my program i get this Error: Invalid value for 'Clrversion' I guess it is a problem with my framework. I don't get any errors when I build or debug my program. Any one who can tell my how to resolve this issue I am having the same problem, only I get the message when I try to compile. Compile complete -- 0 errors, 0 warnings C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(2071,9): error MSB3174: Invalid value for 'ClrVersion'. Done building project "Workbench.csproj" -- FAILED. What is weird is that if I uncheck "Enable ClickOnce Security Settings" on the Security Tab of project properties, it compiles just fine. What is goin ...Show All
