"If both of us are having one apple each and we exchange it, at the end we both will have one apple each. BUT if both of us are having one idea each and we exchange it, at the end both of us will be having two ideas each."
You're using the wrong class. StreamWriter is used for writing character data to streams. To save an image to a file, you need to use a class that will handle a binary stream of data. FileStream[^] is the most appropriate class to use. Your code would look like:
You can do that by having a "manager" class that manage the child form.
1. Caller call a method in the manager, given the type of the form that you want to open.
2. Manager check MdiChildren of that type, if it finds it, return the form object back to caller.
3. If manager not able to find it, then create a new instance via reflection, then return back to caller.
4. Caller receive the form, do necessary action on the form (pass object, show, etc)
You can mix it up a bit by having some form can only be opened as 1 instance, while other form can be opened multiple time, by adding customattribute to the form class or adding an "AllowMultiple" via subclassing Form.
thanks but, may i know how is actually API SPY 2.7 work? when we use mouse to mouseover others windows form object, it will show the object handle, text, class and so on. it zit related to as what you hav mentioned background processes?
I want to drag one picture from my HTML browser(e.g. IE7) and drop it to my windowsApplication.
In final address of picture(e.g. "Http://www.tinypic.aaaaaaa.jpg") appear in windowsApplication.
I would be very thankful if anyone provide me Sample.
hi guys ....im just intresting in serial port programming one simple one i want try now just connecting one gang way switch to PC via serial port.
when switch was pressed, application should display "switch has been pressed"
I just want to add several controls at runtime like dropdown list, text box abd button. And, when we click the button again one row will be added with the set of controls likewise.can anyone please help me?