I am in the process of teaching myself thread based programming techniques and this question may be way off base... I'm not even sure if this is possible or indeed even the right approach to this problem. Please feel to correct me in what question I should be asking if appropriate.
I am trying to have a certain thread deal with an even...
I'm using a ComboBox with the DropDownStyle = "DropDownList". Programatically I set the DataSource for the items in the list. Something like this :
combo.DisplayMember = "Text";
combo.ValueMember = "id";
combo.DataSource = ds.tbl;
The list is populated correctly and the first element is selected. How do I prevent the first element fro...
I have a VSTO spreadsheet, and have re-jigged the front end. I need to change some named ranges to reflect this.
Couldn't see a good way of doing this, so I created other named ranges and pointed the code to refer to those instead.
Is there a better way?
...
I am running several long synchronous operations in my VB.NET application that can take several minutes each to complete. During these operations the form will turn white and the title bar will show "Not Responding" and some users may close the application thinking it has stopped working when in fact it is still running.
I am pretty su...
I have managed to serialize a class that inherits from a base class to XML. However, the .NET XmlSerializer produces an XML element that looks as follows:
<BaseType xsi:Type="DerivedType" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
This, however, causes the receiving end of a web service to choke and produce an error tha...
Unit tests have different requirements than production code. For example, unit tests may not have to be as performant as the production code.
Perhaps it sometimes makes sense to write your unit tests in a language that is better suited to writing unit tests? The specific example I have in mind is writing an application in C# but using I...
Hi All,
Please suggests good articles which helps in grasping concepts of wcsf architecture, usage with a possible demonstration.
Regards,
Justin Samuel.
...
Hello,
I have a DropDown menu with some items that should be accessible only after the user
has configured something. I wanted to use the Enabled property but in my case it's impossible.
So, I was thinking about the DropDownOpening event. I would look if (IsConfigured == true) and if it's false, I want to stop the opening process so th...
On a form, I have two combobox wich have the same DataSource (their elements list are the same). When the user select an item in one of the control, the other control's selected item is also modified. That's not what I want.
I'd like to have both list populated with the same DataSource (as I currently do), but I'd like their selected it...
I am doing MsRdpClient.MsRdpClientShell.Launch(), it is opening the remote app in a new shell(window), I want it to open in my form or MDI form...?? Thanks in advance.!!
...
Hello everyone,
I am new to SharePoint Server 2007 Web Part, and I am using SharePoint Server 2007 on Windows Server 2008. I program using VSTS 2008 + C# + .Net 3.5.
I want to create a simple web part which could display page creation time and modified time (display such time information at the bottom of a web page).
Any reference cod...
Hi,
I've got a ComboBox which items are coming from a DataTable in a DataSet. When there is no item selected (combo.selectedindex = -1) and I do a .Merge() on the DataSet the first element of the combobox is selected. When there is an item already selected, the item stay selected.
How can I prevent this and make it so that even if I do...
In .NET how can I transform an image into a trapezoid.
The Matrix class supports rotation, shear, etc, but I can't see a trapezoidal transformation.
I'm using the usual System.Drawing.* API, but I'm flexible to other .NET solutions.
...
How can I start a program in an active user session from a running .NET background process. Basically I have a .NET application running as a service and I want that application to launch a specific windowed application on the users desktop when certain events happen.
How can I do this?
This question is related to this one: http://stac...
I'm looking for some examples on how to do the following Mock Tests using StructureMap or Unity with NUnit.
I have the following code structure
public interface IDAL
{
List<Model> Method1(int id);
}
public class DAL : IDAL
{
public List<Model> Method1(int id)
{
List<Model> retval = new List<Model>();
DbComman...
I need to add xml-content to my application configuration file. Is there a way to add it directly to the appSettings section or do I need to implement a configSection?
Is it possible to add the xml to a CDATA element?
...
I'm interested to hear about people working with building .net applications using MSBuild, NAnt or similar tools. What are you using, why are you using it instead of the VS IDE?
I like to use different editors quite a bit and I'm thinking of changing over to using something that can keep me IDE free.
Thanks!
...
I've successfully created an app that minimizes to the tray using a NotifyIcon. When the form is manually closed it is successfully hidden from the desktop, taskbar, and alt-tab. The problem occurs when trying to start with the app minimized. At first the problem was that the app would be minimized but would still appear in the alt-tab d...
Hello Everyone,
I keep recieving the following error when attempting to submit to the server:
Cache timed out or does not exists.
StackTrace:
at Royal4.MP.MasterScheduling.ProgramScheduling.iBtnAdd_Click(Object sender, ImageClickEventArgs e)
at System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e)
at System.Web...
Is there a limit of elements that could be stored in a List ? or you can just keeping adding elements untill you are out of memory ?
...