Questions tagged as 'visual-studio-2017'

2
answers

Change a variable within a function each time you call it

This program must cause two bots to attack each other, first one then the other, and I made an attack function but I do not know how to make it general for when I call it the first time the variables that are inside the function correspond to th...
asked by 07.10.2018 / 17:53
1
answer

Pass variables and perform actions between classes in C #

I am learning the C # language, also using the VisualStudio tool, and I can not pass a variable (BtnColor in the code) from one class to another, and then perform an action from the value of that variable. This is the form I try to create in Vis...
asked by 25.08.2018 / 22:52
2
answers

Problem generating a path with Path.Combine

I have the following problem, which has a bit of a head ... :( I am formatting 3 string to form a path with Path.Combine (C # and WPF) in the first string has its origin in a TextBox (this is the problematic), the other two I get from an object....
asked by 28.06.2018 / 16:17
1
answer

C # Change the action of the enter in DataGridView

I want to change the default action so that the code does not skip the line, what I want to achieve is that when you touch the Enter select that row and return an ok. if (e.KeyChar == Convert.ToChar(Keys.Enter)) { this.DialogResult = Sys...
asked by 13.07.2018 / 09:40
1
answer

Verify js syntax in Visual Studio

I would like to know if Visual Studio 2017 has a tool to verify the java script syntax when compiling a project. Currently if I have an error a js file, I only realize how much the eject and the browser reports the error. Thanks for the he...
asked by 28.03.2018 / 22:54
2
answers

NotifyIcon goes crazy. VB.NET

I comment on my application quickly and then the problem: I have two Forms, each of them has a button that opens the other and closes that one (changes form, go). The Form1 has a NotifyIcon for, in case of closing both windows,...
asked by 21.03.2018 / 08:59
1
answer

The ReportViewer control in VS 2017 is not displayed

I am working with Visual Studio 2017. Add a ReportViewer control to a form and it is not shown on the form itself. I see that the solution adds the necessary references, the control is seen in the outline of the document and I add a lower bar...
asked by 21.08.2017 / 17:52
1
answer

VS marks as error the syntax for a fragment

return <> <NavItem> <NavLink href={'/app/logout?returnUrl=${returnUrl}'}>Log out</NavLink> </NavItem> </> I have the previous code fragment inside a tsx file, in a folder in visua...
asked by 20.04.2018 / 19:45
4
answers

Why can not I access the methods of a class library?

The practice program that I am doing consists of creating an English deck and writing the cards in console (The King of Hearts -for example-), but they do not come out in order, but at random. I have a class library with 2 classes and 2 enum to...
asked by 29.06.2017 / 21:07
2
answers

Problem connecting to a mysql database hosted on a server with C #

Problem C # and Mysql My problem is that my application created in c # with the IDE Visual Studio 2017 sends me the following message:    unable to connect to any of the specified mysql hosts This problem arose since I moved my local d...
asked by 21.06.2017 / 07:49