I've tried to develop a simple winform utility which is using xml file as its database. I've used VS 2008 express edition, C#.
When this utility tries to write into the xml file then this error is displayed on other computer. I've tried to provide System.Xml.dll & System.Xml.Linq.dll in the same folder on the other computer but no use.
...
I want to create a C# app which rests in the system tray.
However, I would like this application to overlay certain graphic elements / drawing on top of the screen above all windows at certain times.
So, for example, while my application is running, even though minimized to the tray, it will draw certain shapes on top of the screen r...
Hello
How do i use excel formula AUTOSUM for a range of columns in .NET
for ex: i need something like this.
Item Quantity
----------
A 10
B 20
----------
Total 30
Thanks in advance
...
I need to determine the clients .NET framework version in my web application. I'm running in partial trust so I can not read the filesystem or registry (Is there an easy way to check .net framework verison using C#?).
System.Environment.Version returns the runtime version, so I can not use that.
I cannot use javascript
The only way I...
I'm writing a .NET service that monitors application pools. based on specific triggers I'm restarting them.
However, I do not want to restart them if the trigger occurred before they were recycled for the last time. How can I know the "last recycle time" of an app pool?
...
I want to parse the html file, pdf file, csv file and text file.Now parsing for which type of file (specified above) is easiest and efficient ?
Because I want to parse pdf ,html ,csv and text file through common parsing code if possible.
And now suppose if parsing for html is easiest and efficient then :
I will write the parsing code...
Hi,
I will develope a programm that:
connect 2 PCs
1 will be server, 1 will be client
Language C#.net 2.0
like a chat
Con somepne give me a start-howto or something I can read, how I can connect 2 PCs aand send text messages to each other?
I will not use .Net 3.5, of severeal reasons.
...
I have a DGV with columns "code" and "name".
Depends of lenght of a code I want to add tabulation to the "name" cells, to show structure of a data.
Like that in this picture:
How is it better to do? I think there is a better way then just loop for all rows and add spaces in front of names, right?
...
Anyone know why only undirectional serialization is supported in the Linq designer?
Consider the following example:
Say we have a Customer who requested an Order containing Products. We set the Serialization Mode in the Linq designer to Unidirectional to enable serialization.
When looking at the code for the Order object, the DataMem...
I have to submit subscription data to another website. I have got documentation on how to use this API however i'm not 100% sure of how to set this up. I do have all the information needed, like username / passwords etc.
This is the API documentation:
https://www.apiemail.net/api/documentation/?SID=4
How would my request / post / wha...
There is the same question listed under
http://stackoverflow.com/questions/427007/the-key-userid-does-not-exist-in-the-appsettings-configuration-section, but unfortunately none of the answers worked in my case.
All was working fine, I checked everything in and when I opened the solution again, it started crashing on the above. I cannot...
Here's the code that I use to extract the icon size that I want:
Dim i As Icon = My.Resources.Spectrum
Using i2 As New Icon(i, New Size(256, 256))
Me.PictureBox1.Image = i2.ToBitmap
End Using
This works from 16x16 up to 128x128 but for 256x256 it extracts the 128x128 icon. I tried 0x0, because I seem to remember th...
I have an Oracle function returning record defined in the package, so one can do:
select a,b,c FROM my_function(...);
Calling this oracle function from .NET is as simple as executing normal sql query.
Unfortunately the function has to do updates now and when it is called like this Oracle complains that updates are not allowed within ...
I want to parse the tabular information from a .pdf file,and want to display that tabular information in a datagridview in C#. What choices do I have?
...
Hi everyone
I'm really hoping someone can help me out with this one. When debugging in Visual Studio, sometimes I add a breakpoint but it's hollow and VS says "The breakpoint will not currently be hit. The source code is different from the original version." Obviously this prevents me being able to debug.
What on earth does the message...
I try to use stream.DataAvailable to judge if it is finished,but sometimes the value is false but after a little while it is true again,i have to set a counter and judge the end by the symbol '>' like this
int connectCounter = 0;
while (connectCounter < 1200)
{
if (stream.DataAvailable)
{
while (stream.DataAvailable)
...
I have an application that uses a file to store its data.
I store the location of the file in the app settings so have two tests at startup:
Do I have a setting for the file and
Does the file (if I have a setting) exist
If I fail either test I want to prompt the user for the file location - the mechanics of the are not the problem,...
I had a problem highlighting text in a pdf file embedded in webbrowser control and highlighting text using PDFLibNet.pdfwrapper so i'm shifting to another process where i'll just convert the pdf to html so i can manipulate the source code to highlight text.
How can i convert pdf files to html files? Is there a better way?
Thanks,
Je...
public sealed class SurrogateSelector : System.Runtime.Serialization.SurrogateSelector, System.Runtime.Serialization.ISurrogateSelector
{
System.Runtime.Serialization.ISerializationSurrogate ISS = System.Runtime.Serialization.FormatterServices.GetSurrogateForCyclicalReference(new SerializationSurrogate());
public SurrogateSelecto...
Hi,
I was just after peoples opinion on when the best time to save an object (or collection of objects) is. I appreciate that it can be completely dependent on the situation that you are in but here is my situation.
I have a collection of objects "MyCollection" in a grid. You can open each object "MyObject" in an editor dialogue by dou...