Questions tagged as 'c#'

2
answers

Links in strip menu

Is it possible to link to some site on the Windows Forms Strip Menu? Ihavethefollowingcodesnippetintheclickofmymenu,butitdoesnotopenthelink.privatevoidmenuSobre_Click(objectsender,EventArgse){WebBrowserwebBrowser1=newWebBrowser();webBrowser1...
asked by 27.01.2017 / 13:32
1
answer

Simple C # doubt on Unity

I do not know anything about C #, but I'm trying to develop a simple project on Unity. It consists of moving a crane. I did the code to move the bridge, but if I keep holding the button it keeps moving beyond the limit. How can I limit the mo...
asked by 01.11.2016 / 10:50
1
answer

How to return several values of a class?

Follow the code below: Controller: public ActionResult teste1(int num1, int num2) { // Aqui quero obter os valores da variável model1 e model2 da classe MyClass var result = MyClass.Teste2(num1 , num2); } Model: public class M...
asked by 03.05.2017 / 04:23
1
answer

Assign HTML code to a Jquery alert

I'm using this alert, but I wanted to insert a text break window.alert("Não existe produto cadastrado no sistema! Para continuar devemos cadastrar pelo menos um produto"); I wanted to break the line after the exclamation, how do I get it in...
asked by 12.11.2016 / 21:41
1
answer

asp.net HTTP Client get with query string

Developed in an asp.net mvc I intend to implement an HTTP request that with this part of the code the meteorologies present me a "list" with the metrics of the query data_de_leitura=2016-11-11&hora_de_leitura={null} ie 3 meteor...
asked by 14.11.2016 / 01:34
1
answer

How to use the EventArgs of events

Maybe the question was very comprehensive, but I wanted to know how to use EventArgs of some components, such as EventArgs and Button_Click . Explaining the question a little better, for example. I'm creating an applicatio...
asked by 03.11.2016 / 15:04
1
answer

Using Simpleject with Class Library

I'm starting to use simpleject for dependency injection. I created the BootStrapper class to register the containers: public class BootStrapper { public static void RegisterServices(Container container) { container.Registe...
asked by 02.11.2016 / 08:54
1
answer

Many Deletion for Many Entity Framework

I'm having a big problem with a many-to-many deletion in Entity Framework 6. Below is my three classes. Budget class. public class Orcamento { public int Id { get; set; } public int ClienteId { get; set; } publi...
asked by 02.02.2017 / 01:43
2
answers

Convert int to hex

What do I want to do, is it possible? convert the value variable to hex. private void button1_Click(object sender, EventArgs e) { int value = 255; byte[] buffer = new byte[5]; buffer[0] = 0xff; buffer[1] = value...
asked by 31.01.2017 / 16:26
1
answer

Fill in a Dropdown (Select)

I need to create a select In this pattern: <select id="Cidades"> <option></option> </select> Where the user will select his state, and then there will be a jquery that searches the cities according to the selecte...
asked by 21.11.2016 / 23:11