How do i add an entry in a listbox in a window that is in another thread.
My Problem is, that i have to threads.
One working thread, that does all the actual work and one thread for a window where i want to display status information.
I tried to pass the form window as paramater in the constructor, but when i call it i get an exception.
...
Hi,
Can I run applications compiled with .net framework 3.5 on a computer with .net framework 4 installed (.net framework 3.5 is not installed)?
Thanks
...
Hi,
I need to store an instance of an complex datatype into a relational database.
Is there a way to do this without moddeling the database structure first, like it is done in ado.net? The database (or table) structure should be created from the class structure. The class has some properties like ints, strings or bools but could also ha...
I have an list that toggles with no problem in FF. I need this working IE for it to be production ready.
It seems (IE) to apply the js to the first #orderItem and the first #familiy only. The rest of the items in the list are ignored.
Any help would be great.
A piece of the HTML (large list):
<div class="classificationContainer">
...
I'm a bit confused about
The purpose of Marker Interface Vs
Attributes.
Their purpose looks same to me(Pardon me if I'm wrong).
Can anyone please explain how do they differ in purpose?
...
WE are a MS shop (yes, we have TFS 2K8 and 10). I am the system administrator, not developer, so my POV is a bit different than most articles on deployment and config pre/post build tasks.
I need to manage about 40 different applications/site, each with its own config settings, but within 2-3 concurrently operating dev, 2-3 concurrently...
Assume you have a CSV file with the following structure
LINE1: ID,Description,Value
LINE2: 1,Product1,2
LINE3: ,,3
LINE4: ,,4
LINE5: 2,Product2,2
LINE6: ,,3
LINE7: ,,5
With the corresponding FileHelpers definition class
[DelimitedRecord(",") ]
[IgnoreFirst(1)]
public class Product
{
public int ID { get; set; }
...
Hi, I am trying to log into my EBay account using C#. I have looked at various posts and found the following 3 options. Unforunately, none of them are working. I am also listing the response header values that I get and that Fiddler shows when doing a login. There is a difference as I only get one "Set-cookie" value and Fiddler shows 10 ...
Hello Folks,
Could someone please explain the behavior of this
class testCompile
{
/*
* Sample Code For Purpose of Illustration
*/
struct person
{
public int age;
public string name;
}
static void Main(string[] args)
{
List<person> L...
Some weeks ago I've asked a question regarding best practice on how to secure a Business Layer.
In the meantime I have something based on PrincipalPermission and some custom code for specifics checks. But I'm still not really happy about that solution and struggling how to make it better.
What I'm still trying to achieve:
Ensure that...
I have a WPF application written in C#.
I have made a button. I changed the background color.
How can I change the bluish color when mouse is over my button? And how to control animation/change time?
...
Hello,
How to assign a command to the Handler in EventSetter, I want to to write this:
<Style x:Key="ItemStyle" TargetType="{x:Type ListBoxItem}">
<EventSetter Event="PreviewMouseDoubleClick" Handler="{Binding MyDoubleClickCommand}"/>
...
hi i want to create an application that logs these items:
windows turn on, turn off time
log in, log out time
hibernate time
restart time
in windows 7 'Admin event viewer' log most of above item
but in windows xp there is not a clear log.
in addition, the user can change event setting
how i can do this with fully trust.
Thank yo...
I need some piece of software that will fulfill the following functions:
1. Give a single endpoint to a client (abstracting it from several service endpoints)
2. Keep a queue of incoming requests
3. Balance load between several service endpoints on several machines
4. Control availability of these endpoints
5. Give client some readable e...
I understand that this is an implementation detail. I'm actually curious what that implementation detail is in Microsoft's CLR.
Now, bear with me as I did not study CS in college, so I might have missed out on some fundamental principles.
But my understanding of the "stack" and the "heap" as implemented in the CLR as it stands today is...
I need to work on an application that consists of two major parts:
The business logic part with specific business classes (e.g. Book, Library, Author, ...)
A generic part that can show Books, Libraries, ... in data grids, map them to a database, ...).
The generic part uses reflection to get the data out of the business classes withou...
Intro:
I have a bottleneck in my C# application where I need to load a page as a bitmap from a PDF or Tiff file and process this bitmap while in memory. Tiff files load fairly fast, as well as first-party PDFs (we can read our own). The bottleneck comes in when the PDF file is third-party and we need to parse the PDF page and turn it in...
First of all, sorry for the dummy question. Couldn't find any straight answer on the internet.
I'm new to WCF (and using services in general) and would like to get some information about my security concerns.
Suppose I have an open source web application written under .Net which has a WCF Service to change the site users' profile data in...
I have a solid foundation in programming (Java, Python, Haskell).
I would like to pick up C#.
What would be an ideal project that would help me learn C# well enough to be sufficient for the workplace? Something that would help me learn all the subtleties and tricks.
Going through something like http://projecteuler.net/ or similar would...
I'm trying to read the column names of a table "Streets" in an Access database by opening an OleDbConnection. I call GetOleDbSchemaTable but I can't seem to figure out how to get at my columns.
I'd like to use .NET 3.5 framework if possible.
...