Questions tagged as 'winforms'

1
answer

Transparent Form with C #

Next I'm doing a tutorial tutorial for the program, I did not find a good solution to do. I created one screen over another with transparency, so far so good, but when I placed an image on this screen, it also became transparent. So I created...
asked by 11.01.2017 / 12:12
1
answer

Get variable value in another visual basic form

I'm having a problem getting the value of a variável from another form . I tried to follow some macoratti tutorials but none of the 3 that had them worked there. In this case, I have form1 and form2 , the second find...
asked by 19.01.2017 / 17:48
1
answer

Object reference not set to an instance of a Visual Studio object

I am having problem in the id variable of my dataGridView, it is giving the following error: "Object reference not set to an instance of a Visual Studio object". I am using Windows Form, MySQL and the DataGridView. Here is the code: //Declaran...
asked by 04.11.2016 / 11:53
1
answer

Write a value at a certain position on the screen, outside the form [closed]

I'm developing an application in Windows Forms, with C #. For example: I want to write a text in the youtube search field, as can be seen through: link Can someone tell me how I can send a string, sentence, to a particular position on the s...
asked by 20.09.2016 / 01:14
1
answer

Error sorting GridView with empty row column [closed]

You're making a mistake here that I'm not sure how to circumvent, since my program reads a website, sometimes the site can get out of the norm and end up leaving something empty, so when my GridView tries to sort, since it is bugging ... Here...
asked by 06.09.2016 / 11:44
1
answer

Object List (with some objects as attributes) for DataGridView - C # [duplicate]

How do I show the Street or Zip Code from the list below in the DataGridView. People List ( to show in datagridview ) List<Pessoa> Pessoas; Person Class using System; public class Pessoa { public int id { get; set; } p...
asked by 13.10.2016 / 20:43
1
answer

Edit .txt using stream and a button

I have a form in C # and winforms, and I need to, when I click a button, it edit a .txt and add a line of text. Follow the commented code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using...
asked by 05.08.2016 / 16:39
1
answer

How to get the directory path

I'm using WinForm and trying to save a string with SaveFileDialog but I can not pass the chosen directory in SaveFileDialog to the System.IO.File.WriteAllLines; private void saveCategoriesToolStripMenuItem_Click(object sender, EventArg...
asked by 02.08.2016 / 05:34
1
answer

Draw outside the area of a form

Using C # with the Windows Forms Application project type is it possible to draw things out of the form? I would like to draw a mouse-stretchable and repositionable square, where should I start? Here's an example image of what I'm looking for...
asked by 02.08.2016 / 11:01
1
answer

Dynamic filters using lambda

I have a table    ErrorsProduction_Registros that links to another table called    ErrorsProducao_Tipos. I need to perform dynamic filters in the ErrorsProductionRegister table using lambda expressions. If I run the filters like...
asked by 13.09.2016 / 22:34