Hello. I am working on a Silverlight/WCF application and of course have numerous async calls throughout the Silverlight program. I was wondering on how is the best way to handle the creation of the client classes and subscribing. Specifically, if I subscribe to an event in a method, after it returns does it fall out of scope?
interna...
I have a deserialized xml c# objet.
I need to iterate through the oject to display all items, in this case there's just one, and display the name, colors and sizes for each item.
The xml:
<?xml version="1.0" encoding="utf-8"?>
<Catalog Name="Example">
<Items>
<Item Name="ExampleItem">
<Colors>
<Color Name="Black" Va...
I'm writing a DLL to change permissions on a folder and everything underneath the folder. Below is the code that I have right now.
The problem comes when I call addPermissions(). It's correctly setting the permissions on the dirName folder and any folder that I later create under dirName, but any folder that exists when I add permissio...
Can we set two thread or two task to execute with different processor affinity in C# Application?
I have read about SetThreadAffinityMask but there is no example to have that used..
or Is there any way TPL(Task Parallel Libray) executes two thread/Task in with high priority to use 100% cpu ?
...
I'm using the Word 2007 spellchecker via Interop in a VB.net desktop app. When using the default language (English), it works fine. If I set the language to French via LanguageId, it also works. But if I set it to French (Canadian) (Word.WdLanguageID.wdFrenchCanadian), it doesn't work. There's no error message, it simply runs and says t...
it happens when i change the DataSource.
i have checked everything(stack traces, all exception information, datasources, grids, all the threads, etc) i have also write lots of diagnostic code(+3000 line)
it seems to be a virus, it is going to destroy everything in my app.
all grids are going to have the very same error.(while i have not...
Hi All,
I got one problem while doing one TAPI application based project in C#. I'm using ITAPI3.dll
My problem is.. i'm not getting incoming call information. To get the incoming call information, i'm using the get_callinfo function, but it is showing empty message.
...
Bckground
I have a networked application written in C#. my server program has a UI and several communication threads, that read from tcp sockets and display messages on controller UI.
Communication with each client is done through a seprate thread. When i recieve some stream of messages from one client , the thread for that client write...
I have a situation where I want to asynchronously write a series of bytes with WebClient (in much the same way as UploadDataAsync) and get a readable response stream (in the same way as OpenReadAsync).
You seem to be able to do the two individually, but not both of them together. Is there a way?
...
I have an app that can open up some other forms at the user's request, and they're set to not show in the taskbar. The problem is, if one of the secondary windows becomes hidden by another app, switching to the primary window only brings that form to the forefront.
Is there a good way to "group" the forms so that giving any of them focu...
I have an app using a SQLite db, and I need the ability for the user to move the data file and point the app to where it moved to. I used the Entity Framework to create the model, and by default it puts the connection string in the App.Config file. From what I've read if I make changes to the connection string there then they won't take ...
I am using the WPFToolkit to produce a ColumnSeries chart. I set the X-axis as a DateTimeAxes and I bind its IntervalType property with a value in my ViewModel class, but it doesn't work.
I read about an identical issue here. Do you know if this problem was solved?
Thank you.
...
I'm trying to create a very large image (86400 x 43200) using several tiles that make up a portion of this final image with ImageMagick (using the .NET bindings).
The problem seems to be when I attempt to create my output image with the given size; ImageMagick just hangs on the Resize() call. When I say 'hangs' I mean the program become...
I am writing a C# Windows Forms Application in Visual Studio 2008. I have a DataGridView with a lot of data in it. I would like to initially only populate 10,000 rows and add more only when the user scrolls to the bottom. I am handling the DataGridView's Scroll event, but it never seems to raise with the ScrollEventArgs.Type property set...
Does anyone how to retrieve the last n log messages from SVN using SharpSvn? I’ve been calling GetLog with an SvnRevisionRange argument but really just need the 20 most recent messages which I can’t predict on date alone. Thanks!
...
ok...this gets confusing for me to explain, so i will show a class from one namespace and a seperate namespace...
Company.Product.Domain
(this represents the class that contains methods specific to that class, i named it "Domain" just so you can see how I'm using the same name in a separate namespace
Company.Product.Domain.Data.Contra...
I have been pulling my hair out trying to figure out what I can't get parameters to work in my query. I have the code written in VB.NET trying to do a query to an AS/400. I have IBM Access for Windows installed and I am able to get queries to work, just not with parameters. Any time I include a parameter in my query (ex. @MyParm) it does...
I'm running into the classic scenario where, when creating Word COM objects in .NET (via the Microsoft.Office.Interop.Word assembly), the WinWord process won't exit even though I'm properly closing and releasing the objects.
I've narrowed it down to the use of the Word.Documents.Add() method. I can work with Word in other ways without ...
Say we've got a class like
public class Doer
{
public int Timeout {get;set;}
public string DoIt(string input)
{
string toReturn;
// Do something that involves a Timeout
return toReturn;
}
}
Is there a tool that would create a Form or Control for prototyping this class? The GUI might have a Num...
Okay.. this is hard to explain, so here it goes.
I have an update panel which contains a number of controls. The update panel is triggered by the OnSelectedIndexChanged event of a dropdownlist called: ddlUSCitizenshipStatus. It works as expected when I selected a new item.
However, if I leave ddlUSCitizenshipStatus with the default v...