Questions tagged as 'winforms'

1
answer

Remove Dynamic Picturebox

I have an "Add" button which when clicked opens a screen for the user to select an image, that image is added to a flowLayoutPanel. A dynamic "Remove" button is added to the pictureBox, when that button is clicked the pictureBox should be remove...
asked by 08.03.2018 / 21:13
1
answer

How to get the selected item

Hello, I'd like some help, I'm using the DEVEXPRESS framework. I have a form with a GridControl, in this GridControl I have a DoubleClick event. When I click the selected line I want to get only the ID of the line. Using a normal grid I make...
asked by 10.03.2018 / 18:54
2
answers

What's wrong with my code?

I want to make a program that checks if any file is null, but is throwing an exception, what's wrong with my code ?: static List<string> GetFiles(string path) { string[] directories = Directory.GetDirectories(path);...
asked by 24.02.2018 / 01:05
1
answer

RichTextBox specific line in bold

I have a RichTextBox where I need to leave the lines of positions [0] and [6] in bold. I have the following code: rtbDadosAdicionais.Select(0, rtbDadosAdicionais.Lines[0].Length); rtbDadosAdicionais.SelectionFont = new Font("", 15, FontSt...
asked by 17.03.2018 / 19:08
1
answer

Class to write / read TXT files with formatting [closed]

I am using% w / o TextWriter to read / write a card voucher as a Classe but it does not have the property for letter size, spacing, etc. formatting. This makes the voucher printed on the thermal printer go out without symmetry. My que...
asked by 01.02.2018 / 14:27
1
answer

Replace "Web Browser" vb.net

I want to change the default browser of visual studio, I would like to use another to run some scripts that are having problems in internet explorer. I would like suggestions and examples of how to do this. Thanks in advance.     
asked by 16.01.2018 / 20:55
2
answers

Microsoft Visual Studio 2013 - There were compilation errors. Do you want to continue and run the latest successful build?

Personal is as follows: I am developing a program Windows Form to desktop in C# using Visual Studio 2013 . However, sometimes when I click on iniciar/ start it appears some compilation errors of the project b...
asked by 08.01.2018 / 13:27
1
answer

Error using System.Windows.Forms.SendKeys.Send ("% {DOWN}") [closed]

In a windows form application I have a DateTimePicker and I do not want it to display the date so I did the following: public CadNovoPagamento() { InitializeComponent(); dtpEmissao.Value = DateTime.Now; dtpEmissao.Format = DateTi...
asked by 14.12.2017 / 11:58
1
answer

Prevent, confirm or dismiss in javascript alerts on a VB.NET webbrowser object

I'm experiencing problems with javascript alerts in my webbrowser. I am creating an automation and after submitting to some pages in the webbrowser, javascript alerts with the protocol generated by the page, however with the alert opened the web...
asked by 20.12.2017 / 13:53
1
answer

How to check if the line has been broken?

I use File.ReadAllText to read the text inside a .txt file. private void label9_TextChanged(object sender, EventArgs e) { string text = File.ReadAllText($@"{pathname}", Encoding.UTF8); if (text.Length) // Como fazer aqui...
asked by 05.12.2017 / 00:19