Questions tagged as '.net'

2
answers

Center controls within a maximized form

I would like to put cinco controles picturebo x aligned just in the top middle of the screen. (The length of the screen is different for each user). To begin with, my idea is that the window is maximizada , to obtain the total si...
asked by 14.08.2018 / 22:01
2
answers

foreach with classes that do not 'implement' IEnumerable / IEnumerator

I saw the comment of Equidad in one of my answers with an interesting detail and is that implemented an interface (or part of it) without using the operator : to the right of the name of the object. Provided the following code: p...
asked by 20.07.2016 / 14:28
1
answer

Change a string of a string to bold

I'm doing a program in VB and I have a text string, which I add to a RichTextBox , but I want to add some things to it. What I want to achieve is that the text be like the following: " More than most of the measurements that...
asked by 21.06.2017 / 00:15
3
answers

Question: Create SQL statements from a flat txt (C #)

Good afternoon, I am trying to create a small program to convert plain text (.txt) into another document with SQL statements (insert), usually I usually deal with other functionalities or projects and it has caught me with a little low guard, Do...
asked by 04.10.2016 / 14:07
1
answer

Error with file on vb.net

When I opened Visual Studio and wanted to modify a form in which I was working in Design, I was shown Screenshot: But if I look at the folder, there are the files. What should I do to show me that Design again in Design?     
asked by 06.10.2016 / 19:24
2
answers

Know the type of object and its properties from Listobject

I have a method that receives a list of objects: private void escribe(List<object> lista) that a priori I do not know what class they are and I want to know at the time of execution the properties of each of the objects within the lis...
asked by 03.08.2017 / 09:46
2
answers

How to pass data in DataGridView to Other DataGridView?

I have two DataGridView in this way: What I need is that the CheckBox that are selected from the first DatagridView when pressing the Button "add" are passed to the second DataGridView .NOTA: The total...
asked by 31.07.2017 / 15:22
1
answer

Convert a switch to linq

Is there any way to convert this SWITCH to LINQ ? switch (row["grupo"]) { case "Genera ICAs": enuMetodo = TipoMovimientosStock.GeneraIca; break; case "Genera Remito de Compras": enuMetodo = TipoMovimientosSto...
asked by 12.09.2017 / 15:26
2
answers

Better performance in consultation with BD Oracle

I am interested in finding a way to have a better performance in this scenario:    I have N stored procedures that must return the result of queries ( Select * from ... ).    These stored procedures are mapped with the Entity Framewor...
asked by 10.10.2016 / 14:37
3
answers

How to remove characters in a string string in C #

I have a problem cutting this string string . I get it by scanner, but the scanner pulls out prefixes and suffixes and I want to eliminate them. The code works for me with a string like this ~200|12345678~ and returns 12345678...
asked by 11.11.2016 / 20:16