Questions tagged as 'winforms'

2
answers

Textbox multiline printing only last item [closed]

I'm using TextBoxt Multiline to do the "issuing" of the report on the system itself. When printing, however, the following message appears: "System.Windows.Forms.TextBox" and then the given. public Formulário() { InitializeComponent...
asked by 03.08.2018 / 13:35
2
answers

Error 1 No overload for method 'MethodHerdado' takes 1 arguments

Error: Error 1 No overload for method 'MétodoHerdado ' takes 1 arguments Code: public void restauraRegistro(DataGridViewRow linha) { try { string codigo = String.Empty; //verifica se...
asked by 10.08.2018 / 15:45
1
answer

How to disable a window? [closed]

I'm looking for some code that disables a window, and after the user enters a login and password in my form the window re-operates. Being more specific and with a bit of detail, I've seen a program do such an action, it worked by the process...
asked by 28.07.2016 / 11:40
2
answers

UPDATE SQL in C # (Windows Forms)

I'm trying to format a default date because there are dates with different formats, as print below. MM/dd/yyyy|dd/MM/yyyy|dd/MM/yyyyhh:MM:ssIwanttochangethesedatestodefaultasdd/mm/yyyyhh:MM:ssIthoughtaboutpullingthedatesandthenclickingbutton...
asked by 21.05.2018 / 20:44
1
answer

How to instantiate an abstract class in C #?

I know that the abstract class can not be instantiated. But I need to call it in Windows Forms and I'm not getting it.     
asked by 27.04.2018 / 17:33
4
answers

How can I download PDF from a web page automatically

Is there any way to download a PDF embed into a web page? I am currently using the control WebBrowser.ShowSaveAsDialog() (Save As) but need to do without it, automatically using C # Windows Forms My code: private void button1_Click...
asked by 24.11.2014 / 17:09
3
answers

DateTime does not update in Console.WriteLine [closed]

When I click the button, something is written to the Console along with the date, but the time does not update. Code: private void button2_Click(object sender, EventArgs e) { Console.WriteLine("{0}", data.ToString("HH:mm:ss:...
asked by 24.09.2017 / 16:39
1
answer

How to add controls created by me in the Visual Studio Toolbox? [closed]

I've created a control for WinForms . But I can not find my control in the toolbox . How can I add my control to the toolbox ?     
asked by 26.10.2016 / 16:48
1
answer

Object reference not defined, what could it be?

"" " Button[,] botoes = new Button[(int)numericUpDownLinhas.Value, (int)numericUpDownColunas.Value]; for(int i = 0; i < (int)numericUpDownLinhas.Value; i++) { for(int j = 0; j < (int)numericUpDownColunas.Value; j++)...
asked by 06.08.2016 / 16:34
1
answer

How to put an exe from inside the form vb.net

Well, I have the code Dim proc As Process proc = Process.Start("notepad.exe") proc.WaitForInputIdle() ' Set the panel control as the application's parent SetParent(proc.MainWindowHandle, Me.BetaBox.Handle) 'Maximize application SendMessage(pro...
asked by 11.04.2016 / 05:36