You'll have to delete it from the Xml yourself. Presumably you know how to do this, we certainly can't help since you havn't provided any information as to how you're storing and/or reading/writing the data to the file.
I have no idea what I just said. But my intentions were sincere.
What XML? If you are using WPF and have "hard coded" the nodes in the Xaml, they will always be there on restart (they represent "initial conditions"). If you are building the tree by reading some other xml file, you will have to write code to do this...
The problem is this that im setting these 4 properties from my application via comboboxes
[ 1 COM Port
2 Baud Rate
4 SopBits }
when the user selects the values from the combo boxes i want the value is also saved in the system as a default value
for example if one selects baud rate 9600 from the combo box so at the same time the system baud rate is also changed to 9600 same as if i change other values it is saved to the system
Could any on help me
This may seem a stupid question to you, but i wanted to know that i downloaded the .netframework 3.0 and an addon for Visual stidio express C#, but its not giving up any visual development environment. how will that activate. Please guide..
int stride = bmData.Stride;
byte* p = (byte*)(void*)bmData.Scan0;
for (int y = 0; y < imtooperated.Width; y++)
for (int x = 0; x < imtooperated.Height; x++)
blah.Add(p[range]); //here error comes
p += 1;
p += stride;
You can use the Quality encoder parameter, which works only with the JPEG encoder. Here's how to specify a quality level when saving an image:
//Get all the image encoders and find the one for the JPEG format
ImageCodecInfo codec = null;
foreach(ImageCodecInfo c in codecs)
//Create a list of encoder parameters with space for a single entry
EncoderParameters encoderParams=new EncoderParams(1);
//Create a parameter to pass to the codec, with the category "Quality" and //the desired quality value (where 100 is 100% quality)
EncoderParameter encoderParam=new EncoderParameter(Encoder.Quality, 90L);
//Add the parameter to the list of encoder parameters
//Save the bitmap using the JPEG encoder and the parameter list
Unless the TIFF file uses JPEG compression (which is possible, but kind of pointless), the compression is lossless. That means that you can not change the quality of the compression as the compression does not make any quality compromises.
Unless you specifically need the TIFF format, you could try the PNG format instead. It is also lossless, but compresses a lot better. If you want lossy compression, use the JPEG format.
It doesn't work that way. Well, it's possible using server push, but that requires that you start a component in the browser that establishes a permanent connection between the browser and the server, and even then you would have to re-attach it to the running process on the server.
Normally everything that you send between the server and the browser is initiated by the browser. The server can not send anything to the browser unless the browser is first sending a request to the server.
You can use AJAX to poll the server at a specific interval, so that the server could respond with the result. The running threads would have to store the results in a static list, so that the AJAX request could pick up the lastest result from a specific thread. You would also have to give each thread a unique identifier to identify the results, and keep the identifier in the page, so that it could be sent in the AJAX call in order to pick up the result from the correct thread.
Cookies are not used for authentication, they are used to maintain settings between sessions. That's not really the same thing. You can make a cookie keep authentication settings, but at the point of login, your authentication system will verify those details, all the cookie provides is persistence.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
Last Visit: 31-Dec-99 19:00 Last Update: 2-Feb-23 20:31