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.
import java.awt.Dimension;
import javax.swing.JPanel;
Dimension dim = new Dimension();
dim.height=300;
dim.width=500;
JPanel pan = new JPanel();
pan.setPreferredSize(dim);
37
Java
GUI, Komponenten allgemein
L&F setzen/ändern
import javax.swing.UIManager;
// Set the L&F to the standard OS-Theme
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
// there are other possibilites and L&F-Sets... Just google ;-)
// For example look at L2FProd or Substance...
55
Delphi
GUI, Komponenten allgemein
Mit Return ein Ereignis im Textfeld auslösen
procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
begin
if Key = #13 then
begin
Key := #0;
ShowMessage('Auswerten ...');
end;
end;
68
VB.NET
GUI, Komponenten allgemein
Dezimal/Währungseingabe in zwei Textboxen
Sub TextBox1KeyUp(sender As Object, e As KeyEventArgs)
If ((e.KeyCode = Keys.Oemcomma) OR (e.KeyCode = Keys.Decimal)) Then
CType(Sender,TextBox).Text = CType(Sender,TextBox).Text.Trim(",")
CType(Sender,TextBox).SelectionStart = CType(Sender,TextBox).Text.Length
For i As Integer = 0 To Me.Controls.Count-1
If Me.Controls.Item(i).TabIndex = CType(Sender,TextBox).TabIndex+1 Then
CType(Me.Controls.Item(i),TextBox).Focus
End If
Next
End If
End Sub
43
Bash Script
Sonstiges
Kopfzeile sh-Datei
#!/bin/sh
# Einfaches Beispiel ...
90
C#
Sonstiges
Multithreading in einer Anwendung
public MainWindow()
{
var newThread = new System.Threading.Thread(doMethode);
newThread.Start("Hallo Welt!");
}
private void doMethode(object message)
{
Console.WriteLine(message);
}
93
C#
Sonstiges
SolidColorBrush von String Konventieren
inputBox.BorderBrush = new BrushConverter().ConvertFromString("#FF7F9DB9") as SolidColorBrush;
95
C#
Sonstiges
Programm mit Parameter starten
public void StartApp(string filePath, string arguments)
{
var newProcess = new Process();
newProcess.StartInfo.FileName = filePath;
newProcess.StartInfo.Arguments = arguments;
newProcess.Start();
}