Questions tagged as 'c#'

1
answer

How to add a MaterialDesignInXamlToolkit controller with C # in XAML

I'm using MaterialDesignInXamlToolkit to create the design of my program in WPF, I'm new to WPF and wanted to know how I can add the controller card by C #, as I do with Button or any other native WPF controller MaterialDesignInXamlToolkit...
asked by 26.02.2017 / 13:18
2
answers

exceeded the 'max_user_connections' resource

I'm not sure what the reason for the error I'm having is but it looks like it's something about the open connections in the database, where an error is occurring if the application tries to create more connections than the limit. I think this is...
asked by 03.02.2017 / 20:30
2
answers

Error executing program using "args"

I'm trying to run a program by passing some values as partions on the command line but it is returning the error below. C:\Users\joao.mello\Documents\C#> .\exercicio32.exe 5 1 0 4 9 32 4    Unhandled Exception: System.IndexOutOfRangeExce...
asked by 05.02.2017 / 23:13
3
answers

C # Make Enter key jump to either textBox or comboBox field

How can I do in a function, that when the person gives enter, it jumps to the field below, which can be both a combobox and a textbox? I currently have this function, but it jumps to the last textbox, thus logging in, without going through th...
asked by 23.02.2017 / 14:06
1
answer

Start application through windows service [closed]

Is it possible to start an .exe application when starting Windows Service C #? Something of the Type: protected override void OnStart(string[] args) { Process.Start(@"C:\service.exe"); } protected override void OnS...
asked by 26.01.2017 / 18:03
1
answer

How to display an image hosted in my App?

I would like to display a promotional image within a PicutreBox in my app, but this image will vary depending on the promotion the Company is making. Is there any code that PictureBox shows a certain image that is hosted somewhe...
asked by 18.01.2017 / 20:09
2
answers

How to reference an html button in C #

I have the following HTML code snippet: ThiscodebelongstoapageofanAirOS(internetradio)radio.IneedtoreferencethisbuttoninsideaprogrammadeinWindowsFormsandmakeafunctionforittobeexecutedandtheradioreboot.Iwasonlyabletogetelementswithanidattribu...
asked by 11.01.2017 / 19:47
1
answer

Is it possible to create a class from a routine to open forms? As?

I have several forms that I 'instantiate' by the click event in the toolstrip, however it seems that it is getting polluted since all codes do the same routine changing only the parameters. Event to open and check if the Registration - Clients...
asked by 26.09.2017 / 14:10
3
answers

Check If DataGridView field of type DataGridViewCheckBoxColumn is checked

I have a dataGridView and I check to see if the column of type DataGridViewCheckBoxColumn has any selected row. If there is at least one line with this field selected I execute an action type, otherwise I will trigger a message of type Messabox....
asked by 06.10.2017 / 23:50
2
answers

How to restore a database backup from an application in C #?

I've been looking into how to restore a BD backup through a C # application, but I had a hard time understanding logic. I have already programmed a form that does the backup and I do not have and idea of how a restoration would work, for...
asked by 21.11.2016 / 17:43