Questions tagged as 'c#'

0
answers

Picturebox-Location incrementing with float

I have a Picturebox that is created dynamically, and I'm moving it randomly on a panel. It works perfectly when I increment your location.X / Y with integers. In certain cases, however, I need Picturebox to move at a certain angle, tha...
asked by 27.03.2018 / 21:48
1
answer

ViewBag and ViewData

I'm starting a career in development, and in the project here, I found a ViewData being used, and through my searches I can not update it in a ActionResult in the controller. I ended up testing with a ViewBag too, where I wa...
asked by 27.03.2018 / 16:13
1
answer

Force POSTBACK

I am passing information from variable click_teste to TextBox with id other TextBox is parameter to a query of Gridview . . PostBack : <asp:TextBox ID="outros" runat="server"...
asked by 20.03.2018 / 15:55
1
answer

Take Character from a column in the datagridviwer

I'm having a problem, I have a datagridviwer that populates a table in the database, only to fill in the precious points of the contents of the columns. You can use Replace in a datagridviewr column, or some other way to clean the characters and...
asked by 20.03.2018 / 17:19
1
answer

Traversing attributes of an object that is in a list in C #

Good evening, I need help please. I'm writing a program that reads a file. An object is created for each line of the file. Each object is stored in a list. My intention is, when loading the initial form of the program, the TextBox shoul...
asked by 18.03.2018 / 23:09
0
answers

I can not select a listbox item and get the other information in the database from that selected item

The idea of the software is to select a name in the combobox (cmb_nomeGu) and thus to play in the listbox (lst_result) all the dates found that contain the chosen name, then click on the existing dates to search the last information, which is th...
asked by 18.03.2018 / 16:08
2
answers

Reading Files in C #

Good evening, a little help. I have the following file: 34543;PRIMEIRA PESSOA;230778;CASADO;BANCARIO 23543;SEGUNDA PESSOA;12051985;CASADO;ADMINISTRADOR DE EMPRESAS 36116;TERCEIRA PESSOA;04081954;DIVORCIADO;APOSENTADO/PENSIONISTA 52455;QUART...
asked by 18.03.2018 / 22:26
1
answer

Web service with C #

I need to consume a web service. I added the server in Add web reference , everything went well. In the documentation it asks for the following: getPedido(login as string, passwd as string, XML as string) as String Register or Retr...
asked by 18.03.2018 / 22:11
1
answer

How do I change the csv header, C #

I am generating a CSV file, but I would like the header to be equal to anottation displayName . When I export, displayName is ignored. method call string csv = ListToCSV(resultado); private string ListToCSV<T>(IEnumerable<T>...
asked by 19.03.2018 / 18:36
0
answers

Doubt about implementation of N: N relationship using C #

I'm having to make a relationship between N: N classes but storing objects in memory, follows the following relationship: Imadetheimplementationasfollowsandwouldliketoknowifitiscorrectornot.  ChemicalClasspublicclassChemical{publicintID{get;...
asked by 19.03.2018 / 12:37