I am using the Windows Forms TreeView class which contains a set of TreeNodes. The TreeNodes can have child nodes.
I have a root node with 2 sub nodes (Node1 and Node2)
Node1 has 2 subnodes (child1 and child2)
I have a function that will allow a user to select any node and move it to another node:
TreeNode SelectNode = this.TreeView1...
I'm wondering how you'd recommend designing a class, given the fact that XNA Framework uses Struct all over the place?
For example, a spite class, which may require a Vector2 and a Rectangle (both defined as Struct) to be accessed outside of the class.
The issue come in when you try to write code like this:
class Item
{
public Ve...
I'm writing a program which will allow to load a specific managed .DLL file and play with it. Since I want the ability to unload the .DLL file, I'm creating two AppDomains - one for the app itself, the other for the currently loaded .DLL.
Since most of the objects in the loaded .DLL do not serialize well, I'm creating a MarshalByRefObje...
Hello all,
i need to integrate modules that are developed in separate win form application.Application can run and test individual and in the integrated.i required to create a set up and deploy at client site.My two biggest challenges are keep assemblies in one place and reference them in application.
For Example
Module 1. A stand...
Hi there,
I am consuming an xml response from a government gateway which contains a url in its root node twice (being firstly xsi:schemaLocation="http://www.govtalk.gov.uk/CM/envelope" and also xmlns="http://www.govtalk.gov.uk/CM/envelope")
XDocument will only parse this if I pull out the second one (the xmlns one) from the node.
Is ...
Hi All,
We recently upgraded from 2005 to VS 2008 (Windows XP). We use SlimDx in one of our projects. All was working ok after the upgrade, except my "Recover" function, which gets called on devicelost/device reset which crashes with
D3DERR_INVALIDCALL: Invalid call (-2005530516)
I use Ctrl-Alt-Del and then "Escape" to simulate d...
I am using Lua inside C# WinForms application for GUI automation testing. I want to use the logging library http://www.keplerproject.org/lualogging/
But I don't know where to copy those logging library files and other standard lua files so that I can use the standard lua logging within the lua scripts.
I see something like LUA_PATH bu...
I need to transform a valid XML document to the OFX v1.0.2 format. This format is more or less XML, but it's technically invalid and therefore cannot be parsed as XML.
I'm having trouble getting my Xml transformation working because the .Net XslCompiledTransform object insists on interpreting the output as an XML document (which is fai...
I'm developing a huge console application for Unix using C# via Mono.
If I develop that app using M Visual Studio and .NET 3.5 and I carefully neglect to use win32 specific API calls, should I expect that application to automatically work in my Unix box? Or should I just get MonoDevelop and go the Mono way?
...
Hello All
I've been banging my head over few hours for realising this particular logic
My task is to have a masterlist ListM elements of which shall be list(again) in the form of ListA(type A) and ListB(type B) and ListC(type C)(some generic type). Also the lists A and ListB can contain elements of type C(some generic type).
Coming ...
I have an unmanaged C++ project that uses a third-party .NET dll. It builds fine on one machine, but not on another--the IDE can't find the class definitions.
I ran RegAsm.exe TheLib.dll /codebase /tlb:TheLib.tlb, and the registry entries on the two machines match. That is, even though the IDE says that TheLib.Function() is undefined,...
Well, first of all I'll explain the whole situation. I have simple POCO domain model which I'm persisting with EF 4.0. For the first time I used only navigation properties and no FK properties. But later due to some binding purposes I decided to add FK properties to my model (Company_ID in the code below). Here are two classes from that ...
how to set ASP.NET version for virtual directory using c#.net FROM CODE for all iis version?
...
I need to programatically encrypt a directory of files, like in a .zip or whatever. Preferably password protected obviously.
How can I accomplish this, and WHAT IS the BEST encryption way to do it, if applicable?
Programming language doesn't matter. I am dictioned in all syntax.
...
Okay, I am trying to deploy a .Net framework 4 website on IIS7 server. I have already changed the application-pool's target framework to .Net 4, but the app is still showing me the error:
"The configuration section 'system.web.extensions' cannot be read because it is missing a section declaration"
I am guessing that has something to do...
public void Save() {
XmlSerializer Serializer = new XmlSerializer(typeof(DatabaseInformation));
/*
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A ...
Hi all,
What does the .databse file used for in a SSIS package?
Thanks in advance!
...
I have a bunch of remote machines all running the same WCF service over HTTP. I have a central configuration utility that needs to decide at runtime which of these to connect to. I do not want to define all the endpoints in the configuration file because this is all database driven.
I naively tried this:
CustomerServiceClient GetClie...
I have got IIS7 running on my Windows 2008 Server
It works perfectly working for the sites and the folder that I hosted before.
Now I am trying to host a folder which contains two subfolder(the subfolders contain some
images).
I have correctly set the IIS_IUSRS permissions on the site folder. When I try to browse
the folder I got the f...
Right,
I've got a main wpf window:
<Window x:Class="NorthwindInterface.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:ViewModels="clr-namespace:NorthwindInterface.ViewModels" Title="MainWindow" Height="350" Width="525">
<Win...