.net

MouseEnter and MouseLeave events from a Panel and its child controls

I have a Panel that contains child controls. If i handling the Panel's MouseEnter and MouseLeave events, and his child's MouseEnter and MouseLeave events, here is the order of raising: Panel.MouseEnter Panel.MouseLeave Child1.MouseEnter Child1.MouseLeave Panel.MouseEnter Panel.MouseLeave but i need the following order of raising: Pa...

Nesting Levels in Custom Section Handlers in .NET Configuration Files

I know I can have 1 parent element and 1 child element in my own custom app.config section like so: <sectionGroup> <section> <element /> </section> </sectionGroup> My question is, can I have one or more levels of nesting more than this? Like so: <biggestSectionGroup> <biggerSectionGroup> <sectionGroup> <section> <elem...

.NET Sockets Buffer Overflow No Error

I have one thread that is receiving data over a socket like this: while (sock.Connected) { // Receive Data (Block if no data) recvn = sock.Receive(recvb, 0, rlen, SocketFlags.None, out serr); if (recvn <= 0 || sock == null || !sock.Connected) { OnError("Error In Receive, recvn <= 0 || sock == null || !sock.Conne...

How can I reference classes in a .net executable?

IL disassembler shows classes in a .Net executable that I would like to use in my project. How could I use those classes from my own project? ...

MagicLibrary.dll 32bit convert for 64bit

I recently received an email about a guy who like to make my software compatible with 64Bit Windows 7 OS. I have 1 single problem though .. I have followed a steps regarding on compiling VS Solution/Project for 64bit. But when I start to to compile the solution for 64bit, this "Crownwood.Magic.Forms" (MagicLibrary.dll) doesn't work anym...

Know if a Visual Studio Website project is recompiling itself in the background?

A number of team members update a central ASP.NET dev Website project, not a Web application type). Some kinds of changes cause a recompile/rebuild in it. The large website takes a while to recompile and we've noticed it will still seemingly serve out dynamic pages before everything is internally updated. During the site's "gestation" p...

Are you as productive in Javascript as you are in .Net or Java?

I code primarily in javascript and in vb.net. I've found that if I can achieve the same thing in both javascript and vb.net that I feel far more productive and expressive using javascript for the task. I often find myself researching server-side javascript implementations to see if anything has gone mainstream so that I can code my bac...

Change dropdown size for .NET touchscreen application

I'm trying to create a .NET touchscreen application. I would like to be able to create a large dropdown. By increasing the font size, the button stays the same width but increases in height, meaning it's long and thin. Is there a way to 'scale up' .NET controls so they are large in size for touchscreen applications? ...

Question about how to use strong typed dataset in N-tier application for .NET

I need some expert advice on strong typed data sets in ADO.NET that are generated by the Visual Studio. Here are the details. Thank you in advance. I want to write a N-tier application where Presentation layer is in C#/windows forms, Business Layer is a Web service and Data Access Layer is SQL db. So, I used Visual Studio 2005 for this...

How can I create a MethodInfo from an Action delegate

I am trying to develop an NUnit addin that dynamically adds test methods to a suite from an object that contains a list of Action delegates. The problem is that NUnit appears to be leaning heavily on reflection to get the job done. Consequently, it looks like there's no simple way to add my Actions directly to the suite. I must, inste...

ORM For .Net ON Oracle

I'm gonna start a new project soon, using .Net 3.5 and Winform on an Oracle database. We were planning on using an ORM. NHibernate was suggested by our architect. Since I'm personally more familiar with Entity Framework, I thought it would be easier to use than NHibernate. But since there isn't any official provision from Oracle, we are ...

WCF http & hhtps endpoint one contract

Hello colleagues. I've created wcf service and want use http and https version. Service is hosted by IIS 6.0. At my config I have: <bindings> <basicHttpBinding> <binding name="BindingConfiguration1" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"> <readerQuotas maxDepth="2147483647" maxStringContentLeng...

Settings aren't saving in WPF?

I'm using the registry Settings.settings thingymabob I'm doing the following in my XAML: <TextBox x:Name="textBoxUsername" Text="{Binding Source={x:Static prop:Settings.Default}, Path=Username, Mode=TwoWay}"></TextBox> This is loading the settings fine. Now in my Window's Closing event I have the follow...

Dropbox.com API for .NET

Hi, I'm looking for an API to work with dropbox.com from .NET. ...

problem with treeview

I want to configure a treeview so that when all checkboxes of a parent are checked, then the parent checkbox is checked. And when all checkboxes are unchecked, the parent checkbox is unchecked. Does the treeview class have a standard property for that? ...

Reusing datasource

I'm tying to use one database call and reuse that data for other controls - without having to do another call. Scenario: I call the books table which returns all the authors and titles. I create an author's list control called list1 to displays all the titles by Shakespeare and a list2 to display titles by Charles Dickens. Void Bindme(...

read files in linux from .net program?

I need to Read files form Linux , copy them into the another computer(Windows operation) and even delete file in Linux. but I want do this with .net program.!!! these file have a specific location. I need code sample or article for doing that. ...

Where to maintain common information, that could be accessed by all forms

Hi All, This is my first winform app in .NET... I have made a couple of ASP.NET app... In this app, I have some common variables, like current user name, his selected process etc.. etc.. This should be made accessible from all forms in the app at any time... How could I do this... Is there any place like "Session" in ASP.NET here.....

Windows Service is not Working.

I had made a windows service in visual studio 2008 in C#. inside the service i had written only single line code try { System.Diagnostics.Process.Start(@"E:\Users\Sk\Desktop\category.txt"); } catch { } then i add the project installer & change the serviceProcessInstaller1 Account property as local system Also change the ...

Can I access a folder on client side in web application?

I want to access all the files in a folder to add to a listbox and show to the user. I know I can access a folder when it's a windows application. But in web application, is this possible? If yes, how? Something like FolderBrowserDialog?? ...