My problem is that I want to display a form which has four quadrants which I can detect the mouse moving in to so that I can apply a roll-over image to each image. I also need another image d...
I have a class outside the mainForm with a method in it. I want to make that method run as a separate thread. If that method calls other methods in the same class, are they all part of the s...
What purpose does this notation serve? "@UserID"
This is the code that generated this error: (Funny thing is if I copy the outputted value of the trnDate var and put it in single quotes the records are set in the DB just fine. However if I...
I'm news on a project and trying to understand some new things I am seeing in the code.
For example, this:
private readonly IAuthorizationService authorizationService;
is decl...
i have added a button to my detailview that should send and email of certain fields. Below is an example of the code behind the scenes.
protected void Button1_Click(object sender, EventArgs...
Hi,
I have this C#/ASP.NET .aspx page.
I have the following relevant code at the beginning:
<script runat="server">
public string ID="";
protected override void OnLoad(EventArgs...
I need to declare and construct a generic list that will contains an object called "Statistics"
Could someone please provide me the format for the declaration, constructor and accessors?
...
I want to use this simple code:
if (employeeID == null && yearEligible != null || employeeID != null && yearEligible == null)
because I believe it is the same as:
...
Hi,
I'm building this module for a site I'm building in C#/ASP.NET
The code follows my signature.
I'm getting an error on line:
Response.Write(IDPost);
saying:
"The name Resp...
In my C# .NET application I have 2 UserControl objects - PatientInformationBasic and PatientInformationDetail
The PatientInformationBasic collects basic attributes such as Last Name, first Na...
Have a web browser created within a windows application (winform c#).
On the same winform, have a couple of buttons -- would like to be able to press one of the buttons for example -- and t...
I have below code in C# with Connection String and using store procedure with @JobID but its not working. Could u tell me where im making the mistake please.... Also I put the connection strin...
Hi I need to create an error log file and for instance
output
public static void WriteStatusMessage(string _status, string WebServiceRoutine)
{
if (_status.IndexOf("fai...
Hi Experts,
I have an ASP page that has fileUpload control on it. I use this control to browse for a Excel 2007 file. After I have selected the file, I run some C# code under the submit b...
I am getting the return stream value and reading into Binaryreader.
The exception is "Stream not readable"
If I read the steam in the same function, it works.
e.g
public stream Downloa...
I am developing an windows application where i have a list box that contains several items now what i want that user can choose that he can take print start print from item 2 to item 5 not al...
Hi,
I appreciate this is quite a noob-ish question but how do you access elements on your main form (often Form1.cs) from another class?
For example I have several classes (one for exam...
I have been trying to use LINQ to read a simple XML file. I can get it to work for the most part, except when I need to use LINQ for an array of elements
using LINQ i'm trying to create Fil...
Hi experts,
I want to convert 1.1.90.105 to 001.001.090.105 using C# coding.
Thanks.
Jimi
I need to automatically prepare a histogram to include in an email, that I can create without using Excel. Can anyone suggest a tool or method for me to do this?
I have output from a free ...
Hello Experts,
I am getting the following error when my client hits the com+ component
The ServicedComponent being invoked is not correctly configured (Use regsvcs to re-register)...
I am trying to setup a test value before an if statement is evaluated. I need to know the returned value for a database read but I guess I do not understand how to pull the value correctly. ...
I am developing an application where i want to install True Type fonts to windows fonts and that can not be overwrite by any other font with same name..
Hi,
I am looking for the most efficient way to trigger an event in C# at a specific time (specific day and hour). My app will be running as a windows service, so I need it to be as efficient...