Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by paubri

  1. paubri

    Stringgrid auto column-size

    Hi All. Does anyone know of a way to make stringgrid columns automatically re-size to the length of the longest string in the column. (like when you double click on the line between columns in excel). Thanks, British
  2. paubri

    Test if program is running

    Hi All. Is there a way to tell if an application with the same name is already running before your program opens? i.e. if it is already running then you can close the new instance. Thanks, British
  3. paubri

    Determine if application running through Delphi

    A similar sort of question. Is there a way to tell if an application with the same name is already running before your program opens? i.e. if it is already running then you can close the new instance.
  4. paubri

    Program onclose events

    Thanks Clive. What you said seems to have worked. I was trying to free one of the variables earlier on, and it was doing it again when the program closed.
  5. paubri

    Problem Sending E-Mails

    When I use SM, it comes up with the same error message while I am trying to send the e-mail. It might be because I use Groupwise and not Outlook Express.
  6. paubri

    Program onclose events

    I have a program that I am sending an e-mail through using MAPI. The sending of the e-mails works fine, but when I close the program, it comes up with an error message saying: Project Project1.exe raised exception class EAccessViolation with message 'Access violation at address 7649F877. Read...
  7. paubri

    Program onclose events

    Hi. I was wondering code programs run when the close other than that in the onclose event. My program runs fine, but it come up with an access violation when I close it. How could I prevent this? Any help would be appreciated. British
  8. paubri

    Disable All Keypresses

    I would use the programs onkeypress and onkeydown event handlers. The onkeydown is generally used for unusual keys (ie not A-Z and numbers). In the event handler for onkeydown you can have code like: if key = vk_return then showmessage('enter has been pressed.'); Onkeypress is...
  9. paubri

    Sending a Email through Delphi

    The code works fine using Groupwise. Do you know how to change the code so that it sends the message automatically without showing it? British
  10. paubri

    ShellExecute To Send Mail

    Hi. I have the following code to send an e-mail using the ShellExecute Procedure: ShellExecute(Self.Handle, nil, 'mailto:' + 'paubri@michaelhouse.org' + '?Subject=Test Message Subject' + '&Body=Test Message Body' +...
  11. paubri

    Close form by clicking somewhere else.

    I tested this code out. It is not very efficient, but it'll work. You can play with it and find better ways to use it. From the main form when you are showing the other form have code as follows: procedure TForm1.Button1Click(Sender: TObject); begin SetCaptureControl(Form2); //this sets...
  12. paubri

    Problem Sending E-Mails

    Hi. I have a program that I am trying to send e-mails through. I am using MAPI to send the message. I have the code as follows: MAPIModule := LoadLibrary(PChar(MAPIDLL)); if MAPIModule=0 then begin Result := -1 end else begin try @SM :=...
  13. paubri

    Deleting Applications After Terminate

    Hi. I was wondering whether there is a way for a program to delete itself after it is terminated. At the moment I am doing it through the 'RunOnce' registry entry, but this only delete the application when the computer is restarted. Any ideas? Thanks, British
  14. paubri

    GM Print Suite

    Hi everyone. I have GMPrintSuite 2.61 which works with all delphi versions up to delphi 6. I have just got a copy of delphi 7 and I was wondering if anyone knew if there was an update of the program that will work with delphi 7 and if so where I can get it from. Thanks, British
  15. paubri

    Declaring Variable

    Hi. I've just started to use Python coming from Delphi 5. In delphi you have to declare all variables you are going use, but in Python this doesn't seem to be the case. Is it better to declare them so that the program knows what kind of variable they are or just assigning values to them...

Part and Inventory Search

Back
Top