Questions tagged as 'winforms'

1
answer

Check item checked

I have the following code inside the Itemchecked event: private void lsvRecebeGrupoLayout_ItemChecked(object sender, ItemCheckedEventArgs e) { Layout lay = new Layout(); GrupoLayout grupo = new GrupoLayout(); RepositorioGrupoLayout...
asked by 11.10.2017 / 18:48
1
answer

Problem to save C # content [closed]

I'm trying to do a replica of Notepad, in the part of saving the content in richTextBox1.Text I'm having the problem:    System.IO.IOException: "The process can not access the 'file path' file because it is already being used by another proce...
asked by 11.10.2017 / 19:23
1
answer

Blank Tablix

I am trying to use the Report Viewer, but the Tablix data is blank Loadtheform:reportViewer1.LocalReport.DataSources.Add(newMicrosoft.Reporting.WinForms.ReportDataSource("Tablix1", NCategoria.Mostrar())); Business Layer ReportViewer C...
asked by 09.10.2017 / 00:17
0
answers

Rotating alternative in Azure

I use the rotating on my system, but doing the same in Azure as a Web Application because Azure does not allow execution of .exe file. So I need some other Framework to replace the Azure .     
asked by 18.09.2017 / 18:42
1
answer

How to change the location of BackgroundImage in windows forms

I have a PictureBox object that has an image defined and by the way I put a background but I can not change the position of the background pb.ImageLocation = Directory.GetCurrentDirectory() + @"\..\..\img\copovazio.png"; I wanted to do so...
asked by 20.09.2017 / 18:15
1
answer

Insert date written in the textbox in a certain format for the database

Code: private void button1_Click(object sender, EventArgs e) { conn.Open(); using (SqlCommand cmd = new SqlCommand("INSERT INTO (StartDate) VALUES(@StartDate)", conn)) { cmd.Parameters.AddWithValu...
asked by 26.09.2017 / 17:00
1
answer

Virtual method with Generic C #

I am creating a Base Form where I am not using it of type "Generic" because of problem with forms inheritance in C # with it. In this basic form, I had to create a virtual method with "Generic", because it will be overwritten in the child cla...
asked by 22.09.2017 / 01:21
1
answer

Playing Values from a DataGridView to another DataGridView

Good night guys, I have a problem. I have a datagridview that is connected to the database. I have a filter on this normal grid. Now I want to get the filtered values of this grid and play in another Normal grid, created in the hand without conne...
asked by 31.08.2017 / 01:58
0
answers

MetroFramework - scrollbar only stylizes after click event

Good luck, there is a bug in the layout that when I load the Grid, scrollbar (horizonal and / or vertical) is only stylized after some click event. For example: Scrollbar before the event: Scrollbarafterevent I'musingtheframework Modern U...
asked by 10.08.2017 / 20:59
0
answers

Writing in TextBox freezes the form

I have a form that has a TextBox and would like to write to it but give a typewriter effect so that the text is not added "dry" completely. I've created a method that gets the text I'd like to add and does the effect as expected. However, the...
asked by 08.09.2017 / 21:45