.net

.NET Kiosk On-Screen Keyboard

I've developed a rather simple OSK for our kiosk application. It works by opening on the onfocus events fired by textboxes in our .net app. The problem is, we're trying to integrate with a single sign-on service which means we'll be opening a webbrowser control to handle the third party authentication. Since the textboxes for the SSO pag...

Why does OpenFileDialog change my working directory?

Why does OpenFileDialog change my working directory? Should i assume many func in System.Windows.Forms will change my working directory? OpenFileDialog open = new OpenFileDialog(); open.Filter = filter; a = Directory.GetCurrentDirectory(); //<-- correct if (open.ShowDialog() == DialogResult.OK) //-- select a file on my d...

Mapping Table Enums in NHibernate

I'm currently building a new app based on a legacy database. In the app, there are many "list" tables that have the following format: table listLanguages { PrimaryId bigint; Item varchar(30); } ...with some sample entries like this: PrimaryId Item 1 English 2 French 3 Spanish ... They were used to p...

Strategies for updating or versioning web services?

I'm interested to hear the best practices on how different versions of web services are handled. To clarify, if you've got some web methods exposed as a web service, then you want to add a feature/functionality and thus change the signature of those method calls, how do you handle this in a manner that doesn't break all of your clients...

Problem: Failed to load viewstate.

I am making a web site for my college project. The project is website thats gets everything from web service. Can somebody tell whats going on, and how i fix it ? On one of my pages i have ListView control to display product items, and Pager on same page. On the first time page renderes fine and everything is displayed. When i click o...

what's the difference between a CPP/CLI assembly and a CS/VB assembly?

I do know some "basic" differences but there are still some questions in my mind: What's their difference in performance at runtime? //This I really wanna know. Why can't you build a MSIL assembly using C++/CLI? What's the PE code (Not the .NET's PEKind) of a MSIL/CIL assembly? (C++/CLI assemblies have the same PE Code than unmanaged b...

.NET Web Service - Host name resolving improperly

Duplicate: This is the exact same question, from the exact same person, as Issue with Incorrect URLs in the WSDL of a .NET Web Service, and has the exact same answer. Let's please close this and merge it with the other. We have installed an ASP.NET web site on a client's server. This site has a web service with a couple of web methods...

Disable Multi-Select CheckBox functionality in a ListView?

I'd like to disable the multi-select feature of a checkbox in a ListView. How do I do that? ...

Is there a built in Playing Card library in .Net?

Is there some built in Card graphics library built into .Net/Windows? Is there any way to utilize the card graphics used by the various card games that come with Windows? They look really nice and it would be cool if there was some built in functionality for this. ...

Does the .NET 3.0 SP1 installer also install .NET 2.0 and 3.0?

.NET 3.0 "wraps" .NET 2.0 so if I'm starting out with a clean Windows Server 2003 environment, will the .NET 3.0 SP1 installer also install .NET 2.0 and 3.0? What about .NET 2.0 SP1? Assume I don't want to install .NET 3.5 SP1 just yet. ...

Converting a Console Application to a service?

I'm looking for different ways with strengths/weaknesses for converting a console application we are using long term in to a windows service. We use something called java service wrapper for ActiveMQ, and I believe people have told me you can wrap anything with it. That's not saying that you should wrap anything with it though; we've h...

How can I dynamically compile and execute C# code with limited permissions?

It's not difficult for me to save code to temp folder, use csc.exe to compile it and load the assembly dinamically, but how can I execute the code with limited permissions? For example, how can I prohibit the code from... creating new threads. doing any I/O operations. granting higher permissions. gathering information of the system. ...

Need primer for a Msbuild newbie

We maintain a medium sized windows application developed in vb/c# .net in work. Still now the build and deploy process for this app is manual. I am determined to make this process automated using MSBuild on which i have no knowledge still now. Our app has a simple build structure, set of projects already grouped into four solutions(.sln...

How to add images as subitems in ListView?

Hello! I am currently working on a standard windows mobile application .It is reqired that we use a ListView , but with images in the sub items. We need a List View with 3 coulumns and three rows . i want to show 9 icons on form. How to add images as subitems in ListView? I can use picture box but i don't have any event to navigate ...

.Net Property Grid. Is there a way to let the Grid manipulate object in different way

As I understood , The property grid is given an object which it can manipulate by extracting its Properties using reflections. My problem is that I have a set of Parameters that is determined during run-time , thus I can't staticly compose a class with properties to represent this set. I have two idea in mind to solve this problem but ...

How to encapsulate list that has class property?

How to encapsulate below codes (i need refoctoring) public class mycollection { private DateTime tarih; private int sira; private int visitingcount; public DateTime TARIH { get { return tarih; } set { tarih = value; } } public int SIRA { get { return sira; } set { sira = value; } } pu...

ASP.NET CheckBox state and PostBack

I have a simple task - to change page link on checkbox state change - but I'm new to ASP.NET and have some trouble. I can do the same using HtmlControl and JavaScript: <script type="text/javascript" language="javascript"> function checkbox_onChanged(checked) { if (checked) { document.location = '?type=request_in&show=all'; ...

Is there an option "go to line" in TextReader/StreamReader?

Hello, I have a huge text file with 25k lines.Inside that text file each line starts with "1 \t (linenumber)" Example: 1 1 ITEM_ETC_GOLD_01 골드(소) xxx xxx xxx_TT_DESC 0 0 3 3 5 0 180000 3 0 1 0 0 255 1 1 0 0 0 0 0 0 0 0 0 0 -1 0 -1 0 -1 0 -1 0 -1 0 0 0 0 0 0 0 100 0 0 0 xxx item\etc\drop_ch_money_small.bsr xxx xxx xxx 0 2 0 0 1 0 0.0...

How to get the stack size of an existing .NET thread

I want to find out the stack size of .NET thread pool threads in CLR 4.0. Any ideas? Nick ...

ASP.NET free (open source) ecommerce site that allows multisite branding?

I'm looking for a free/open source ecommerce product. Specifically what I need is multisite support that allows each site to be branded for the vendor. Basically, I have a brick and mortar business and I'd like to provide a service that allows people to have their own website that accesses my inventory. Sort of like CafePress.com but not...