LizR 171 Posting Virtuoso

I believe its trying to tell you the filename is missing. Which it is, you just give "E:\" there is no filename.

Just checked, yep, thats exactly it.

LizR 171 Posting Virtuoso

Everything in .net is an object, so anything thaat isnt a simple variable type eg, number or string, then it has to have something else specifically tell it what to make into a string..

As for join, type "join" and do a search :) least you have enough of the name to find the answer

LizR 171 Posting Virtuoso

Yep, thats exactly what Id expect it to do, employeeVariable is an array, the toString of which is as you saw telling you its an array of string..

Try checking the "join" function.

LizR 171 Posting Virtuoso

running as a service?

LizR 171 Posting Virtuoso

Listboxes dont support new lines by default..

LizR 171 Posting Virtuoso

oh well, its good to hear you fixed it.

LizR 171 Posting Virtuoso

Dunno I never asked a question here, I assume theres a button to say "resolved" somewhere.

LizR 171 Posting Virtuoso

Yep, its just a way to save your self time if you dont need to do anything special in the get/set of a property.

LizR 171 Posting Virtuoso

You can take the hight and divide it by the row height to work out the number that would be visible, to work out which are on screen, hmm, you could probably use the scroll event to work out what the current position is.

LizR 171 Posting Virtuoso

No worries.

LizR 171 Posting Virtuoso

Installed only once? You would need to make the installer only allow it to be in 1 location, wherever that user chooses it to be, and on running to check the registry for where that location should be, and if its not there, complain and exit.

LizR 171 Posting Virtuoso

An attribute as okutbay says are like

[Flags]

a property is

class thing
{
public String test { get; set; }
}

If you think of it that way its easy not to get confused.

classes etc may have attributes, but they arent properties such as eye color, finger count, height, width etc.

LizR 171 Posting Virtuoso

Or you could look at Indy which comes with Delphi (unless you have turbo) and you download the HTML from the page, search through for each picture and download each picture.

LizR 171 Posting Virtuoso

Ennis has the answer, the best solution is a mutex, the runonce registry only means it will be run once on startup, not it can only have 1 copy running at any time.

LizR 171 Posting Virtuoso

if you look at:

until (call_start >= 0) or (call_start <24);
      repeat                                  //repeat 2
        writeln ('please input call length');
        readln (call_length);
      until call_length > 0;

You have an until without a repeat. Hence you get a confused bit.

LizR 171 Posting Virtuoso

Time_key is set to 100 so your criteria is never met.

LizR 171 Posting Virtuoso

Then I would suggest you use the debug and step through your code, as it implies its not reaching the stage where it would show the dialogs you're expecting.

It would be easier to see in debug mode as to why it doesnt work as it will show you the values of everything

LizR 171 Posting Virtuoso

untested, so

int curpos = versions.IndexOf(ClientVer);
if (curpos == -1)
{
   // version  unknown
}
else
{
  if (curpos<versions.Count-1)
  {
    // send curpos+1 version
  }
  else
  {
    // version is current
  }
}

Im surprised something that simple needed such explaination.

LizR 171 Posting Virtuoso

Um, if you got as far as writing a patching system, you should be able to work out how to add a list of previous version numbers and when someone attaches send them the next one down the list.. Id be surprised

LizR 171 Posting Virtuoso

Well, having read the assignment sticky you know we wont do it for you.

If its deleting all employees then your coding is wrong, which I guess you know, but, we have no code to comment on.

Have you covered databases on your course?

LizR 171 Posting Virtuoso

Attributes in c# terms are different, while you and I call a persons eyes an attributes, in computring terms they are properties.

LizR 171 Posting Virtuoso

Ah.. Take a look at the other options under keydown.. theres one just what you're looking for

LizR 171 Posting Virtuoso

Well the first doesnt use the getfilename from system.io.path so no that wouldnt work

the second, would work more, but again and it doesnt ask for the filename, from the class so you probably got somethng like (Object)

LizR 171 Posting Virtuoso

Define doesnt work, what was your code, how did you use it - it works for me

LizR 171 Posting Virtuoso

The whole purpose of drivers for windows was so that you and everyone else dont have to worry about the printer on the other end.

LizR 171 Posting Virtuoso

Well if you can print to your thermal printer you already have your answers

LizR 171 Posting Virtuoso

