Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Form1()
- {
- InitializeComponent();
- CenterToScreen();
- PDFReader();
- DataGridView1.Focus();
- DataGridView1.Rows[0].Cells[1].Selected = true;
- DataGridView1.BeginEdit(true);
- }
- }
- private void Form1_Load(object sender, EventArgs e) {
- this.ClientSize = new Size(w, h);
- this.Show();
- this.BringToFront();
- CenterToScreen();
- DataGridView1_Konfiguration();
- DataGridView1.Enabled = true;
- DataGridView1.Focus();
- DataGridView1.Rows[0].Cells[1].Selected = true;
- DataGridView1.BeginEdit(true);
- }
- private void PDFReader() {
- try{
- if (pdfFileName != null || pdfFileName =="")
- {
- pdfViewer.setShowToolbar(false);
- pdfViewer.setShowScrollbars(false);
- pdfViewer.Visible = true;
- pdfViewer.LoadFile(@pdfFileName);
- pdfViewer.setView("Fit");
- //pdfViewer.Show();
- }
- else
- {
- throw new FileNotFoundException();
- }
- }
- catch (FileNotFoundException e){
- DialogBox.Show("PDF-Pfad nicht gefunden oder falsch", "Stellen Sie sicher, dass der Pfad der PDF-Datei korrekt in der Datei in seeger_salem.xml geschrieben ist"); }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement