I'm using the OleDB DataReader to get data from my excel files (but this problem occurs in DataTable.Fill as well). The thing is that I have a column that should return strings. All's fine and working but recently, an issue came up, because the column's cells had different formats. Some were in numbers and others in text. When I checked ...
I created a wcf service hosted in windows service manager on windows XP sp3, and this service shall generates some file on shared drive/folder on remote PC.
but when i try to give shared path as "\Server\SharedFolder" it gives Access Denied error and when i Map this drive as "Z:" it gives "Could not find a part of the path 'Z:\R1_180620...
I want to compile the Xml documentation from a large project into some form that's easy to read and search, hopefully more convenient than browsing the raw source code. I'm not particularly worried about the end format - CHM, HTML, xyz - as long as it's usable. Being able to easily roll in (or link to) additional content would be a plus....
In Visual Studio 2008 when you build in 'quiet' mode the build output window looks something like this:
Compile complete -- 0 errors, 0 warnings
------ Build started: Project: JLTA.JBS.UI.Office.VSTODocument, Configuration: Debug Any CPU ------
------ Build started: Project: JLTA.JBS.UI.Office.VSTOWorkbook, Configuration: Debug Any CPU ...
I'm wondering what the 'best practice' is, when asking an event handler to unsubscribe its self after firing once.
For context, this is my situation. A user is logged in, and is in a ready state to handle work items. They receive a work item, process it, then go back to ready again. At this point, they may want to say they're not avail...
How to get a window from a page , so I've got a page frame in my window :
<Frame NavigationUIVisibility="Hidden" Name="frmContent" Source="Page/Page1.xaml" OverridesDefaultStyle="False" Margin="0,0,0,0" />
And trying to access my window from this page this way :
private void Page_Loaded(object sender, RoutedEventArgs e)
{
if ((W...
May I Know the use of channelfactory class in WCF. Does it help us to prevent updating the service reference manually if there is any code change in the service ?
...
Hello,
I'm looking for a good browser emulator API for .NET. I've been looking at WatiN, but I really don't need (want!) the GUI, I just want the HTML/DOM-parsing, JavaScript runtime and emulation of state, cache, and everything else.
What I'm looking for would work something like this
using (var browser = Browser.Create(BrowserType.F...
Just an inquiry on how to integrated NCover (free) in .Net project (maven build)
I looked at hudson but I guess I can't use it in maven.
Thanks!
...
I have a rich text box in one of my applications (WPF). Now I want to store the data of the rich text box along with its formatting (e.g. bold, colored etc.) into a database (SQL Server). Currently I am storing the whole XAML of the text box in a database field. however, I am not sure whether this is the right approach. Looking forward t...
Hello All!
Please help me!
Wich are the good and bad sides of TransactionScope object in C#?
Thanks.
...
Hello!
I read this post, which explains how to play MIDI.
I need to make a web-application that plays MIDI sequnces on users demand.
How to do this? Should I simply make a Silverlight player that plays a MIDI file? So how do I transfer the file to the player? Or else, maybe there is a way to interact with the client's MIDI system.
NOTE...
I draw a drawing on a custom panel using GDI+. Somethink like:
Now, I can override 2 methods: OnPaint() and OnPaintBackground().
Say I draw the grid in background and the graph in OnPaint, or draw the texts in background and lines in Paint.
Is it more optimal to divide the work between Background and Paint or to draw everything in On...
In a method, I want to call a shared function which its name came as a parameter.
For example:
private shared function func1(byval func2 as string)
'call func2
end function
How can i do it?
...
I am writing an Outlook add-in which sync with Google calendar.
EventID of Outlook calendar is in binary format which I can convert
into HEX string (contains characters between 0-9/A-F). I wanted to
know whether Google calendar eventID is HEX string or not. So that I
can directly store Outlook calendar eventID in Google calendar and
vice...
I'm currently working on a large real-time OLAP application. All data are hold in RAM (a few gigabytes) and the common tasks involve brute scanning over the large quantity of that data (which is fine). The results of processing are exposed via a Web service (singleton/multithreaded) and presented using Silverlight-based client.
The prob...
I'm probably going to take some heat for this question. But I'd like to know how to address this problem. So here goes.
I program (to different levels of competence - admittedly) in various languages. I have dabbled with C#, and it seems quite a nice language (reminds me A LOT of Java and C++). The problem is that I have what can only b...
i want to select data from datatable or sql table or list 50 rows by 50 rows. Forexample:
var list = from x in dtable select x ----- > first 50 rows Click next button for GridView next 50 rows . And than 50 rows whli clicking next button to monitor GridView?
For Example Data :
static DataTable GetTable()
{
...
Possible Duplicates:
How to idenfiy if the DLL is Debug or Release build (in .NET)
How can I know a dll is not a debug build
Can some one please let me how can i find in C# .NET if the dll is build on the "Release" or "Debug" ?
Of course consider situation where is have dll/exe with me :)
...
Is it possible to prevent MainForm from loading fully during the process of starting up an application (not sure how its called, Component Initialization maybe)?
I've tried:
public MainForm()
{
if (true)
{
Application.Exit();
return;
}
InitializeComponent();
}
and
public MainForm()
{
if (true)
...