Questions tagged as 'c#'

2
answers

When can I use Linq and when to use Sql? [closed]

I have a series of doubts about when to use each of these, it would help me a lot to know their experiences     
asked by 13.11.2018 / 17:26
1
answer

Media Player plays video on black screen with sound

Good afternoon, I have a Windows Media Player control in C # which opens the video but does not show an image, it appears with a black image, but the sound can be heard. In the Designer window I have the following: private void InitializeC...
asked by 06.05.2016 / 16:14
1
answer

MenuStrip, get where I am

I am doing a desktop application in c #, it has a MenuStrip and I would like to make an Activity Log, that is, write down in a table the user's information and what activities he did. I have the method that is executed when you click o...
asked by 26.07.2016 / 10:35
2
answers

How to get the Day I'm looking for with the DateTime tool in C #?

I have a problem when trying to get a specific day with the DateTime property of C #, since it only brings me one number and it is always the 1st. Date method code var fecha = DateTime.Now.ToString("d/M/yyyy"); DateTime moment = new DateTim...
asked by 17.01.2017 / 15:58
1
answer

How can I find a Data in a DatagridView without a database

Hello very good to all my question is how I can search a datagridview data using a textbox, what I mean is typing and if it matches what you type in the texbox it appears in the datagridview without a database.     
asked by 06.03.2018 / 06:07
2
answers

DropDownList Asp.NET C # MVC

Then I leave the images (1,2). I have the BD "School" which has the Student and Group tables, and I want to add a DropDownList which shows the groups that exist in the BD and select it. I'd appreciate your help.     
asked by 30.03.2018 / 05:14
2
answers

Show image in Picturebox from SQL [closed]

I saved the image using the MemoryStream and tried to extract it by converting it back to Image using: byte[] datos = new byte[]; Datos = (byte[])row[campo imagen]; MemoryStream ms = new MemoryStream(datos); Picturebox.Image = Image.Fr...
asked by 17.01.2016 / 01:11
1
answer

add rows, columns and diagnoales [closed]

I must make a magic painting, I already have the matrix and I read the values that are in it, later I want to first add the rows, but I do not know how to do so that automatically positions 0.0,0,1,0,2 etc etc , I have the final part of the code...
asked by 03.08.2017 / 20:17
1
answer

Get the Windows 10 theme

Good morning. My question is if there is any way to get in C # if the system is in dark / light mode / theme and make the requested theme of the app be the same. The configuration of the theme in Windows is this: For example, if I ha...
asked by 22.07.2017 / 16:51
1
answer

How can I get the location from which my program is running? - C #

I would like to know how I can obtain the location from which my program is running. For example: I created a text editor and I want that if I put my program to start by default in a txt file, that the program when opening it tells me the add...
asked by 30.04.2017 / 18:08