.net

.NET: Random number or number of free bytes in memory?

How can I get the number of free bytes available in memory, in .NET? Also, can you think of a potentially better random number beside new Random().Next(), DateTime.Now.Ticks, or available system memory? ...

Can anyone advice on a simple way to create SQL tables on the fly, using a CSV file upload in a .NET Web App?

Hi, I have checked a few answers but was unable to find specific details on how we can create a SQL table using custom metadata (or Columns from a CSV file) which is uploaded by a user through a CSV file. A feature available with www.dabbledb.com, like creating online database for custom information. It will be a web based .NET applicati...

Edit silverlight Sample

I use this Silverlight sample (Picture Gallery) in my project. I want to change Full-screen message but i can't find this message in source code. help me please. thanks. ...

Converting XML with mixed complex type elements into DataSets, and other DataSet limitations

This is a two part question. The first is a specific question about DataSets and XML. The second is a more general "am I taking the right approach" type question. While I'd certainly appreciate replies that answer both questions, I'd also welcome answers that only tackle one or the other! Question 1 Does the DataSet class support mixed...

Bit/byte conversion

How many bits is a .NET string that's 10 characters in length? (.NET strings are UTF-16, right?) ...

Winform Textbox CanGrow ?

I don't find a CanGrow property on the Textbox control. This is common in some other controls, and what it does is expand the control to acomodate more data. Anyway to get this feature in the TextBox? ...

S#arp architecture equivalent in Java

What’s the equivalent of S#arp architecture(.net) in the java world. A one stop package that encompasses all the best practices and well identified packages to start a web application project. ...

UAC - embedding manifest for .net

C++ projects have a linker option to embed manifest to require UAC elevation (/MANIFESTUAC:level) . Is there any such option for .net projects? ...

uniform way to get application path both for windows application and asp.net application

is there a uniform way in .NET to get application path (physical) both for windows applications and asp.net applications ?? ...

asp.net App_LocalResources folder.

I would like to have App_LocalResources folder outside web application folder, so that I could deploy updated resx files and web app. independent of each other. Reasons: We do not want to change current deploy tool. Any way to achieve this? ...

Removing delegates from chain

class Program { internal delegate int CallBack(int i); static void Main(string[] args) { CallBack callbackMethodsChain = null; CallBack cbM1 = new CallBack(FirstMethod); CallBack cbM2 = new CallBack(SecondMethod); callbackMethodsChain += cbM1; callbackMethodsChain += cbM2; De...

.Net basics and getting stronger

Hi, Can any one please pass me links of the basic of .net and its concepts.. i do google it.. still i cant find all the things. if you think some links are fair enough to get .net fine..please pass.. it will be nice Thanks lot GrabIt ...

Suspend System Shutdown for a period of time in C#/VB.net

Hi all, I have created a windows service in C# .net and now I want it to alert me if its going to shutdown. For this I make use of Dispose/Unload events but now I want if the services are stopping due to system shutdown process it will alert me. So is there any way to get access to system shutdown event and execute the set of commands ...

Managing multiple .Net-Frameworks on a webserver

So I'm in charge to deploy my project on the productive server where some other ASP.NET-Websites are also set up. The problem now is that I wrote my whole project under .NET 3.5 but on the webserver the current installation is .NET 1.1 as some of the other projects require them (don't ask me why, I can't figure it out either but my PM s...

Cocoa Core Data newbie how-tos

Hi everyone, I am one of the great unwashed masses of .NET developers keen to try their hands at Mac OS X development. At the moment I am trying to figure out the various elements of Cocoa and getting a bit stuck on Core Data. I noticed most of the documentation and resources available on the Web involve a broad end-to-end tutorial, be...

Parent get focus when child control requested it

Hi, I have a WPF UserControl (B) as a child of another UserControl (A). I have a situation where in some instances B requests focus but A actually gets the focus. Does anyone have any idea why this might be happening? Code in B to get the focus: log.Debug("Asked for focus."); //We expect the user to do a button press and therefore ne...

How to live stream webcam audio video together using udp port?

Hi Devs, i am developing an application in C# witch will be able to capture audio and video from webcam and MIC, then it will stream them together. I searched the www and found how to grab the webcam and audio using DirectShow.net. But now i can save them to hardisk as .avi file. How i can stream them together and again reproduce them t...

.NET - providing sign certificate with 3rd party libraries

Hi, I want sell some .NET library and I want provide "edition" with full source code. Should I provide the sign certificate with the source code or should users-developers sign it with their own? ...

Check if windows service has been forcefully shut down or crashed

I have a windows service written in C# .NET framework 3.5 and would like to know the best way to check if previous shutdown of a service was regular. Upon starting the service, there should be a check if the last shutdown was regular (via stop service button in services management) or if somebody just killed the process (or it crashed f...

Setup Requires .NET Framework Version 3.5

Hello, I have a C# Winforms application I'm looking to deploy on an XP Laptop with the .NET Framework 1.1 installed. The solution contains three projects, all with a target framework of .NET Framework 2.0 The setup project has the preqrequisite of .NET Framework 2.0 checked. No other prerequisites are checked. Why, when I try to run ...