|
Also posting it in the correct forum might help.
|
|
|
|
|
Hi,
I have doubt by using Shadowcopying. Please anyone give samples and explanation how shadow copy is working in .net windows forms using c#.
Thanks,
kokila.
|
|
|
|
|
If I understand your question correctly:
Any copying creates a copy of an object so that you can re-use it. The difference between shallow and deep cloning is that generally in Shallow copying only the value properties of the object you're copying are copied, e.g:
You have an Employee object which contains the properties Name and Manager where Manager is of type Employee . Then when you do a shallow clone a new Employee object is created with the same Name but Manager still points to the original Manager object. If you Deep clone it then a copy of the Manager object referenced by Employee is also made.
So basically:
Manager 1:
Name = "Bill"
Manager = <code>null</code>
Employee 1:
Name = "Bob"
Manager = Manager 1 If you shallow clone you get:
Employee 2:
Name = "Bob"
Manager = Manager 1 If you deep clone you get:
Employee 2:
Name = "Bob"
Manager = Manager 2
Manager 2:
Name = "Bill"
Manager = <code>null</code> Note that if you deep clone the copying of objects is recursive (I think) so if Manager 2's Manager was not null then a copy of Manager 2's Manager would be made as well.
The Welsh will always support two teams: The Welsh, and anyone playing England
|
|
|
|
|
You asked the same question 22 hours ago. Why not look at the responses you received rather than re-ask the same question.
|
|
|
|
|
Hi Mark,
i have seen your response but you didn't give any samples. so i asked any samples from you. But you didn't reply. so i put new messagge.
Thanks,
kokila.
|
|
|
|
|
kokilambal.p wrote: so i put new messagge.
Repeatedly putting up the same message is a wonderful way of getting people NOT to help you
|
|
|
|
|
how to show a tool tip in PropertyGrid control? By default, a tool tip is shown with the name and value. my problem is, am not able to show any other content in the tool tip.
Thanks in advance
|
|
|
|
|
Hello Somanna,
Unfortunately, I don't think there is a way to customize the content of the MS PropertyGrid tooltips...
Best regards,
Nicolas Cadilhac
Smart PropertyGrid.Net @ VisualHint - www.visualhint.com
|
|
|
|
|
I'm trying to do something that seemed to be very simple, but for some reason I can't find any code or documentation to help me.
What I am trying to do is compose a message, send it to Outlook and then get the user to see that message and be able to edit it (just like if they typed the message, but in this case, the system 'typed' it for them).
Just to be clear: I don't want Outlook to send the message yet, I want the user to be able to edit it prior to sending.
|
|
|
|
|
Outlook has plenty of command-line options. One of them may do what you want, I ran across something sometime ago where you can specify the email address, subject etc on the command-line. Just google for "Outlook command line".
An alternative, could you create the body of the email using the framework classes, save the email to somewhere on disk (e.g. temporary folder) and then open outlook with this file.
The Welsh will always support two teams: The Welsh, and anyone playing England
|
|
|
|
|
Hi
I want to see the list of all embeded resources available in the assembly in debug watch window. I am searching for it, but not able to locate it quickly.. can anyone please help me and let me know where i can find it?
thanks
|
|
|
|
|
in continutation to the last post, I am using following string to get the resource names,
GetType().Assembly.GetManifestResourceNames()
Thanks
|
|
|
|
|
hi
i was posted how to run first exe before main exe.anybody can't reply me correctly .
but i have suggestion . that is i want to megre 2 exe files and make 1 exe file and when end user run reuslt file both files run.but how to do that . (i was merge 2 exe in 1 exe but when i run result file only 1 exe run .. i used binary reading and writing )
How to Solve My Problem ?
|
|
|
|
|
You must write a third application that start first and second program.
Process.Start("first.exe");
Process.Start("second.exe");
|
|
|
|
|
Hi,
I have a System.IO.Stream, now I want to get all data from that stream into a Byte array!
I try with the ReadToEnd() but it return the String type (=>problem with image data). I try to read the length of the stream, but it return -1. If I read byte to byte, it's OK but my program will be slow!
How can I do?
Thanks,
Hung.
Hung
|
|
|
|
|
Try the Stream.Read method[^].
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
www.troschuetz.de
|
|
|
|
|
Hello
Try this:-
string input = MyStream.ReadToTheEnd();
byte[] ByteArray = System.Text.Encoding.Default.GetBytes(input);
Regards
|
|
|
|
|
In ASP.NET i have one application. I need to run a report from that app to consultants at every weekend and monthend it should work automatically when system starts.
I need to schedule it in windows service and other retriving queries for this in web service in asp.net. how to do this. how to call windows service from webservice.
Thanks
Prya
|
|
|
|
|
Why you put burden of retrieving queries to windows service, rather you can put report data from windows service in db, and let web service directly fetch reports from db to service to asp.net page without interrupting windows service.
Regards,
Ketan.
|
|
|
|
|
Actually i want only the scheduling in windows service. other works i have to do in asp.net. so i thought it is better to use web service and easy to access the windows service from web service. i dont know how to call. Thanks.
Regards,
Prya
|
|
|
|
|
Hi all,
here's a part of the code im tryin to use
"WHERE PSCustID LIKE '"+ txtSearchString.Text +"%'";
and i got error when running it...
am i doin it right?
tnx in advance
-::maximus::-
|
|
|
|
|
What's the error that you are getting?
-- modified at 2:52 Thursday 6th July, 2006
|
|
|
|
|
An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll
-::maximus::-
|
|
|
|
|
Hi..
The part of the SQL statement that you've sent seems correct...You need to get a specific error to understand what exactly is going wrong..
You can do one thing, use Try-Catch to handle the exception.
Try
//code
Catch ex as OleDbException'
MessageBox.Show(ex.Message)
End Try
|
|
|
|
|
ok tnx, ill try it.
-::maximus::-
|
|
|
|