Ahh...i'm so stupid:mad:. I created a namespace "Help".
lagumaster
Posts
-
Help on using Help Class -
Help on using Help ClassHi everyone, I created a help project, now I want to display the help project when the user clicks a menu. But I can't use the Help class the codes below is giving me error. private void mnuUserGuide_Click(object sender, System.EventArgs e) { Help.ShowHelp(this, helpProvider1.HelpNamespace); } error: The type or namespace name 'ShowHelp' does not exist in the class or namespace 'Help' (are you missing an assembly reference?) Please advice and thanks in advance!
-
removing xml attributes [modified]thanks alot for your reply, that fixed my problem:-D
-
removing xml attributes [modified]hi everyone, i want to get all the attributes of an element and put them under that element. but i don't know why at some elements their attributes are displayed beside it and i want to get rid of the namespace too. see the code below and tell me what's wrong with it. private void populateTreeView(XmlNode node2Iterate, TreeNode currNode) { XmlNode xNode; TreeNode tNode; XmlNodeList nodeList; TreeNode attrNode = new TreeNode(); if (node2Iterate.HasChildNodes) { nodeList = node2Iterate.ChildNodes; for(int i = 0; i<=nodeList.Count - 1; i++) { TreeNode tn; xNode = node2Iterate.ChildNodes[i]; tn = new TreeNode("<" + xNode.Name + ">"); currNode.Nodes.Add(tn); tNode = currNode.Nodes[i]; populateTreeView(xNode, tNode); if(node2Iterate.ChildNodes[i].Attributes != null) { foreach(XmlAttribute attr in node2Iterate.ChildNodes[i].Attributes) { string attrs = null; attrs = "<" + attr.Name + "=\"" + attr.Value + "\"" +">"; currNode.Nodes[i].Nodes.Add(attrs); } } } } else { currNode.Text = (node2Iterate.OuterXml).Trim(); } } the output looks like this on a treeView control: - - - thanks for any help! -- modified at 23:41 Monday 2nd October, 2006
-
tree view controlhi everyone, i want to populate a treeview from an xml message i'm sending or i recieved. now i want that xml message (all the elements and attributes in that element) to be displayed in a tree view. the problem is, if the element has alot of attributes, not all of the attributes will be displayed. is there any way for me to display all the attributes? i tried adding levels for each attribute of an element but i'm not getting the right order. any advice, sample code , or anything...i'll really appreciate it. thanks.
-
error generating the XML documenthi everyone, i'm getting this error: "There was an error generating the XML document" when i try to serialize a class. it works for other classes except for classes like these : public class studentList() { public student[] students //has only one member and it is an array of another class } i didn't get much info from stackTrace which says: at System.Xml.Serialization.XmlSerializationWriter.WriteTypedPrimitive(String name, String ns, Object o, Boolean xsiType) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriter1.Write3_Object(String n, String ns, Object o, Boolean isNullable, Boolean needType) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriter1.Write228_studentRegistration(String n, String ns, studentRegistration o, Boolean isNullable, Boolean needType) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriter1.Write5_studentBody(String n, String ns, studentBody o, Boolean isNullable, Boolean needType) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriter1.Write1_studentMessage(String n, String ns, studentMessage o, Boolean isNullable, Boolean needType) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriter1.Write242_studentMessage(Object o) my question is, is it the class? this is a project at work. i was given these schema files and just generated classes from those schemas to use for the project. i already did searching online and i found one that it says it is a problem on the class. let me know please. i will really appreciate your reply. thanks
-
can't add item to listboxhi folks, can anyone please tell me why i can't add a string in a listbox? here's the code Form1.cs private void InitializeComponent() { printMsg += new myEventHandler(AddItem); //some code here } public delegate void myEventHandler(string msg); public event myEventHandler printMsg; [STAThread] static void Main() { Application.Run(new Form1()); } public void AddItem(string msg) { listBox1.Items.Add(msg); } --------------------------------------------- Form2.cs private void button1_Click(object sender, System.EventArgs e) { Form1 f = new Form1(); f.AddItem("just testing"); } i'll appreciate any help. thanks
-
Null reference exceptionhi, thanks for your reply. i didn't post the code since it's very long. basically i only used BeginSend()(tcp socket) method to send the message and i get to this part of the other application : //------WebService file-------- public string EndSendMessage(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((string)(results[0])); } //---Form.cs file--------- MyWebService ws = new MyWebService(); //other code here... string str = ws.EndSendMessage(); //<---- string is null I've been looking around for a code that works like this but i can't find one. Is it really possible to send a message from a TCP socket to a Webservice? :confused: Thanks.
-
Null reference exceptionhi everyone, i'm developing 2 applications that can communicate to each other. application1 is using a tcp socket to send a message to application2. application2 should receive the message through its webservice. now, my problem is i'm not getting the message in application2. i tried running ethereal to check the packets and i can see that the message is going to the computer where application2 is running but i'm getting a Null reference exception on application2. i tried using stacktrace but it's only giving me the line where the null reference occured no further information. so, i need advise what's going on. why am i not getting the message from the application? i have been working on this problem for a week now. so, please advice. thanks.
-
http chunked responsehi everyone, i'm developing an application that will work like a web service. my problem is I don't know how to generate an http chunked response correctly. on the http chunked response, i'm getting a wrong size for my data size or chunk size. so i'm not sending the whole message. please advice :*(
-
sample database in sql server 2005 developerI believe I followed the instructions. I did the steps in: To install the sample databases and samples after Setup. But then when I tried to register the AdventureWorks Database, in the New Server Registration Dialog Box, I clicked on the AdventureWorks (in the Connect to Database listbox), then I clicked TEST button, I'm getting an error says: "Cannot open database requested in login...." So I thought it was installed but not attached, so what I did I used the ATTACH context menu in the Database, i looked for the .mdf file, but I'm still getting an error. But I was wondering why when I installed AdventureWorks it didn't go to this path: n:\Program Files\Microsoft SQL Server\MSSQL.n\MSSQL\Data. It when here: n:\Program Files\Microsoft SQL Server\90\Tools\Samples \AdventureWorks OLTP. And I'm getting an error when i'm trying to attach it:confused: hope this makes my problem clear and hope you can help me. Thanks!
-
sample database in sql server 2005 developerhi everyone, i'm trying to install the sample database AdventureWorks I followed the step-by-step in the tutorial book (installing after the setup). but i don't know why i cannot make a connection on it. Anyone here knows how to workaround this problem. I will appreciate any help!:doh:
-
gorsql server 2005hi everyone, i'm new with this software. i have installed it and i think i was able to install it successfully. but i'm wondering it seems to me this 2005 version was not installed since i don't see any difference between this and the 2000 version. when i opened the "Books online" it says there Ms Sql Server 2000. that does mean the 2005 developer edition wasn't installed? I will really appreciate any help!
-
Platform Invokehi everyone, data types of the parameters in the pinvoke function or sub should passed by ByVal if it is a IN parameter and ByRef if it is IN/OUT parameter? just let me know if i'm correct...thanks!
-
publisher configuration filehi everyone, where am i supposed to create the publisher configuration file? in an application configuration file or xml file? what about a configuration file for trace switches? coz my program is not working properly and i'm getting error when i'm using the al.exe tool:wtf: thanks!
-
server explorerhi everyone, i'm wondering why is it on my server explorer when i right click my "Views node" i don't have the "New View" menu and on the "Tables node" i don't have "New Table" menu and i can't run sql query using Visual studio .net IDE...i'm just using the query analyzer...i'm a missing something? what do i need to install to get these things?:confused: thank you very much!
-
Serviced Componentthanks for your reply :) i figured it out already i unchecked the Enforced acess check box in the service component i created. i thought registering it in the command prompt is safe...oh well still need to learn a lot of things... btw, do you know how can i create a new table in a sql server database?
-
Serviced Componenthi, i created a serviced component but i cant run the program it says: Access is denied. and i cant send a message to the application log. i even tried shutting down the serviced component in the com+ catalog, i just installed it in assembly (using gacutil.exe) but i'm still getting the error and no message is being created on the application log. i tried configuring my HKEY_.... but nothing happened :sigh:....please help!
-
creating windows service applicationhi, i created a windows service application. when i installed the application using installutil.exe i didn't get any error but the application did not start (set the startType to automatic) when i restarted my computer:confused: please advice....:doh:
-
web service using asp.net problemyes i'm running my client and server on the same machine...yeah i think i have a problem connecting to my web service to my sql database. thank you!