Most voted ".net" questions
The Microsoft . NET is a set of libraries and functions that are part of the Basic Class Library (BCL), such as user interface functions, data access, connectivity, cryptography, web development, mathematical algorithms, and network communication.
Learn more…2,689 questions
Sort by count of
-
2
votes1
answer181
viewsHow to set Nothing to a Datetime variable?
I have a function that receives a string and is converted to date time, I did a check for when come string empty, return Nothing. But when I leave the function is returning me the date in this…
-
2
votes1
answer153
viewsGUI Applications - Speeding up! How?
Hello, everybody! My mission is to give agility and fluidity to a software... leave it without those constant locks in each For... For this I created a problem and would like to know if someone can…
-
2
votes1
answer34
viewsInsert objects into an Array without copying them
Is there any way I can put the items in one Array without multiplying them? I am trying the following. I want to add the list items MethodList on the list toAdd, but without repeating what is on the…
-
2
votes2
answers179
viewsPhoto saved in Directory does not appear in Solution Explorer
After a lot of pain, be able to save the photo in the directory and not in the bank. However it does appear on my tablet there in my Solution Explorer, more when opening the photo by windows explore…
-
2
votes2
answers676
viewsHow to Save Datagridview Items within a Column?
I’m creating a Budget Form, similar to the one in the photo: As you can see, on the New button, I have a new line in the bank with the budget number in the field Código and the customer in the field…
-
2
votes2
answers1730
viewsHow to update dataGridView by clicking a button?
I’m using an interface where I have the menustrip left and other form to the right, from there on menustrip has the options to novo(form charges nvCli) and busca(form charges nvConsCli), I need when…
-
2
votes1
answer1608
viewsHow to convert a Decimal value to Datetime?
Can anyone help me with the following question? I have returns of two variables. Examples: 1st - of the type decimal (vdecTotalHoras) and the 2nd - also of the type decimal (vdecMediaAnalise), both…
-
2
votes1
answer80
viewsFilter by group and minimum value
I have the following table: ********************************* * IdPessoa * DataVen * Observ * * 10000000 * 01/01/15 * Teste1 * * 10000001 * 01/01/15 * Teste2 * * 10000000 * 01/01/12 * Teste3 * *…
-
2
votes3
answers1130
viewsWebbrowser - Click on elements of a website
Hello, everybody! Here’s the thing, I need to make my program click on an element. Here’s a photo to make it easier to understand: http://i.imgur.com/Uitnkvt.png I’ve tried a lot of things, but…
-
2
votes1
answer375
viewsUsercontrol x Form - Cancel screen event after UC validation
I have a Usercontrol, which does a validation in the Validated event, and on the screen, I have the Confirm button. When I use the ALT+C shortcut, to run the button event, it will run the Validated…
-
2
votes1
answer159
viewsWrong string to double conversion
I have in my app.config the following code: <add key="FolhaA4" value="0.168056514197457, 6.36413684210526"/> And here the method to get these key values: private double[]…
-
2
votes1
answer97
viewsQuery to SQL database in text saved by Tinymce
I am using Tinymce to edit texts on my website. When I search a word with accent. Ex.: análise, query does not find why the database is saved in HTML análise. I am using ASP.Net MVC with…
-
2
votes1
answer197
viewsJavascript and Activex permissions on IIS
Hello, an Asp.Net MVC application uses Scripting.Filesystemobject to create text files. On the development machine works normally, this application was published on an IIS server and also worked…
-
2
votes1
answer115
viewsDeployment of Sqlite together with . Net application
I finished the C# app with Sqlite, but I saw that I need to send along with the Sqlite base and DLL. Which Sqlite DLL files need to attach and which folder do I have to play these files in?…
-
2
votes4
answers754
viewsString Array Printing in a Single Messagebox
I have a variable which is an array of strings and I want to print their values, but that values and consequently the amount of them is only set after the system works. How can I print on a…
-
2
votes2
answers811
viewsHow to close splash screen?
I developed a screen of splash for my application. It is working perfectly, it opens and directs to the Form2. But I realized that by closing the Form2, I have to stop debugging through Visual…
-
2
votes1
answer1587
viewsCreate a fixed header and footer for all pages
How to create a header with the logo and menu, and a footer with some information, and this header and footer are the same for all pages? No CTRL + C / CTRL + V, because if I change any items, I…
-
2
votes1
answer49
viewsStatic does not share values between web users
It is possible to use a property static without sharing values between different users? Sort of like Session? Ex: of the scenario: private static double valorRetorno; public CalculaValor() {…
-
2
votes1
answer279
viewsStore part of a string in a variable
I receive the string below, through a response.StreamReader: 240144|000|5511946724649|2015-08-30 21:45:51|2015-08-30 21:46:02|1| How should I proceed to store the content between the Pipes each in a…
-
2
votes1
answer124
viewsHow to set the size of a button in centimeters?
I need to place a button with height and width in centimeters, where the size is maintained if accessed in different screen resolutions. Is that possible? If so, how?
-
2
votes2
answers1158
viewsRemove specific data on a stack
I have no idea how to remove a specific data from a stack. I tried to perform the minhaPilha.remove(); and nothing went right. Console.WriteLine("<Pilha>"); Stack<string> minhaPilha =…
-
2
votes2
answers3368
viewsSend email using ASP.NET MVC
How do I send email using ASP.NET MVC? Do you have an option to send without specifying SMTP similar to mail() of PHP?
-
2
votes2
answers675
views -
2
votes1
answer139
viewsnhibernate with more than one database
Hello, I wonder if it is possible to use nhibernate with more than one database, some tables will be in one database and others in another. How would I do that? And in entity mappings, how would I…
-
2
votes1
answer1967
views -
2
votes1
answer300
viewsHow to change the default system browser?
How do I change the default system browser? When opening a link, go to my browser with the link already open? I’ve already made him recognize the links when launching the browser: Public Overrides…
-
2
votes1
answer337
viewsSite . NET with high performance
I will start building a website to purchase tickets and the access forecast to main page is 8000 users per minute. We must use C# . NET and MVC. The database, design standard, ORM and frameworks are…
-
2
votes1
answer73
viewsSummary in classes and methods
How important the use of <summary> in methods and classes? How impactful this is at the level of development? Which is the good side and which is the bad side of its use?…
-
2
votes1
answer135
viewsProblem with Viewbag and Viewdata for Breadcrumb Creation
I need to return from my controller to my project view data to assemble the breadcrumb (structured navigation). My problem is: If I send by Viewbag or Viewdata or Tempdata, and the user is using two…
-
2
votes1
answer87
viewsIs it possible to convert Windows . NET Framework applications to Mac?
Can I get my project ready, and make it run on a Mac OS X? (It was done on . NET Framework 4.5.2, for Windows).
-
2
votes1
answer3478
viewsConvert string to Datetime
How to take from a string something like "30/01/2015", for example, and convert it to datetime and maintaining the same date format? You can validate the date.
-
2
votes2
answers286
viewsDifficulty transcribing a console application program for windows form(C#)
I was learning to use split and at the end I had this code: namespace String_Split { class Program { static void Main(string[] args) { string mensagem_completa; string palavra; string[]…
-
2
votes1
answer4409
viewsDatetime "Null" = 01/01/0001
How to treat a field DateTime that comes as "null" (I know that DateTime can’t be null) of a legacy basis? Consulting a WebService it returns a field DateTime as 01/01/0001 (no value) in the case of…
-
2
votes3
answers533
views -
2
votes1
answer1754
viewsHow to translate Summary errors Asp . net validation error messages?
I can’t find a file that brings me the error message strings to be translated, the Annotation are well, only those that bring more complex errors, such as Passwords must have at least one Digit…
-
2
votes1
answer60
viewsIf there is update a table and insert into another, if not, insert into the two
How to make an expression using EPH so that when a certain list of objects is sent and already exists in the database, it is updated and the change is inserted in another historical entity,…
-
2
votes3
answers337
viewsRecover MAX value from an SQL column
string var = ""; SqlConnection con = new SqlConnection(Banco._strCon); string sql = "select max(end_id) from endereco"; SqlCommand cmd = new SqlCommand(sql, con); con.Open(); SqlDataReader dr =…
-
2
votes1
answer108
viewsRequired validating property of another object
I have the following properties, however when I will validate via Modelstate.Isvalid returns that the description of the user group to be informed that it is User too, but the problem is that I am…
-
2
votes2
answers459
viewsSend parameters to a C#interface
I created a class called descricaoo that will receive some data parameters and will add in a List of an interface called IInstrucao. But give an error "the descricaoo class is not implemented to an…
-
2
votes1
answer29
viewsUse Where Enclosure when class is dynamic
I have a base class: public class MinhaClasse<T> : Controller where T : class { public List<T> BuscarVarios(string nome) { return db.Set<T>().Where(/*?????*/); } } How do I use the…
-
2
votes1
answer34
viewsWhat is the use of variables of type Int32rect
I downloaded a project that works with images and in some cases it uses variables of this type, I did not understand what the purpose of this type of variable in image processing.
-
2
votes1
answer47
viewsEvery time I upload files I get a large amount of errors
I need help. Every time I upload any file in Visual Studio 2015 I get a huge amount of general errors. I’m starting to develop for windows phone and soon when importing the first sample, downloaded…
-
2
votes3
answers352
viewsClose the panel when the mouse exits from the top
I have a Panel in a Form wherever the Panel is smaller than the Form. Here’s what I need to do: when the mouse is off Panel the same must be closed as I could do it? Note: I am trying to do this in…
-
2
votes3
answers7592
viewsError: "Connection Rejected by remote interface" using Firebird 3 in . Net
I have an application in Asp.net, which currently uses Firebird 2.5.1 and works normally. I’m testing the 3.0 Release Candidate for soon migrate the version, but does not open the connection, occurs…
-
2
votes1
answer137
viewsIs there a free algorithm to check syntax C#?
I’m creating a small text editor that has C#code. There is some way inside the program itself, independently, to check if the syntax is correct? Note: I am not using C# to do the text editor. I am…
-
2
votes1
answer425
viewsIs it possible to validate the import of an excel file with regular Expression?
I am importing an excel file using Asp.net and validate to see if it is really an excel or not. I don’t want to use if and else, so I’m trying to do this through Annotations. My main idea now is to…
-
2
votes1
answer446
viewsSeparator of thousands
How could you put thousands apart into one textBoxFor()? Example: Value entered in View 1,321 ( The point is for visual ease only) controller would receive the 1321 value to insert into the base. My…
-
2
votes3
answers1108
viewsManipulating with Update Panel
I’m working with asp:button e asp:Listbox using the event of click of asp:button to popular the listbox. I am trying to manage so that there is no more postBack in the event of click button, but the…
-
2
votes2
answers268
viewsTaking a partial name from a process
Is there any way that I can get a process that’s running under a partial name, like what happens to like in a survey SQL? 'Cause I ask this, I got one team viewer customized here for the company.…
-
2
votes2
answers2325
viewsError 500 when consuming Nfedistribuicaodfe
I’m trying to consume the NFE download service on the farm: https://www1.nfe.fazenda.gov.br/NFeDistribuicaoDFe/NFeDistribuicaoDFe.asmx Specification…