inheritance
-
Hi all, i am new in C# environment. i try to create a desktop application. i have 2 classes (form1 & createXML) the form1 located a textBox that called txtPhoneNumber. now, when the user will write his phone number the application will send him an SMS. the problem is that the txtPhoneNumber.Text doesn't send the user number to the createXML class. the XML is look like: strBuild = strBuild.Append(""); //Destinations strBuild = strBuild.Append(inputForm.txtPhoneNumber.Text); //input from the form1 Class strBuild = strBuild.Append(""); but in the debug i see that there is no number. and there is no any hint for error. any idea? please help!!!
-
Hi all, i am new in C# environment. i try to create a desktop application. i have 2 classes (form1 & createXML) the form1 located a textBox that called txtPhoneNumber. now, when the user will write his phone number the application will send him an SMS. the problem is that the txtPhoneNumber.Text doesn't send the user number to the createXML class. the XML is look like: strBuild = strBuild.Append(""); //Destinations strBuild = strBuild.Append(inputForm.txtPhoneNumber.Text); //input from the form1 Class strBuild = strBuild.Append(""); but in the debug i see that there is no number. and there is no any hint for error. any idea? please help!!!
-
Hi all, i am new in C# environment. i try to create a desktop application. i have 2 classes (form1 & createXML) the form1 located a textBox that called txtPhoneNumber. now, when the user will write his phone number the application will send him an SMS. the problem is that the txtPhoneNumber.Text doesn't send the user number to the createXML class. the XML is look like: strBuild = strBuild.Append(""); //Destinations strBuild = strBuild.Append(inputForm.txtPhoneNumber.Text); //input from the form1 Class strBuild = strBuild.Append(""); but in the debug i see that there is no number. and there is no any hint for error. any idea? please help!!!
-
Hi all, i am new in C# environment. i try to create a desktop application. i have 2 classes (form1 & createXML) the form1 located a textBox that called txtPhoneNumber. now, when the user will write his phone number the application will send him an SMS. the problem is that the txtPhoneNumber.Text doesn't send the user number to the createXML class. the XML is look like: strBuild = strBuild.Append(""); //Destinations strBuild = strBuild.Append(inputForm.txtPhoneNumber.Text); //input from the form1 Class strBuild = strBuild.Append(""); but in the debug i see that there is no number. and there is no any hint for error. any idea? please help!!!
How exactly is inputForm getting into the createXML class?
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) -
Why dont you look into using system.data.datatable you can add columns names and data etc. then you can use datatable.writexml() to produce the file for you Just a suggestion BTW
-
Hi, thanks for the fastest answer!! i don't need to add columns or names, the single integer in the XML is the txtPhoneNumber. the XML is ok, but he doesn't get the phone number integer.
-
How exactly is inputForm getting into the createXML class?
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) -
namespace.TakeNumber inputForm = new TakeNumber(); then: input get the txtPhoneNumber but without values...... :-(
Ido Shahar wrote:
new TakeNumber()
That's why. It's an different instance so the new instance's txtPhoneNumber is empty
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) -
Ido Shahar wrote:
new TakeNumber()
That's why. It's an different instance so the new instance's txtPhoneNumber is empty
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)