Answer Questions
JamesAins Problem with Constructor
I am new to C++ in .NET 2005 and uses of ^ I have a new application written and a data class that is instantiated on Load of a Form. Problem is as soon as the constructor of the data class is complete I wind up right in the Destructor. I have the pointer to the Data Class defined as Public in the Form1.h and still the Destructor kicks in. My declaration is fairly simple... publilc: MyNameSpace::MyDataClass ^m_pDataClass; Then in Form1_Load afte ...Show All
A.b.cn What Event Exactly?
I need to populate a dropdown listbox named "sub category" once the user the clicks his desired selection in the dropdown listbox named "category" e.g. clothing has subcategories like gent's clothes and ladies clothes. I need to know which event i have to use Im not sure in what event i have to put my code in exactly.Please help. Maxood wrote: I need to populate a dropdown listbox Do you mean com ...Show All
MattShepherd MSXML 6
Is there a merge module available yet for the new MSXML 6 If not, why Thanks Can Microsoft please provide information on how MSXML6 is to be installed in a public software package if there is no merge module Especially in consideration of the fact that concurrent installations are deprecated with Windows Installer 4. I quote from the MS documentation: "Concurrent Installations, also called Nested ...Show All
BBBruce Can I update several attribute values with Update operation in SQL 2005?
Can I update several attribute values with Update operation in SQL 2005 I can run the Code 1 correctly. But I hope to update several attribute values in one operation, so I create the Code 2, but I get error below when run it. Is it possible to update several attribute values in one operation XQuery [cw_Bookmark.Bookmark.modify()]: Expected end of XQuery expression, found 'replace'. //-----------------------Code 1 ---------------------------- ...Show All
modem Searching for Network Devices using VB .NET? PLEASE HELP!!!
I am writing a change management app in VB .NET and I need to be able to scan a network for devices like switches and routers. I don't have a clue where to start! I there a way to be able to find these sorts of things by just searching snmp strings or do these devices have some special response when accessed via .NET I really need help! Thanks in advance. Thanks for your response. I have been looki ...Show All
João Marcelino class design question
I have my class with properties and methods. I create an instance of the class and get some of its properties in my forms. When I go back to the class and try to access that property from inside the class itself, I see that it has a NOTHING value. 1/ How do I keep the value of the property between calls and instantiations of the class when I sometimes instantiate the class from different forms in my application. 2/ What is this techniqu ...Show All
dungcoi how to force several typed data adaptors join into one transaction
I have two typed data adaptors and I want to make a transaction so that the two typed adaptors can submite or rollback at the same time. The data adaptors may use same connection may be not.Currently, they are use a same dbconnection. I think it is easier to be solved. The question is,when I try to get the dbconnection I found that the dbconnection is a internal attribute. I wondered if I have to wrapper another public c ...Show All
Krop Serial data to a text box
Hi I am just starting out with C#. All i want to do is collect data from the serial port and show it on my form Text box etc. Eventually I want to save the data to a file. I have created a form with a button and a textbox, plus serialPort1 tool. The following does not build private void button1_Click( object sender, EventArgs e) { textBox1.Text = serialPort1.ReadExisting; ...Show All
ChampAmp Web service that returns a complex type
Hi all! If I try to create a WebMethod that returns a complex type, i.e. a class with some properties, the proxy generated by WSDL contains the definitions only for the methods in the class that are getter/setter (if a method is only getter, the proxy doesn't contain it). So, what must I do if I want the web service returns a complex type, but I don't want the user to modify the properieties values of the class he receives Thanks in advanc ...Show All
paulta How to generate "plain" SQL with OleDb or Odbc providers, in database independent sintax ?
In VS2005 all generated SQLs in new dataset designer are database dependent, even if we use OleDb provider, for example, if we prepare TableAdapter over Microsoft.Jet.OLEDB.4.0 we get next SQL : Me ._adapter.InsertCommand = New System.Data.OleDb.OleDbCommand Me ._adapter.InsertCommand.Connection = Me .Connection Me ._adapter.InsertCommand.CommandText = "INSERT INTO `TBSIMPLE` (`SIMPLEID`, `CODE`, `DESCRIPTION`) VALUES ( , , )" ...Show All
Armoghan ADO.NET V2 Oracale Data Access Sample
Hi, I am looking for some code sample shows me how to access Oracle by using ADO.NET version 2 model. Any help would be apprecited, Alan Don't believe anything has really changed there from 1.1 to 2.0 ...check here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconconnectingtooracledatasourceusingadonet.asp ...Show All
tobyxu HTTPwebrequests and cookies?
I have a class that will do two way interactions with webpages and it will also interact with webservices. I have a client who needs this to periodicall watch a page and gather information displayed by the page. This class would log onto the page just fine, however, cookies are required and I have no idea how they work or how to add cookies because I'm totally unknowledgeable about cookie protocols ot cookie manangement. C ...Show All
Terence Lee BackgroundWorker a 'One trick pony'?
If one uses the ComponentModel.BackgroundWorker and drops it as a component, it gets wired in and one can use it to do non GUI work on your form. All is fine... But what happens if the action it performs is a common occurance and one needs to reuse the object after it has performed its operation There is no reset method that I have found. As far as I can tell, it would be better to programmatically create the worker instead of dropping it as a c ...Show All
Ahmed Ismaiel Trouble getting value from xml file
Hi I am new to c# and xml but progressing nicely (I think) anyway I am reading in an xml file and then extracting information from a particular tag and rewriting it to a new file. I have almost got it but I am having a problem getting the value from the element and then writing it as an attribute to the new one. Code is while (reader.Read()) { if (reader.Name == "text" && reader.NodeType == XmlNodeType .Elemen ...Show All
acplus Pulling images from Microsoft Access
Hi peeps. Iam completely new to all this. I belong in a macromedia world of flash. lol. But I though I would come see what all the fuss is about and downloaded myself a copy of visual web developer. It looks a really nice program and really powerful. I have probably thrown my self in at the deep end a little as I have nooo idea how anything else works. But I have been looking at pulling data from an access database in to a data list ...Show All
