Questions tagged as 'winforms'

1
answer

Giving ctrl + f in webbrowser by code

Do you know of any way to give ctrl + f to something by code in a WebBrowser instance?     
asked by 28.07.2016 / 19:50
3
answers

How to identify a key in the TextBox? [duplicate]

I would like to create an event that would only be started when the user pressed "Enter" inside the TextBox, but how do I identify when the user pressed this key?     
asked by 11.07.2016 / 16:30
0
answers

Form creation sometimes stays behind main form

Person, I'm creating my child forms as follows. BuscaUsuario _chld = new BuscaUsuario(); _chld.ShowDialog(); _chld.Dispose(); It turns out that if the user presses alt + tab or for example if I'm debugging and goes to IDE and then I go b...
asked by 31.05.2016 / 20:59
1
answer

Communication between forms

Hello. I'm working on an application that should work as follows: When it is executed, a main form (Form1) should always open and stay in the background. This main form contains options for the user to make their choices through a button with th...
asked by 14.06.2016 / 15:54
1
answer

CurrentItemChanged event of a BindingSource is not called when changing a subitem

I have a class like this: public class Foo { #region Construtor public Foo() { } #endregion #region Propriedades public virtual int? Id { get; set; } public virtual string Description { get; set; } public vir...
asked by 16.05.2016 / 14:24
0
answers

Display class relationship in DataGridView?

I'm trying to display a class relationship in the DataGridView but I'm not getting it. I have 3 classes Produto and Unidade and ItemVenda , the Unidade class refers to the product unit if it is KG / LT / UN etc ... In...
asked by 10.04.2016 / 15:31
0
answers

How to leave a semi-static [closed]

IcreatedatrackBarwith2thumbsfortheusercontrol,butinform.designifIdragthecomponentchangingthewidth,messupthetrackbar,Iwantedtotakethatdragoptiontotheside,justleaveitavailableupanddownliketheotherscomponentsthatalreadyexistinthetoolbox.     
asked by 23.03.2016 / 18:03
2
answers

Best way to retrieve data for a Datagridview?

What is the best way to retrieve data from a table directly to a DataGridView? I have a lot of doubts, because a lot of people do not recommend using UnitOfWork, which makes it much easier and makes the code much cleaner. var unitOfWork...
asked by 10.03.2016 / 21:04
1
answer

iis ado.net version

Good, I have the following code: private void AspNet35() { String sWebSite = "W3SVC/1"; DirectoryEntry site = new DirectoryEntry("IIS://localhost/" + sWebSite + @"/Root"); try { PropertyV...
asked by 23.03.2016 / 10:16
1
answer

C # - Do not show form being mounted to the user

Hello. In VBA excel has a very cool feature. Application.ScreenUpdating = False Application.ScreenUpdating = True This prevents you from displaying the screen being mounted to the user and show only after everything is loaded. I w...
asked by 20.01.2016 / 18:32