.net

What parameters is Visual Studio running msdeploy with when executing "Build Deployment Package"?

I would like to execute msdeploy from a powershell script to create a deployment package, but i can't find out what parameters Visual studio is actually calling msdeploy with. ...

MSBuild BuildDependsOn target for release builds only?

I would like to add a build target to the BuildDependsOn, but I want it to only affect release builds. How do I do this in MSBuild? ...

how to connect my combox with textbox

i am working on VC#.net i have connected my combox with my database when the combox change's the value then my textbox should show the corresponding value in the textbox ...

Windows Mobile 6.5 - .NET CF connection management

Hello I'm developing a Win32 mobile application (.NET CF 2.0/3.5) that has to communicate with a WebService. The mobile computer will be used in places called "Dispatch" where good WLAN coverage is provided and company offers its own AP with defined SSID name. This means that the mobile computer must use those APs (knowing their SSID na...

TcpClient.Receive - truncated data

private static Socket ConnectSocket(string server, int port) { Socket s = null; IPHostEntry hostEntry = null; hostEntry = Dns.GetHostEntry(server); foreach (IPAddress address in hostEntry.AddressList) { IPEndPoint ipe = new IPEndPoint(address, port); Socket tempSocket ...

.NET 4 single application instance

I often write .net applications that only support one instance. Formerly I used .net-remoting and now WCF to detect if already an instance of my app is running and giving the focus to this instance. My question is, if there is with .net4 a better solution available to achieve single instance applications (or is there in general a bette...

error in connecting combox to textbox with database

i am working on C# .net platform i wanted to connect my combox to my text box this is code done by me but it is give me error private void comboBox2_SelectedIndexChanged(object sender, EventArgs e) { panel1.Visible = true; string sql; SqlConnection cn = new SqlConnection(); cn.Con...

Is it faster the List<T>.Remove(T) or List<T>.RemoveAt(int) method?

Is it faster the List.Remove(T) or List.RemoveAt(int) method in .NET collections? Is speed different for value types or reference types? Thanks, Alberto ...

What is the UITypeEditor for ToolStrip.Items?

Hi, I've had a long look through MSDN documentation and all I'm starting to think that this editor is defined as Internal only. I'm guessing it is similar to the CollectionEditor, though this does provide any ToolStripItem specific elements. [EditorAttribute(typeof(System.ComponentModel.Design.CollectionEditor), typeof(System.Drawin...

How many Bitmaps can I create in .NET?

.NET Bitmap class uses GDI+ I want to know how many Bitmaps I can create. Will memory leak when create too many Bitmaps? ...

When to use XamlWriter.Save() to serialize domain object?

What's the rationale (if any) of using XamlWriter.Save() to serialize a domain object? Please describe realistic scenarios. Thanks. ...

.Net Framework too big?

Every time a new feature like WPF comes along, it's added to the .Net Framework. Do you ever worry about disk space on the clients computer? Should I? ...

Stylesheets for .NET Windows Controls

Hello I was wondering is there any option of using Stylesheets for .NET Windows controls ? If not, which is the best way to make the UI look consistent.I need to use VS 2005 to make the changes in the UI. Regards ...

How to give error feedback during a drag operation?

I am trying to give some visual feedback to the user during a drag/drop operation. The feedback I'm struggling with is in the case where the drag target is somehow invalid for the type of data being dragged. I'd like there to be some feedback (during the drag) which displays a small message as to why the drag would be invalid. I am tr...

Build System for Targeting Multiple .NET Versions

What are common practices for designing a build system/project structure that allows targeting multiple .NET versions with different feature sets? Specifically: Should you branch in source control? Should you use conditional compilation? Should you derive interfaces, thereby versioning them? Should you create seperate "versionX" proje...

tar.gz using .net

I am a fresher to .net. is that possible to create a tar.gz using .net enviroment ? if yes how ? ...

Asynchronous approach to using streams with sockets

I've always built my own serializers/deserializers to be able to use BeginReceive/EndReceive with sockets to avoid using one thread per connected socket. It's a quite time consuming task. I've started to look at protobuf-net and want to used it with async sockets without having to write serialization/deserialization myself. I would pref...

Microsoft Asp.Net & IIS & server limits

How can I test my asp.net web application limits. User connections etc. And does my application is limited to server & IIS performance or what are the other factors? How can I host an application which will be used by millions of people? ...

ASP.Net Client-callback not working from ASCX control

I need to call ASP.Net server side code from the client. Because I'm in an ascx user control I can't use [webmethod] + PageMethods as this only works on ASPX pages. The next option that I thought would work was manually creating a client-callback. Using this method the client will successfully call the server code but the client will no...

Type map from System.Type to xs:type

Hi, Is there a standard (framework) mapping between CLR types and xsd type codes. I need to convert a string, int, decimal etc to the equivalent XmlSchemaSimpleType. I can construct the necessary simple type and use a case statement to do the mappings myself. I was hoping their might be a standard framework class that can either constr...