Questions tagged as 'c#'

1
answer

Controller get checkbox list from a view

I have a PartialView where I load a list of my object and put a checkbox for the user to mark which list item he wants to save, so I do not know how < in> controller can "know" which check is marked in view , remembering that I put a ch...
asked by 06.02.2016 / 14:22
3
answers

How to search for a file in all folders

How to create an application that performs a full search on a folder or disk looking for a file that neither in the image I've already tried to use Directory.GetFiles and Directory.GetDirectory But when it arrives at a folder...
asked by 16.07.2015 / 21:56
1
answer

GridViewCheckBoxColumn generating a blank column

I'm creating a form of RadControls Winforms Application to perform a simple people registration. In this form I am using Telerik Rad Controls To use the checkbox for each item in the list I used the GridViewCheckBoxColumn This i...
asked by 01.02.2016 / 18:59
1
answer

Block alphabetic ordering in DatagridView

My DataGridView receives product data from a database. They are: description, unit price and quantity. I programmatically added a subtotal column and added the unit price calculation * quantity. As I add items to the datagrid, a function does th...
asked by 31.01.2016 / 19:15
3
answers

How to identify if user is typing number or characters?

I have a textbox: <TextBox GotFocus="buscador_GotFocus" Tap="buscador_Tap" KeyUp="buscador_KeyUp" TextChanged="buscador_TextChanged" Name="buscador" Grid.Row="0" DataContext="Teste"/> In it the user will be able to type any type of ch...
asked by 15.11.2015 / 18:34
1
answer

Resolve color problem in richtextbox in C #

How can I make a click on button1 the text of richTextBox2 become a certain color, and I click on button2 text from the vertical bar | become the color of button2 , my code below effects the color change of the entire...
asked by 30.01.2016 / 20:20
0
answers

Multiples Models in an Asp.Net view MVC c #

I have a question for a month. I have 2 tables or Models and I want them to be manipulated in the view, like: view your data as it leaves the DB and also insert data in the same tables. I saw many tips but none was complete. Can someone help me?...
asked by 03.02.2016 / 15:45
1
answer

Resize an MDI Form without borders

I have already found many tips on how to resize a Form without borders, all functional and good, but they do not work when it comes to an MDI Form. Does anyone have a functional hint on how to resize an MDI Form? Thank you in advance.    ...
asked by 03.02.2016 / 21:11
0
answers

Connection between Entity Framework and Sybase 12

    
asked by 04.02.2016 / 13:36
0
answers

Column Discriminator error EF code first

I'm doing a project in asp.net, I'm using C # classes to make the connection to the database, but every time I try to insert a user into the database, it generates the following error:    invalid column name "Discriminator" Note: My bank...
asked by 24.01.2016 / 04:00