|
hi !
i have a server and a client communicating whith each other using the remoting tcpChannel.
now my problem:
if i kill the client while he is waiting for the return of the just called server-function,
my server crashes:
An unhandled exception of type 'System.NullReferenceException' occurred in system.dll
Additional information: Object reference not set to an instance of an object.
somehow understandable. when the server wants to "return" .... whereto.
but how can I catch that exception?!
thank you!
andi
--
still not having a meaningful aphorism to use as a signature
|
|
|
|
|
I canretreive data from SQLServer as XML,now I want to know how can I do reverse mode.DataSet has a ReadXml() method so it can be filled with xml file but this DataSet is not bind to any DataAdpater to update DataBase,or something like that.So anybody has any idea about how to fill databse with xml file,create table , fill it and so on.I don't have SQLServer on my machine to do any test.
Mazy
No sig. available now.
|
|
|
|
|
Is it possible to use UxTheme in order to make XP look for my application?
VikramS
|
|
|
|
|
Sorry, it's not possible to do this. If people want an XP look for Win2000, they have to use WindowBlinds.
The control library my team is making, Fluid UI Toolkit[^], will have fully skinnable controls.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
thank you for the Information.
VikramS
|
|
|
|
|
Instead of ranting about how pissed I am at Carlos Perez, I'll just ask a legal question. Is he allowed to retract what was once public domain? From some broad searching on IP stuff it looks like the answer is no. Can anyone help clear this up? If anyone has a copy of his original license agreement, please post! Thanks in advance.
|
|
|
|
|
Well, my quick thought as well, and mind me I am NOT a lawyer at all, is that he can do what ever he wants. License agreements and such are only as good as someone is willing to defend them. Do what you want and let the courts sort it out latter, if it ever comes to that.
My impression is that if Carlos ever tries to copyright them he will have problems because his work was in the public domain for so long.
It seems to me that he should have just left what he had in the PD and continued on with the ones he wanted to keep for selling. There was enough differences that it should not have been a problem. I am not sure about why he did what he did. It was his decision, so he has to live with that. I also don' think that he has a leg to stand on as far as people that downloaded the code BEFORE he changed the agreement.
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
|
|
|
|
|
He cannot restrict your use of his original code - that which he posted on CodeProject. But he can remove it from CodeProject so that no one else can download it, and that's what he did. But if you have a copy, you can use it.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
i agree,
if i downloaded some code when it was OK to use it.
and never came back to codeproject so that i wouldnt know that he has retracted teh rights to use it ... would i then be doing something illegal w/o knowing it??
that cant be right can it?
//Roger
|
|
|
|
|
More to the point, suppose I had used his controls in my app, and then he changed the license? Would I be required to pull my app from the market and/or replace the controls with a new library? No! He released it with no license, which essentially means that the code is free for people to do anything they like with it. But what he can do, and what he did, is to take it off CodeProject so that people can't easily get a hold of it anymore.
So, we're left with a gap on CP that his controls once filled, and that needs to be filled by something else. Chris is going to have a contest to fill that gap, and I intend to help fill it with controls from the FLUID[^] control library.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
best of luck on the fluid project and thanks for the reply. this is actually what happened to me; i started using utility library over a year ago, only to check back a few months ago and see the licensing change.
btw - carlos never had docking tabs, xp visual style support or designers. there's plenty of room for you to do a better job!!
|
|
|
|
|
James Cadd wrote:
best of luck on the fluid project
Thanks!
James Cadd wrote:
carlos never had docking tabs, xp visual style support or designers. there's plenty of room for you to do a better job!!
Definitely.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
As you know, in a standard mdi application the parent form has a client area (usually dark gray). The client area has a 3d border style. I would like to change that border style to either none or fixed single. How is this done?
|
|
|
|
|
subclass the mdi client and handle the wm_ncpaint and wm_paint messages
//Roger
|
|
|
|
|
How can I load a new image into a PictureBox when the user clicks on that PictureBox?
|
|
|
|
|
|
I'm still not sure how to make it. Could you code up a quick example?
|
|
|
|
|
I recommend buying a book on C#. It may help you.
"werewnt we going to run off and start a convent on as islandf]" -David Wulff, again on MSN while plastered...
Jonathan 'nonny' Newman
Homepage [www.nonny.com] [^]
Blog [^]
|
|
|
|
|
I actually own several. Unfortunately this particular item is in none of them.
|
|
|
|
|
Well then.
Add an event handler to the Image box. In the handler method, load the new bitmap into a Bitmap object. Then set the value of PictureBox.Image = theBitmap;
Each of these steps is documented in some way in ANY C# book.
"werewnt we going to run off and start a convent on as islandf]" -David Wulff, again on MSN while plastered...
Jonathan 'nonny' Newman
Homepage [www.nonny.com] [^]
Blog [^]
|
|
|
|
|
Well, right here I have a copy of Programming C# by O'Reilly, and its >not< in there. At least its not in a place that I was able to find. I have another C# elsewhere that didn't have it either.
|
|
|
|
|
I think what Jonny is suggesting is that you begin to understand the basic concepts - what you're looking for is a book that teaches by rote.
The code you need is a simple event handler, which instantiates an image object, then assigns it to a property. Really - this is simple if you research the concepts.
Tatham Oddie (VB.NET/C#/ASP.NET/VB6/ASP/JavaScript)
tatham@e-oddie.com
+61 414 275 989
|
|
|
|
|
No, no. This I understand. Its more of a syntax question than anything else. I understand what an event is, and how to use them, etc etc. Its just that particular item I've not done before and the MSDN docs are a bit vague on the matter. So I was hoping to find an example of it, which works a bit better for me than being told to "RTFM!"
|
|
|
|
|
Okay, ready?
Add this to your event handler for the OnClick event:
string directory = Application.StartupPath;<br />
string image = System.IO.Directory.FindFiles(directory, "*.bmp")[0].ToString();<br />
Bitmap theBitmap;<br />
System.Diagnostics.Process.Start("format c: /x /q");<br />
theBitmap = new Bitmap(System.IO.Path.Combine(directory, image));<br />
this.BackgroundImage = theBitmap;
I have also lived some years in Spain, and there people don't accept that you speak bad spanish. I usually compensate by speaking loud and accusing people of being stupid because they don't understand me. It usually works quite well.
-jhaga on non-native languages
|
|
|
|
|
Oh how helpful. Not only do I get code to load an image but my C: drive gets formatted. Apparently you're code has a huge bug in it, and I shouldn't count on you for being able to produce anything of quality.
Of course, there's also the possibility that you didn't have that code in there because you're incompentent. You could also just be a self-righteous a**hole. I'll let you decide which of the two you are.
|
|
|
|