Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Hiding the console log window is not work #703

Open
FPGA-KING opened this issue Jan 13, 2022 · 1 comment
Open

Hiding the console log window is not work #703

FPGA-KING opened this issue Jan 13, 2022 · 1 comment

Comments

@FPGA-KING
Copy link

I have an issue / a question (pick one) about Vlc.DotNet.

Generic information

  • Vlc.DotNet version :
  • Vlc.DotNet project used : Samples.WinForms.Minimal
  • libvlc version : (Please fill) (x86/x64) + how did you get it?
  • .net version : (Please fill)
  • Project language : C#
  • Project build architecture : x86
  • Operating system :Windows/x64

Summary

  • [O ] I confirm that my issue doesn't happen in VLC itself.

Hello, I am now testing the example project ( Samples.WindowForm.Minimal)
When I run the project, the console window for log is shown.
After that, Player window is also shown.

However, I couldn't find how to not showing console window

may be, You say this is duplicate of #267

However, #267 also not work.

I attached code below.

any mistake ?

private void InitializeComponent()
{

        this.vlcControl = new Vlc.DotNet.Forms.VlcControl();
        ((System.ComponentModel.ISupportInitialize)(this.vlcControl)).BeginInit();
        this.SuspendLayout();
        // 
        // vlcControl
        // 
        this.vlcControl.BackColor = System.Drawing.Color.Black;
        this.vlcControl.Dock = System.Windows.Forms.DockStyle.Fill;
        this.vlcControl.Location = new System.Drawing.Point(0, 0);
        this.vlcControl.Name = "vlcControl";
        this.vlcControl.Size = new System.Drawing.Size(944, 501);
        this.vlcControl.Spu = -1;
        this.vlcControl.TabIndex = 0;
        this.vlcControl.Text = "vlcControl1";
        this.vlcControl.VlcLibDirectory = null;
        
        **this.vlcControl.VlcMediaplayerOptions = new string[] { "--verbose=0", "--file-logging", @"--logfile=.\log.txt" };**
        this.vlcControl.VlcLibDirectoryNeeded += new System.EventHandler<Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs>(this.vlcControl_VlcLibDirectoryNeeded);
        // 
        // Sample
        // 
        this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
        this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
        this.ClientSize = new System.Drawing.Size(944, 501);
        this.Controls.Add(this.vlcControl);
        this.Name = "Sample";
        this.Text = "WinForms sample";
        ((System.ComponentModel.ISupportInitialize)(this.vlcControl)).EndInit();
        this.ResumeLayout(false);
      

    }
@jeremyVignelles
Copy link
Collaborator

screenshot please.
There shouldn't be a console window,

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants