blah blah blah is here! blah blah » Close

0
votes
1 answers

Simplest way to delete certain records from Access database

I know this is incredibly basic, but I can't find a simple, straightforward answer that isn't missing some critical element. I have an access database. I need to do some data integrity checking before it gets updated. There are multiple ...

0
votes
1 answers

Strip duplicate records from corrupted Access table

I can think of ways to do this, but they are painstaking, so I am looking for what others think is the cleanest, quickest method. I'm starting with a corrupted table that originally had a unique key. After Access repairs the database, the ...

0
votes
1 answers

How to Stop and Restart a Service I did not write.

I have searched and all I find are references to starting and stopping a service I am creating myself. The situation is that I need to automate some database maintenance, but I need to stop a service to do it then restart the service when ...

0
votes
1 answers

Drag and drop items

I'm looking for suggestions. The problem is that as a newb to c# I don't know what it can do or how to implement what it can do. I need some ideas as to how to create a report program that allows you to drag fields from a list onto a form ...

0
votes
1 answers

Why does this work on Vista Home and not on XP Pro?

string listname = "Sheet1"; OleDbConnection con = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + filename + ";Extended Properties=Excel 8.0"); con.Open(); try ...

0
votes
1 answers

reading from older xls files

It appears that to read data from an older style xls (pre 2007) file, you need to have Excel on the computer (automating). I'm writing a conversion program and I can't count on that. I need to read every line in an xls file, filter it to ...

0
votes
1 answers

day/date

Is there a function that will take a date and return what day of the week it was? If not, how would you approach the code for writing a function to accomplish this?

0
votes
1 answers

Create a directory

If it is so simple to create a file, why can't I find how to create a new directory? I found how to check to see if a directory exists and get its properties, but nowhere do I see how to create a new directory.

0
votes
1 answers

String is read only?

I have a file with a collection of lines. In each line, at the same place, is an extra space that does not belong. I know which position it is. I need to remove it. I cannot be sure what is before or after it, so a substitution leaving ...

0
votes
1 answers

The Trouble with Timers

I have been playing with a simple timer for exercise purposes at home. For the life of me, I can't get the statements right. I have three input fields Exercise Duration Rest Period Duration Number of Exercise Cycles and a Start Button ...

0
votes
1 answers

Proper syntax for building a fixed length string.

I'm doing another conversion. This time the output is fixed length fields. What is the proper way to format something like: outputstring[1,5]=employee.id; outputstring[6,35]=employee.fullname; outpurstring[36,40]=hours; No matter how ...

0
votes
1 answers

Tutorial for creating dlls needed

Can anyone recommend a good tutorial for creating dlls?

0
votes
1 answers

Installer customizability

I've looked and can't find this, although it seems reasonable to think it can be done. I'm looking to have a utility install and place its shortcut in the Start Menu folder of the program it is designed to work with. Is it possible to cha ...

0
votes
1 answers

time/date lockout

This isn't so much a C# question as a Windows general question. I need to create a simple utility to lock the time/date setting from even a Windows administrator. The problem is that I have no idea where to start. Any suggestions? I kno ...

0
votes
1 answers

How to close program after catching a fatal error

Okay, this is going to sound like an idiot's question, but I have looked and cannot find the answer. I put in the following code to catch an error. The program needs to clean up after itself and shut down after the error message is acknow ...

Feedback