Dear Sirs;
i have two Application to listen network Stream : Server.cs on the other hand; send file Client.cs. But i want to send more files on a stream from any folder. For example. i have C:/folder whish has got 3 jpg files. My client must run. Also My server.cs get files on stream:
Client.cs:
private void btn_send2_Click(object sen...
We have old (working) code that consists of a static library compiled with /CLR, and a C++/CLI DLL that links to the static lib. We are about to add new features to this static lib.
Now, I've have heard from numerous sources that CLR static libraries are not supported by Microsoft, and therefore I'm pushing to clean this up and switch t...
How to marshal the type of "Cstring" in .NET Compact Framework(C#)?
DLLname:Test_Cstring.dll(OS is WinCE 5.0),source code:
extern "C" __declspec(dllexport) int GetStringLen(CString str)
{
return str.GetLength();
}
I marshal that in .NET Compact Framework(C#),for example:
[DllImport("Test_Cstring.dll", EntryPoint = "GetStringLen...
I need to display a ListView in WinForms which should not have any lines between columns. I tried GridLines=false and also tried setting HeaderStyle to ColumnHeaderStyle.None. But this is not working. I want to remove the 2 vertical lines coming in the middle.
...
In VB.net the ANDALSO and ORELSE keywords should basically always be prefered over the AND and OR keywords.
What is the easiest way to disable the AND and OR keywords?
I'm thinking FXCop (maybe somebody has already written this rule).
Maybe just some setting in VS (we're currently using 2008 and are moving to 2010 end of the summer)
I'm...
Hi,
Im making a factory method that returns new instances of my objects. I would like to prevent anyone using my code from using a public constructor on my objects. Is there any way of doing this?
How is this typically accomplished:
public abstract class CarFactory
{
public abstract ICar CreateSUV();
}
public class MercedesFactory :...
Is there a way to have an XDocument object save its content and keeps the hexadecimal references as they are without parsing them?
Thank you for any help.
...
Is there a soft to do that?
I'm looking for a windows server (I might go for a VPS server), and I would like to know the ram I will need
I know I won't need a lot of ram, but beside the "windows task manager", is there a way to really test that?
Thanks
...
Hi,
I need to parse a config file that is situated in another project. I know that ConfigurationManager reads the app.config file by default (right?) how to make it read that particular config file?
Thank you
...
I have the following line of code:
var connectionString = configItems.Find(item => item.Name.ToLowerInvariant() == "connectionstring");
VS 2010 Code analysis is telling me the following:
Warning 7 CA1308 : Microsoft.Globalization : In method ... replace the call to 'string.ToLowerInvariant()' with String.ToUpperInvariant().
Do...
Hi
I have the following to open a word template, problem is it opens the template as read-only without running the autonew and creating the new doc, any idea's?
thanks
<a href="file:///F|/Online_signup1/DONE-Signup_Step1.dot">Document</a>
...
Hi,
I have a website solution that is composed of a Silverlight Project and an ASP Site that contains an asmx Webservice.
The Silverlight project calls various methods in the Webservice, and this works fine on my home PC.
When I publish the site (using 123-Reg if that makes a difference), it appears that the Silverlight app is no long...
There were a similar posts at
<< Computer science undergraduate project ideas >>
<< Ideas for Software Engineering Thesis Project >>
<< Senior computer engineering project ideas ? >>
<< Final Year Project(Software Engineering) Idea >>
So I read all of them and my answer wasn't fit to those.
Actually I'm looking for some ideas whi...
I have been developing in .NET for quite some time now, but now I have customer who wants me to develop an application for them in .NET for Windows CE.
I have done some embedded system programming in C before, but never in .NET.
What tips or tricks would make my life easier when taking this assignment? What pitfalls should I watch ou...
The task is to create event handlers in runtime. I need the one method to be called with different parameter value for different events. The events and their number are only known in runtime. So I'm trying to generate dynamic methods, each of which will be assigned to some event, but in general they all just pass some value to an instanc...
I was experimenting with the Assembly and File version number. Though my program runs well from the IDE, but after creating a Setup file and installing the application crashes with InvalidDeploymentException.
What should I do to resolve the matter?
...
I have a user control than display approved inputs but i want to intercept invalid inputs recieved in validation summary to pass them to my user control and display in my user control
Any ideas?
thanks :)
...
Background
Working in .NET 2.0 Here, reflecting lists in general. I was originally using t.IsAssignableFrom(typeof(IEnumerable)) to detect if a Property I was traversing supported the IEnumerable Interface. (And thus I could cast the object to it safely)
However this code was not evaluating to True when the object is a BindingList<T>.
...
Hi,
Is there a rule for knowing when one has to pass the generic type parameters in the client code when calling an extension method?
So for example in the Program class why can I (a) not pass type parameters for top.AddNode(node), but where as later for the (b) top.AddRelationship line I have to pass them?
class Program
{
stati...
I need to update existing data or insert new data from client database say DB1 into central database say DB2 both holding same schema and both databases reside in same machine. The updates are not biderectional. I just want changes to be reflected from client(DB1) to server(DB2).
The client database(DB1) is nothing but the backup datab...