Manage PlItems

You may optionally enter a comparison operator (<, <=, >, >=, <> or =) at the beginning of each of your search values to specify how the comparison should be done.

Advanced Search
Displaying 101-110 of 300 results.
IDPlCodelangPlGroupPlItemTitleCode 
 
96C#SonstigesProgramm einfach startenProcess.Start("Programm.exe");View Update Delete
28DelphiProzeduren, Funktionen, MethodenVerarbeitung gezielt beendenprocedure TForm1.Proz(Sender: TObject); begin If 1<>2 Then exit; ShowMessage('Test'); end;View Update Delete
44DelphiFilehandlingDatei auf dem Betriebssystem ausführenprocedure TForm1.MenuDummy1Click(Sender: TObject); var ExeName : array[0..255] of char; myFile : String; begin myFile:='winword.exe'; Showmessage('Starte: ' + myFile); StrPCopy(ExeName, myFile); ShellExecute(MainForm.Handle, 'open', ExeName, nil, nil, SW_SHOWNORMAL); // Drucken geht dann so (siehe auch Dateitypen im Windows Explorer): ShellExecute(MainForm.Handle, 'print', ExeName, nil, nil, SW_SHOWNORMAL); end;View Update Delete
55DelphiGUI, Komponenten allgemeinMit Return ein Ereignis im Textfeld auslösenprocedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char); begin if Key = #13 then begin Key := #0; ShowMessage('Auswerten ...'); end; end; View Update Delete
177DelphiFilehandlingPrüfen ob Datei existiertprocedure TForm1.CheckIfFileExists(); var filePath : String; begin filePath:='C:\User\myUser\text.txt'; if FileExists(filePath) then begin ShowMessage('There it is! ;-)'); end else begin ShowMessage('Whow, file is missing at this place :-('); end; end;View Update Delete
72DelphiStringsReplaceprocedure foo() var str1: String; begin str1:=StringReplace('Hello World...','...',[rfReplaceAll, rfIgnoreCase]); // Output of str1 => "Hello World" endView Update Delete
97C#GUI, .NET-WPFWPF Fenster auf Element bewegen. Z.B. die Methode DragMove() in das Event MouseDown-Event des Windowprivate void Window_MouseDown(object sender, MouseButtonEventArgs e) { DragMove(); }View Update Delete
94C#FilehandlingAlle Dateien aus Verzeichnis auslesenprivate void ReadAllFilesInDir(string path) { DirectoryInfo dirInfo = new DirectoryInfo(path); FileInfo[] files = dirInfo.GetFiles(); foreach (FileInfo fiOutput in files) { Console.WriteLine(fiOutput.Name); } }View Update Delete
105C#NetzwerkDownloaden einer Dateiprivate void DownloadFile(string url, string targetFilePath) { WebClient webClient = new WebClient(); webClient.DownloadFileAsync(new Uri(url), targetFilePath); }View Update Delete
101C#SonstigesGibt die Version der aktuellen Applikation als string zurückprivate string GetApplicationVersion() { string[] FullNameSplit = Application.ResourceAssembly.FullName.Split((char)44); return FullNameSplit[1].Replace("Version=", string.Empty).Trim(); }View Update Delete