So I'm building a peice of UI that might me in a dialog window or might be in embedded in part of a bigger page.
I don't have alot of experience with WPF, but in ASP.NET you always used UserControls, because their wasn't anyt really generic UI inherit to inherit from (and in a way UserControl was just a div).
My coworker has written ...
How i can find all the windows created by a particular process using c#?
UPDATE
i need enumerate all the windows belonging to an particular process using the PID (process ID) of the an application.
...
Hello,
I'm trying to get data from app.config and I always get zero. The App.config is here:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<connectionStrings>
<add name="ExplorerContext" connectionString="metadata=res://*/ExplorerData.csdl|res://*/ExplorerData.ssdl|res://*/ExplorerData.msl;provider=System.Data.SqlClie...
I have a .net 3.5 site with "require SSL" option checked. After submitting any form I got a message "The page contains both secure and nonsecure items" and if I click "yes", it changes the url from "https://mysite.com/..." to "http://mysite.com:433/...". Does anyone know what can be the problem?
Edit: this happens only when I submit p...
Hi,
I just wanna ask your opinion/suggestion on how to 'terminate' a running application/process is C#
Right now, I do have the following codes:
Process myProcess;
private void btnOpen_Click(object sender, RoutedEventArgs e)
{
DirectoryInfo di = new DirectoryInfo(System.Environment.GetFolderPath(Environment.Special...
Using this:
http://stackoverflow.com/questions/820421/can-i-use-facebooks-fbfriend-selector-in-an-iframe
I created a multi-friend selector in my IFRAME FB application.
I want to know if the user selected any users for invite so I can reward him with extra points. In the developer WIKI I saw that [ids] is transferred to requested page vi...
Hi All,
I am looking to open a .csv file from the application pack to do some unit testing. So what I would really love is some analog to File.ReadAllText(string path) which is instead X.ReadAllText(Uri uri). I haven't as yet been able to find this.
Does anyone know if it is possible to read text / bytes (don't mind which) from a file ...
I have this abstract class and concrete implementation (they are in different assemblies):
public abstract class MyAbstractClass
{
private static readonly int MyAbstractClassVersion = 1;
public abstract int ImplementedVersion { get; }
protected MyAbstractClass()
{
CheckVersion();
}
private void CheckVe...
In ASP.net MVC 2, I can use routes.RouteExistingFiles = true; to send all requests through the routing system, even if they exist on the file system.
Usually, this ends up hitting the "{controller}/{action}/{id}" route and throws an exception as the controller cannot be found.
I do not want to use that route though (I have only a few U...
Hi,
I just downloaded the Orchard CMS, opened it up in VS2008 and hit F5: Everything runs fine.
I then created a website in IIS 7.5 and pointed it to the web project's directory and set up permissions correctly (I hope). I downloaded the 64-bit version System.Data.SQLite as suggested here: Orchard Work Item 14798 and here: SO: Could n...
I wrote this code in c# to encrypt a text with a key :
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
namespace ENCRYPT
{
class XORENC
{
private static int Bin2Dec(string num)
{
int _num = 0;
for (int i = 0; i < num.Length; i++)
{
...
I'm trying to create an ICS file and send it to myself. I set myself as the organizer of the event. The appointment request is properly received to my mail box but the event is not automatically added to my calendar.
I'm using Outlook 2007.
Here is the iCal file format:
BEGIN:VCALENDAR
METHOD:REQUEST
BEGIN:VEVENT
ATTENDEE;CN=""Mohamme...
I have a Visual Studio Windows app project. I've added code to download an installer update file. The installer after it has finished downloading would need administrator privileges to run. I have added a manifest file.
When user clicks on the DownloadUpdate.exe, UAC prompts the user for Admin permissions. So I assumed that all processe...
I've posted some questions on this before, but it's different.
So consider a small portion of our model:
Person
Customer
Employee
Spouse
Person is the base class which has 3 classes that inherit from it.
These 4 are very central in our design and link to many other entities.
I could solve all the problems I'm experiencing with ri...
Hello,
How do I create non visual components in .NET that can be dragged and dropped onto a Form ?
For example the imagelist component is a non visual component, it appears in the toolbox and can be dragged onto a form and properties can be set for that component.
How can I achieve that ? How can I create non visual components. I know...
I made a smart device application in c# and I want to run it at startup (I know how to do that) but the problem is that I can't make my application to run minimized (hidden) on the first time.
I've tried this.Hide() and this.Visible = false and also used ShowWindow API with SW_HIDE(6) but non of them worked.
It seems it's impossible to...
I am going for an interview day after tomorrow where i will be asked vaious questions related to TCP/IP and UDP.
As of now i have prepared theoritical knowledge about it. But now I am looking up for gaining some practicle knowledge related to how it works in a network. What all is going in vaious .NET classes.
I want to create a very sm...
Hi all,
I'm aware of the Argotic framework for .Net that assists in the collation and management of Atom data, but does anybody know of a .Net application/framework that implements the Atom Publishing Protocol (APP)?
Creating a .Net APP server from scratch seems a daunting task, even if it 'stands on the shoulders' of Argotic. Maybe a ...
Here is a topic: http://stackoverflow.com/questions/2507734/cant-get-up-with-ria-demo
where I've described problem with getting access to DomainContext object on the client. That time problem was resolved himself (without any actions from my side, with Visual Studio restart).
At the moment, I had the same problem on another PC (Vista x6...
Dear ladies and sirs.
I have to generate 19 bit random numbers. However, there is a constraint - two threads may not generate the same random number when running certain code.
The simplest solution is lock the entire code. However, I would like to know if there is a non locking solution. I thought, I can incorporate ManagedThreadId wit...