Maybe someone can clear me up. I have been surfing on this a while now.
Step #1: Create a root certificate
Key generation on unix
1) openssl req -x509 -nodes -days 3650 -newkey rsa:1024 -keyout privatekey.pem -out mycert.pem
2) openssl rsa -in privatekey.pem -pubout -out publickey.pem
3) openssl pkcs12 -export -out mycertprivateke...
I'm handling drag and drop events in a TreeView using PreviewMouseDown, PreviewMouseMove and PreviewMouseUp, however, there is an issue.
In my PreviewMouseDown handler, I set everything ready in case there's a drag started (detected in the Move event), however I set e.Handled = true. This means that standard selection events don't get g...
Hello,
In database I store all date/times in UTC.
I know user's timezone name ("US Eastern Standard Time" for example).
In order to display correct time I was thinking that I need to add user's timezone offset to UTC date/time. But how would I get timezone offset by timezone name?
Thank You!
...
Hi, I'm struggling with a little problem and starting to arrive at the conclusion it's simply not possible.
I have a Table called Group. As with most of these systems Group has a ParentGroup and a Children collection. So the Table Group looks like this:
Group
-ID (PK)
-Name
-ParentId (FK)
I did my mappings using FNH AutoMapping...
I'm implementing serial key functionality in my application. User needs to enter at least 64bit number in order to register the application. Because typing number like 9,223,372,036,854,775,807 will take a while I want to compress it a bit. The first guess was to code this number hexadecimally but it still is quite long (0x7FFF FFFF FFFF...
I'm writing a book on multicore programming using .NET 4 and I'm curious to know what parts of multicore programming people have found difficult to grok or anticipate being difficult to grok?
...
I'm using Windows Server, IIS 6.0 and VS 2008 Professional. When I click "Publish WPF application" I get "the server unexpectedly closed the connection". Any ideas?
...
What is the standard nowadays when one needs a thread safe collection (e.g. Set).
Do I synchronize it myself, or is there an inherently thread safe collection?
...
I want to make an app in .net to search on google for a keyword and click on a specific link from the results. Like a bot.
How can I get the coordinates of screen where the specific link appears in search results so I can do a click on it. The component where the page loads will have javascript enabled so just parsing the html is not e...
var i = new int[2];
Is "i" considered to be boxed?
...
Hi all,
I m working on a video conference project in vs2010 with c#. I m able to capture the snaps from web cam in picture box with the help of Directshownet samples available on SouceForge.But i can't find any proper solution for capturing the audio/video stream directly from web cam using Directshownet. If anybody know about this prob...
How can i fill all fields on my domain object default values ? Just use Moq or other library ?
...
Hi,
i am trying to develop a window form chat application using c# with asp.net 3.5 framework.
in that form i want to insert emoticons as we found in yahoo, hotmail etc messenger.
can anyone tell me how i can implement that thing as it is done in messenger.
please help me.
...
After WebBrowser.Navigate() how to retreive response headers returned by server ?
...
hello,
i have datagridview and Object data source :
public class Data
{
public general general { get; set; }
public Person Person { get; set; }
}
public class general
{
public int Id { get; set; }
public int Name { get; set; }
}
public class Person
{
public int Tag { get; set;}
}
}
i want to bind first colu...
I have an application which edits the metadata part of the JPEG image. I have to remove the thumbnail metadata with out disturbing other metadata. I have tried out the code below but was not successful in removing thumbnail metadata. can some help me out in solving this query thanks in advance.
array<String^>^ query = gcnew array<String...
I have an aggregate 'main' class which contains some data which I wish to share.
The main class also has other class members.
I want to share the data with these other class members.
What is the correct / neatest way to do this?
The specific example I have is as follows. The main class is a .net Form. I have some controls (actually c...
It seems that XAML files should have corresponding .cs files in a C# project. I know Visual Studio does all the things for us. I'm just curious how they are linked together? I mean, are they specified in the project file, or just because they have the same names? And also, App.xaml file specifies the startup file, but how does the compil...
I want to open window2.xaml from the window1.xaml window as an emergent (floating) window.
In winforms that was form2.show() , how do I do it in WPF for both WPF application and WPFbrowser application?
(I assume it's different for WPF application and WPFbrowser application)
...
I'm just curious if this is possible, specifically in SQL CE (Express) with support in .NET's Entity Framework:
Table1 (primary)
-nvarchar(2000) url
-...
Table2 (with foreign key)
-nvarchar(2000) domain
-...
foreign key on Table2.domain references Table1.url such that Table.url contains Table2.domain
e.g.
Table1:
http://www.google....