Questions tagged as 'winforms'

1
answer

Unable to connect to remote server - When consuming webservice C #

I have an application developed in C # which consumes a webservice also in C #. In some cases (it is not always and is not everywhere / clients) at the time of consuming webservice I get the following error:    Unable to connect to remo...
asked by 04.03.2015 / 13:29
3
answers

Drag and Change the Position of a GroupBox at Runtime

I have a groupbox that I want the user to be able to drag and change the position at runtime, does anyone figure out any way to do that?     
asked by 17.10.2017 / 19:34
2
answers

Count how many pixels of a color the image has

I'm working on a solution for tattoo studios. I would like to know how it would be possible to determine how many pixels of a given color exists in the image inserted in pictureBox1 . In this image, for example, would it be possible...
asked by 28.12.2015 / 01:50
1
answer

Fill in a collection type property

Good evening folks how to populate a collection type property using this type of structure in a class: public class Order { public string orderNumber {get; set; } public DateTime orderDate {get; set; } private D...
asked by 20.06.2015 / 03:46
1
answer

Save files from a DataGridVIew

I would like to know how do I get all the content that was passed to a DataGridView and save it to an Excel file. So far I have this: private void btnDiretorio_Click(object sender, EventArgs e) { folderBrowserDialog.RootFo...
asked by 17.12.2014 / 14:39
2
answers

Convert and save photo in BD

I'm working on a project where I have to save some photos. So I'm looking at the best way to accomplish the task. I thought of saving to the database, because these photos will be accessed both locally (WinForms application) and via internet...
asked by 08.05.2017 / 00:38
1
answer

Disable dates before the current day in DateTimePicker?

Is it possible in DateTimePicker , disable the days before the current day?     
asked by 07.08.2015 / 18:58
1
answer

Winform - Bug on using Tabcontrol with MetroFramework

So, I'm having a problem when I use Tabcontrol customized by Modern UI MetroFramework . It turns out that a bar appears on the upper left side (scrollbar) and only disappears if I give a click event on it. Ex: I have already looked...
asked by 26.06.2017 / 17:14
1
answer

App.config how to use 'ConnectionString' encrypted

In my app.config I have a section that for my String connection: </configSections> <connectionStrings> <add name="Azure.Onee" connectionString="Server=tcp:tps****.database.windows.net,1433;Data Source=tps****.databas...
asked by 12.09.2016 / 14:52
1
answer

Voice recognition in Pt-BR [duplicate]

How to use Speech Recognition when my OS (Windows 8 x64) is in Pt-BR? I want to use commands in English. I'm using the following code: private void Form1_Load(object sender, EventArgs e) { SpeechRecognizer sr = new Spe...
asked by 03.09.2015 / 20:04