I need to programatically create Visio look-a-like diagrams as a drawing. Mostly we are going to create network layout diagrams similar to this one.
Is there a component that could speed-up the development or some technique we could use? Generally we could do this on our own via System.Drawing, but this might get tricky for more comple...
I am writing a program where you connect, for various reasons, to other computers in a LAN. However, rather than having to input the IP address for multiple computers (a pain in the butt), I was wondering if there is a way to list the IP addresses of all the computers in a LAN. I have researched all day, and as of yet have found nothing ...
How do I use the SHA1CryptoServiceProvider() on a file to create a SHA1 Checksum of the file?
...
This little bit of code will help me describe my problem:
public class Car
{
...
}
public class CarQueue : ObservableCollection<Car>
{
public IEnumerable Brands
{
get { return (from Car c in this.Items select c.Brand).Distinct(); }
}
}
Ok now I have an instance of CarQueue class bound to a DataGrid. When I add...
I'm using EF4 and I've got two entities that I wish to map to the same POCO. I'm not sure how I can do this.
Entity 1 → Foo (this represents a table FOO in the db)
POCO → Foo
Entity 2 → FooView (this represents a view FooView in the db)
POCO → Foo
I understand that I need to do something like
IObjectSet<Foo> _foos = Creat...
What does Cascade in Nhibernate mean?
I see a lot of options in cascading:
Delete
All
AllDeleteOrphan
DeleteOrphan
SaveUpdate
Can you explain these with with examples and their distinctions?
...
Is it possible to make my custom item class so that I can put it straight into a listviewitem?
What I mean is a listview and I want to be able to do Listview.items(0) = Item
Or is this not possible?
...
Hello,
i wish to create a form at runtime that will read the columns for any datasource and create fields based on the columns and datatype just like a datagridviews insert line
Best regards,
Mark
...
With the NAudio library I'm trying to mix some audio using a WaveMixerStream32 so I'm using WaveChannel32 to feed it the streams in the proper format. I've got an exception with the following message:
Offset and length were out of bounds
for the array or count is greater than
the number of elements from index to
the end of the ...
Hi
I have a WCF service and client. I connect to WCF via
ChannelFactoryBase<(Of
<(TChannel>)>)..::.CreateChannel
Method
Then I have a reference to ICommunicationObject
WCF service may be not working when connecting or closed later. What is correct
way to check if WCF service is working. One direct way is to use CommunicationE...
Hi, I wanted to try to deploy our project for .net 3.5 client framework (so that we could distribute it with smaller runtime), but when I go to VS 2008 Project properties and check the “Client-only Framework subset” checkbox (and click Save all), it has no effect - the .csproj file does not change (the diff for whole project is empty), a...
I'm trying to add a ProfileProperty into the ProfileProperties table using ObjectContext.AddObject.
The db fields for the ProfileProperties table are:
ProfilePropertyID
ProfilePropertyDefinitionID
UserID
PropertyValue
The db fields for the ProfilePropertyDefinitions table are:
ProfilePropertyDefinitionID
PropertyName
The variables...
I have a list of ~9000 products, and some of which may have duplicates.
I wanted to make a HashTable of these products with the products serial number as their key so I can find duplicates easily.
How would one go about using a HashTable in C#/.NET? Would a HashSet be more appropriate?
Eventually I would like a list like:
Key-Seri...
How can I make an event that is raised when a variable or property is changed (or can I just put the code I would put in an event in the Set section of a property?
...
I'm of the understanding that an unhandled exception in any appdomain will bring down that appdomain. This is not unlike an unhandled exception in any standard forms- or console-based application.
If that is so, how do you indicate a failed operation when you're crossing appdomain boundaries? I'm currently logging it so that I know it...
Hi all,
EDIT: Issue worked around. This Console code was testing for ultimate use in a WPF app. I've moved the code to a WPF test app and it works, slightly modified of course. So I'll leave this Console issue, as at the end of the day it's not actually important!
I'm basically trying to call "Console.ReadLine()" from an asynch metho...
I have a class which get all the bytes from a file, then it splits up the bytes into three parts (a header, index and body) these 3 parts get passed along to 3 classes (called header, body and index) respectively. When the bytes in the three classes gets modified how can I pass these changes back up to the first class (the one that got ...
Say you have an application in either .net or java (web application).
How long did it take you to port the application to the other platform? (I am assuming they general design was the same, just a straight port i.e. not changing the general design pattern radically).
What I am interested in:
It took me 4 months to code it in .net, an...
I am writing a multithreaded service that picks up jobs to process that has the status of 1 (unprocessed). As soon as they are picked up, I need to change the status of those rows to 2 (indicates In Progress) so that another thread (that is spawned within a few seconds) does not pick up these rows for processing.
For select, I would do ...
Is is possible to scan a function provided as a lamba expression to figure out the nature of the function at runtime?
Example:
class Program
{
static void Main(string[] args)
{
Examples example = new Examples(x => x ^ 2 + 2);
}
}
public class Examples
{
public Examples(Func<dynamic, dynamic> func)
{
...