Answer Questions
HarroSIN Adding child controls to CustomControl
Hello all someone can tell me how to add functionality to my CustomControl to add child control to my CustomControl at design time in IDE What you are trying to do is more complecated. I suggest you read this article: http://www.codeproject.com/cs/miscctrl/DesignTimeWizard.asp This is a wizard control with desing-time support, this article contains explantion on all features you need - collection that can be edited from the d ...Show All
NewHacker Wierd error : Attempted to read or write protected memory. This is often an indication that other memory is corrupt
Ok I have a project that runs fine from the IDE, the problem is if I install the app or run it from the bin\release folder then I get this error on one of my method calls. I have tried this on a test machine and on my development machine and the results are the same. I have spent hours trying to figure this one out....... The crazy thing is, the method shows up in the stack trace but there is not code at all executed in that method. ...Show All
Varied Interest using ExecCommand to copy in MSHTML
I am working on an editor using mshtml. I just cannot get cut / copy / paste to work with ExecCommand. All other command identifiers seem to be working well. Here is my code: public partial class Form1 : Form { private static HtmlDocument htmldoc; private bool fireonce = false; // fire previewkeydown only once public Form1( ) { InitializeComponent( ); } private void Form1_Load(object sender, E ...Show All
eddieg Looking for the equivalent of C++ MyClass::MyMethod ?
Hi, Here is my problem: I've 3 classes using this hierarchy: ClassA <= ClassB <= ClassC ClassB has a method T which is overriden by the ClassC . With a ClassC object : I need, from the ClassB , to call the method implemented in ClassB and not the one implemented in ClassC . Actually, if I wrote, from ClassB : this.T( ) then the implementation of ClassC is called because of the virtual / override mechanism. If I call base.T( ...Show All
RMarmion Merging Databases in C#
Anyone have a good source for understanding how to merge a database from a network drive with a local database Northwind(hard drive) -> SQL Database(server). I saw that....thanks. Doesn't really answer the question. It isn't programatic....its using the wizard in the Enterprise edition. I know how to do that. I would love to see how it is done in C#. Thanks again, hope to hear from you friend! -M ...Show All
Photius Mathematics Functions
I have just downloaded Visual C# Express. I find that it has no mathematics functions and many others missing such as sleep(). Can someone tell me how I get these. Many thanks. Thanks for the reply - I have just visted the MSDN library and can find no information about downloading System.Math - is it a free download as you imply or do I need to buy a CD System.Math is a part o ...Show All
Arvin Socket Question
I followed the MSDN example for Asynchronus Sockets. It seems to be working, but I'm having a few issues on how it works. Basically I have two Flash clients that connect to the socket server. I want to be able to send a message from one Flash client to the other. I have been successful in wrtining to the socket and returning the data to the client that sent the message. How do I get the other client to recieve data that is sent to the socket. Is ...Show All
matthew.devalle HowTo execute file on remote machine ???
Hi again Does anybody know how I can execute a file (executable) on a remote machine I am looking for some examples ... Thanks and best regards Frank Uray ...Show All
Bidmaron why i=i++ is undefined and have very strange behaviour
hello i having problem with this code int i=10; i=i++; console.writeline(i); //it is printing 10 at console why not 11 please tell me the details of compiler I believe the answer that you are getting is correct. You are assigning i to i then incrementing the original value of i by one. The value that is assigned is 10. if you were to change your code to read the following then you would get 11. int i=10; //actually all ...Show All
aosman Good VB.net to C# book
Could somone reccomend a good VB.net to C# (2005) book I am interested, at this point, mostly in the basics. I need to migrate from VB.net to C# and would like to do so in the easiest, quickest and most understandable way. Any suggestions or help appreciated WoodrowS – Rather than try to find a personal Rosetta stone, why not just grab a C# book and start at the beginning Doing that will intr ...Show All
aggieben Trimming strings
I am looking for a way to deny the user to type certain symbols into a name, because later I want to use that name to create a default filename or folder. A mask would be nice, but I haven't found one. I can trim from both ends, but not from the middle, and also trimming moves the cursor to the beginning of the line. After a zillion failures I came up with the idea below, but unfortunately the Undo method does not work as I expect ...Show All
Ramesh Jha Another event handling question
I have the same issue as this guy does: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=127763&SiteID=1 I have searched my local 2005 MSDN here: ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_csref/html/804cecb7-62db-4f97-a99f-60975bd59fa1.htm but there was never any usable answer to the question of splitting event handlers into other classes. I have a default Windows App that has a button and text box. ...Show All
Joeouts Blinking Cursor
Hi I have a textbox page in a web application. However the cursor isnt blinking when in it. (either its not blinking or blinking at a very fast rate). Its perfect in other pages , for eg. Google etc. I would like to know if i could do anythign regarding this and why this happens. Thanking you ASP.NET questions are off topic here, you need to ask this at www.asp.net . Good luck !! ...Show All
Yosi345 Dynamic Objects at Runtime
I have a class called class1 inherited from Object and has two methods called getName() and setName() //in my form form1: int x = 1; //in the body of the Button Handler i wrote { class1 aaa = new class1(); class1.setName( "aaa"+x.toString() ); x++; } now when i run the progrom and by clicking the button twice, 2 objects from class1 are gonna be created, how can i access th ...Show All
AddinDeveloper C# TO Excel HEADER ROW
I have a project that requires the user to be able to download a dataset from a Web application. I have all that seems to be operating properly except I seem to be missing the Header row from the downloaded file. When I populate objSheet the first row is not the Header row but the first row of data. How can I get the Header row from the DataTable //Convert Dataset DataTable dtExcelExport = dsBPMExcelExportIn.Tables[s1]; //Populate t ...Show All
