What do I want to achieve: I want to perform some time consuming operations from my MDI winforms application (C# - .NET).
An MDI child form may create the thread with the operation, which may take long time (from 0.1 seconds, to even half hour) to complete. In the meantime I want the UI to respond to user actions, including manipulatio...
We're having an intermittent problem that occurs when running certain integration tests on our continuious integration server..
For some reason, every now and then, we get an autocomplete popup that causes a timeout and ultimately a build failure.
Is there an eloquent way to detect the popup and click through it?
Thanks!
...
I have never written a DSL, but I am considering it as a feature for a new project (hypothetical). It would be for end users to be able to express in natural language concepts such as weekdays between 10 and 11 except on the first monday of the month.
Dutch users might write weekdagen tussen 10 en 11 behalve op de eerste maandag van de ...
Here's the relevant part of my code:
adapter.Fill(table);
return;
}
catch(Exception ex)
{
SqlException sqlEx = ex as SqlException;
I have an exception that's being thrown by adapter.Fill(), and when I put a breakpoint on the first line in the exception handler, the Exception.Data property already contains a key that is un...
Is it possible to apply reactive frame work in MVC application? or is it applicable for WPF?
...
How can I generate types like these using the System.Reflection.Emit libraries:
public class Test<T> {}
public class Test<T1, T2> {}
When I call ModuleBuilder.DefineType(string) with the second type declaration, I get an exception because there is already another type in the module with the same name (I've already defined the type par...
I have a image (png file) with opacity 35%, i want for example:
Set the opacity image to a panel BackgroundImage, the panel is over a form with backcolor black, i thought (like in photoshop happen) that the opacity of the image will do a more clear color in the panel area, but the real result is that panel appear entire white, someone k...
Hi All,
I have 2 tables, user and userprofile. The userprofile table has a lot of fields similar to the user table. What I need to do is, on click of a button I need to copy all the fields of user table to userprofile table.
How can I do that?
...
Making a simple form that is to step through a program iteratively.
How can I get it to run a method each time a user clicks a button and wait once it is finished for the next click?
Thank you.
...
I was hoping it was as easy as referencing my existing libraries to use them with WP7.
However, it complains about not able to load them because of .Net CF when I actually use them.
Do i need to recompile them to .NET CF or something?
I thought the big plus of WP7 was: leveraging your existing codebase...?
How can I leverage my existin...
I am facing the following issue when deploying a com-exposed assembly to my client's. The COM component should be consummed by a vb6 application. Here's how it's done
1) I have one c# project which has a class with a couple of methods exposed to COM
2) The project has references to multiple assemblies
3) I compile the project, genera...
I'm struggling with getting IOC to work in a remoting scenario. I have my application server set up to publish Services (SingleCall) which are configured via XML.
This works just like this as we all know:
RemotingConfiguration.Configure(ConfigFile, true);
lets say my service looks like that (pseudocode)
public class TourService : IT...
Help me, Stackoverflow!
I have a simple .NET 3.5 console app that reads some data and sends emails. I'm representing the email format in an XSLT stylesheet so that we can easily change the wording of the email without needing to recompile the app.
We're using Extension Objects to pass data to the XSLT when we apply the transformation:
...
How can I customize automatically generated command button, e.g. Delete?
I want to add a client confirmation on deleting and in the same moment I want this button would be generated on setting AutoGenerateDeleteButton="true". Is it possible??
I can add a custom button this way:
<asp:TemplateField>
<ItemTemplate>
<asp:LinkB...
Hello, after read this article i tried generate EF model by System.Diagnostics.Process:
Process myProcess = new Process();
var cs = "Data Source=.\\SQLEXPRESS; Initial Catalog=uqs; Integrated Security=SSPI";
myProcess.StartInfo.FileName = @"C:\Windows\Microsoft.NET\Framework\v3.5\EdmGen.exe";
myProcess.StartInfo.Arguments = ...
In my project I have a lot of code like this:
int[][] a = new int[firstDimension][];
for (int i=0; i<firstDimension; i++)
{
a[i] = new int[secondDimension];
}
Types of elements are different.
Is there any way of writing a method like
createArray(typeof(int), firstDimension, secondDimension);
and getting new int[firstDimension][s...
We have a mass emailing tool (.net based) that we developed in house. html editor. and sends via html and text formats.
within the body we have an absolute URL path to a PDF on our server. some of our subscribers are stating that when they click on the link they get a message box that the file is an executable file and whether they sh...
Is it possible to create a discoverable network resource in .NET?
What I would like to acheive is a means of auto discovery for applications that run on a private network. The architecture will be similar to a client / server application, however the server could be any computer on the network. While the client would not be aware of the...
Lets suppose that I have a Category table with a column that holds the id of a parent or child category from the same table. This design would allow me to have unlimited levels of Categories, or unlimited levels in a thread, for example.
How can I map this relationship with NHibernate? Are there any disadvantages or warnings that I shou...
This might be basic question, however I am confused on some .Net Concpets.
I am trying to create a "Data Browser" in VB.net.
Similar to a Web Browser however each
Tab in the Data Browser is a view of
some Data (from a database or flat
files) not a webpage.
The UI on each Tab is mostly the
same.
A list Box (showing datatypes, etc),
a ...