Hello,
Is it possible to save some fields in the program, or do I have to write them to a file?
Example:
1) I open a file (with OpenFileDialog) and put it in a FileInfo
2) close the program
3) restart the program
4) go to open -> recent -> select the previous File
Thanks
...
I'm building a service that returns an XML (no SOAP, no ATOM, just plain old XML). Say that I have my domain objects already filled with data and just need to transform them to the XML format. What options do I have on .NET?
Requirements:
The transformation is not 1:1. Say that I have an Address property of type Address with nested pr...
Hi,
I would like to use at the same time multiple columns and scrollbar with FlowDocument. Is that possible ?
Actually, I can only have multiple column in page mode but no scrollbar.
Thanks !!
...
Hello,
I'm the only one among my people who navigate in .NET water, the rest is in the Java world. So, I'd like to have some common points to talk with them. What are the equivalent concepts in Java for: (by concept, I mean the purpose of such technology)
Visual Studio
IIS
Linq
Development server that ships with VS (I don't know the n...
Dear ladies and sirs.
Right from the start I wish to emphasize that my question has nothing to do with localization. We have a product consisting of multiple .NET projects. Some projects have *.resx files, some have XAML files. Either contain strings, which are presented to the end user. At some point, all these strings will be translat...
Dictionary<string, int> testdic = new Dictionary<string, int>();
testdic.Add("cat", 1);
testdic.Add("dog", 2);
testdic.Add("rat", 3);
testdic.Remove("cat");
testdic.Add("bob", 4);
Fill the dictionary and then remove the first element. Then add a new element. Bob then appears at position 1 instead of at the end, therefore it seems to ...
Server:
Host h = new Host();
h.Name = "JARR!!";
TcpChannel channel = new TcpChannel(8080);
ChannelServices.RegisterChannel(channel);
RemotingConfiguration.RegisterWellKnownServiceType(typeof(Host), "Server",
WellKnownObjectMode.Singleton);
Client:
TcpChannel chan = new TcpChannel();
ChannelServices.Register...
Hey
I am working on a big .NET project. I am currently creating an automated minifier for JS and CSS files using YUI compressor. After doing some research, I found that the heaviest files in the project are actually .NET resources (Like MS ajax file). They are very big and unminified.
I am wondering, is there any way to minify them?
T...
Hi,
I have a range of cells the I retrieve from excel and I want to know how to get the colour of the cells in a column (all the cells are different colours). So far I have:
Range range = sheet.get_Range( "A1", "D10" );
Which gets me the data I need into an object array but I want to be able to iterate through the rows and get the ce...
I'm experiencing the problem outlined in this kb article. http://support.microsoft.com/kb/927917 . Sorry I can't hyperlink cos i don't have enough points!
"This problem occurs because a child container HTML element contains script that tries to modify the parent container element of the child container. The script tries to modify the pa...
Following on from my last question here
OpenXML looks like it probably does exactly what I want, but the documentation is terrible. An hour of googling hasn't got me any closer to figuring out what I need to do.
I have a word document. I want to add an image to that word document (using word) in such a way that I can then open the docu...
As CrouseControl.net is an open source software and it is a good CI tool, I'm going to create a UI which make configuration easier than tricking XML.
So What are the considerations and necessities. I also need to know about any documentation which may help me to implement UI.
like a XML tag refrences or something else.
any help will a...
This is the same as this question, with one remark:
We manage to get the printerSettings modified, but how can we save them back as the default printer settings? (the original question does not post/answer this)
The code I'm using right now:
<DllImport("winspool.Drv", EntryPoint:="DocumentPropertiesW", SetLastError:=True, _
ExactSp...
How can i apply paging to a dataset? I have a method in wich i dynamically build a table from a dataset. Querying the database from wich i get my dataset from is not an issue but iterating the datarows from the dataset is slow.
To increase performance when loading a page containing a lot of datarows i wanna apply paging ability.
A feat...
Given this MSDN article, we learn that the Common Type System in .Net has this classification of reference types:
"Reference types can be self-describing types, pointer types, or interface types.
The type of a reference type can be determined from values of self-describing types. Self-describing types are further split into arrays and ...
Hi,
Looking over some older code, I've run into a strange namespace error.
Let's say I have two projects, HelperProject and WebProject. The full namespace of each - as given in application properties - is myEmployer.HelperProject and myEmployer.Web.WebProject.
The pages in the web project are full of statements that use classes from t...
hi.
I used the following code to verify the single instance of application. On Win XP X86 it is working fine, but on X64 after 3 to 4 minutes System generates StackOverflowException and causes the application to hang. after removing this check application is working fine..
Please tell me what should be the reason.
code is
static voi...
Hi,
I have a .net service that processes messages. For any failures, i use log4net and write to a file. I added an SMTP appender for this. The issue is that I only want to send one email when something goes wrong. The MaxRetries in my app.config is set to 5 and this is correct, 5 errors are logged in the log4net file but 5 emails are al...
i try to develop a windows service. My win service must run if windows 7 stars up. How can i do?
...
What is the optimal way to write the code which interacts with DB using linq2SQL? I need to add some business logic to the entities. So I guess there are two ways:
Write some wrapper class. The
main minus is that many fields are
the same, so i don't feel it as DRY
style.
Add business logic methods
to linq2sql entities(these classes
ar...