Google is a wonderful thing..

Try looking at http://www.add-in-express.com/free-addins/net-internet-explorer-addon.php as an example

LizR 171 Posting Virtuoso

You're using windows, the driver handles it for you.

Lardmeister commented: clear answer, great +4
LizR 171 Posting Virtuoso

Have a read of regular expressions - its not hugely a complicated as a subject, but its power is astronmic, I couldnt do it justice in a post..

As for rep power, you may notice you can "add to "someones rep, the rep power is how much influence they have if they do that

LizR 171 Posting Virtuoso

try the keydown you have far more control then

LizR 171 Posting Virtuoso

I feel I am repeating myself, the server would need to have a history...

LizR 171 Posting Virtuoso

Well as I said, the files would need to be within the directories accessible from your http server setup.

THEN, you need to either put in a fully qualified URL or, the correct relative path to pick up the files..

LizR 171 Posting Virtuoso

Then you would need to place it in the selection statement sent to the db, not the one run client side on your pc

LizR 171 Posting Virtuoso

I dont believe c# has a function of "IsNumeric". You can use reg expresisons to test if its number, you could try parsing it, if its a single character theres an isnumber, but, I dont believe theres an isnumeric.

LizR 171 Posting Virtuoso

Well your current code reads

while not erroring or end of list do stuff

You need to rework that logic. Im not going to code it for you

LizR 171 Posting Virtuoso

Learn SMTP its really easy.

LizR 171 Posting Virtuoso

The server would have to send to the client the next version up from the one it has, so it needs to keep a history of the versions that have been before, and send the appropriate "patch"

LizR 171 Posting Virtuoso

Problem is you havent told it what to do about the exception, you need to tell it to do something.. and you then need to tell it to continue.. Without that, its doing exactly what you've told it to do

LizR 171 Posting Virtuoso

OK but you're reinventing the wheel thats already included in the smtp which comes with .net

LizR 171 Posting Virtuoso

Well your server version is clearly 1004, if your client says its 1000, then either you do the annoying online game style where you downloaded 1001, and restart, and then get 1002, and restart, etc..
or
you keep a record of which files changed in which patches and for all the files that changed in patches greater than the current file number, send patches.

LizR 171 Posting Virtuoso

While Ive never specifically coded it in c# sure there is, its a device like everything else in linux

LizR 171 Posting Virtuoso

Other than its not called "Com1" under linux etc, nothing.. long as its compiled in the kernel and not in use.

PS Im not saying you are calling it com1, more that windows code for com1 etc wouldnt work

LizR 171 Posting Virtuoso

It shouldnt do not in the database you selected it from. Assuming you have indexes 30k records should be processable in a matter of 1 or 2 seconds.

Im thinking your selection code needs tweeking as the DB should do the join, which is why its slow.

it should go something more like

str1 = "
select * from dbo.Executive inner join Retailer on Executive.ExecutiveCode = Retailer.salesExecutiveCode"

which should join your 2 tables in 1 big grid, if you then only need 1 value such as retailercode, then add the "where RetailerCode='00000949'" to that original selection..

Not only have you then only downloaded the records who matched the criteria, you've made the potentially remote server do all the work not your app.

LizR 171 Posting Virtuoso

Didnt really answer my question, are you talking pop, exchange, imap, smtp? If so, next to all thats already premade..

what do you need your library to do thats not covered?

LizR 171 Posting Virtuoso

depends what you mean by mail library. a lot of commands are made for you and built into the frame work.

LizR 171 Posting Virtuoso

why not just do a joined query on the server, its much more efficient

LizR 171 Posting Virtuoso

Like I suggested..

LizR 171 Posting Virtuoso

Ah, if you're sticking the entire contents of a 75mb file in your richtext box, this may not help as this is yet another copy of your data.. Especially as you then manipulate that rather than an internal string..

I'll take a further look when I get to work (where Im heading now)

LizR 171 Posting Virtuoso

And the error is?

LizR 171 Posting Virtuoso

Firstly, is the c:\folder1 on the server or the client machine?

If its the client machine you'd need to use file://C:/Folder1/abc.txt (that maybe file:///C:.. but cant remember)

if you mean on the server then folder1 has to be accessible from you website, if its not, then either, you have to do some working of a display asp system to read in a given file from outside the webtree, or, you move the folder.