Experts i am working on a piece of code that was already done by some body else. I am trying to understand if there could be any underlying reasons for the programmer to close database connect...
Hi EE's
I'm facing following problem. I have to configure the EventHandler of a ToolStripButton with a string (or any other object) coming from a XML. How can I give the corresponding dll, ...
Hi,
I have developed an windows application and I am gonna install it in client machine which is not having Dot net frame work. I want to bundle framework2.0 with My App, which should be i...
Hello.I would like to read data from Excel file and insert that data to my SQLCE database.I have no idea how to do it.I am using C# in Visual Studio 2008.
I have written a utility application in Visual Studio 2005 C#. The utility runs in the task tray, and is auto-run when the machine is logged onto by a user (via the registry). The utility mu...
How do I create a system-wide mutex lock in C# / .Net ?
Example:
//process 1:
lock("noodles");
do_something();
free("noodles");
//process 2:
lock("noodles")
do_something_...
I have just created two files. One XML and an XSL. I need this to be executed when a buttin is clicked.
I have included all the code that you will need to understand the scenario. I have ma...
private void Form1_Load(object sender, EventArgs e)
{
DBWebService.DatabaseWS s = new DBWebService.DatabaseWS();
ds = s.Get_Price_List_Header();
...
Hello all ye smart brainy people out there....
Usually I'd spend days trying to find out how to do something but I reckon the issue I am having is more of a stupid mistake or something.
...
A couple things I've never done.
1. Pass in command line parameter
2. Set global varialbe for winform
3. Force an application to close through code
Goal :
1. Pass a single numeric va...
I need to display a message box to a user of a web application. Typically after they press a submit button on a asp.net web form. How can I do this from the C# code behind file? I don't care i...
I am not sure why my variable is not getting the right value consistently. It seems it is often failing to get a value or gets a previous value. I am testing a login page; on login the authe...
Instances of the class (written in C#) must be placed into the session of an ASP.NET application deployed to a server cluster with distributed sessions. What are the minimal requirements for...
I have the code below in which I am trying to start a method in another class. I am getting the following error:
No overload for 'doPricingService' matches delegate System.Threading.Para...
1) I have created 2 user controls (2 different solutions)
2) Namespaces are "MyUserControl.UserControlA" and "MyUserControl.USerControlB"
3) I want to create one single assembly "MyUserContr...
I have two datagridview questions. 1) how do I set up a doubleclick event on a datagridview, so when a user doubleclicks a cell only in column x, it gets the contents of the cell as a string.?...
(This is a C# client/server app)
I have the following string variable
sTripUpdateSql = "Update trip set " + dc.ColumnName + " = " + sqlValue + " where TrpId = " + dr["TrpId"];
I need ...
I ned to verify the contents ofa databable. How do I iterate through one? I try to use a foreach with a DataRow, but the compiler does not resolve it.
thanks,
newbieweb
I have a PictureBox displaying a given image, but would like to have it display a different image depending on the value is a database.
How can I get it to display a different image? How d...
I've got the following method that is throwing an error...
public static void Download(String strFileName)
{
FtpWebRequest ftp = null;
Stream ...
I have two WPF windows with their Topmost property set to True. I want one of the windows to always be on top of the other, and for both of them to be on top of everything else. Any idea how t...
Experts i am so stuck with this error. I have increased the connection time out as well to about 20 sec. But there is no bail out of this error.Here is the stack trace on the error:
This is the second follow-up question to cell painting. If you are new to this thread, I am trying the change the color of a cell in a datagridview based on its content. The problem I am run...
I have a ListView that I added a few columns to. I would like to format one of the columns as currency, but can't seem to find this option... It should be under the Column Properties... Doe...
How to get the names of all printers in a network (intranet) in a asp.net, c#.net web app.
I have used the following code. but It only returns the name of printers installed on the server ...