Questions tagged as 'c#'

1
answer

Passing data to another page

I need your help, I have two forms, Form 1 Form 2 no Formulario 1 I have a date field, filling this date field I want it to copy to Formulario 2 without typing, can it do this using JAVASCRIPT ? I can pull data from...
asked by 28.03.2017 / 15:32
1
answer

How to leave a responsive background in C #?

How do I relate background_image to window size? Example:     It defines my background image, but by changing the size of the window (minimizing) the image gets "incomplete", and does not follow the edges acting as much as independent.     
asked by 28.05.2017 / 14:38
1
answer

Possibility to use MAX in fields DateTime expression Lambda

There is the possibility of using MAX in expression queries lambdas , for example: I would like to get all the records at the age of 18 and get the only last record inserted in the database, that is, with the longest registration...
asked by 06.04.2018 / 16:04
1
answer

Get list of items from a listbox [closed]

I am creating a windows form in C # with a listbox and would like the information saved inside that listbox to be saved in a list to be able to use in another class.     
asked by 21.02.2017 / 19:54
1
answer

Generic interface

I'm creating a Web-Service WCF that will expose methods to do CRUD operations in a database. And I have doubts on how to create the contract interface. The Service will allow CRUD in multiple tables and will involve many complex types lik...
asked by 28.01.2017 / 20:48
1
answer

Passing Date Field Parameters

I'm having a problem until it's simple to solve, but as I'm new to C # I'm not getting the solution. I have two form, I have txtBox of the form that I put the start date and end date, and this form 1 I have a print button which calls from 2 a...
asked by 19.04.2017 / 14:46
1
answer

Catch the value of the ID in the DataGridViewe C # [closed]

I have datagridview and in this grid there is associated data from a database table, so I wanted to get only the id from the value that is in datagridview , and play on a property of type int you receive this value. How do I?    ...
asked by 07.02.2018 / 21:01
1
answer

Create tree structure from a database query

I have a query in the database that results in the following table: How to transform this query into a tree structure like the one below in C #? tree = [{ text = cliente1, items = {[ text = cojunto1, items =[{ text=are...
asked by 10.08.2017 / 20:47
3
answers

Searching and opening files by name

I would like a code that searches the entire directory @"c:\" with a name that I put and opened the folder or folders where they are located. Ex: Process.Start(@"c:\" + PastaOndeEstaLocalizadoOArquivo); Note: Even if I type the up...
asked by 16.09.2017 / 03:33
2
answers

Using Dynamic Maps with the Google Maps API

I see the examples of how to use the Google Maps API and generally in the examples I see, there is always a default (initial) coordinate. Now, let's say that I make a program and distribute this application to several clients in Brazil, for e...
asked by 16.02.2016 / 19:43