Posts by pnet • 14,727 points
909 posts
-
2
votes1
answer75
viewsA: Error in WPF application, but only on some machines
I solved the problem as follows. I generated another app with messages and Try.. catch in several places(debug in run time) and saw that the connection with the BD gave error. There is a tag in my…
-
2
votes1
answer95
viewsQ: Publish of WPF applications
I made a Publish of a WPF application with the CD-ROM option. Well, I noticed that it creates some folders, an Autorun.inf, a setup.exe and a Nome_Programa.Application. I was doing some tests,…
-
1
votes1
answer75
viewsQ: Error in WPF application, but only on some machines
I made a small application to extract a file .zip. It works, but when I run on three other machines, it doesn’t work. The error is this: An error occurred while creating ZIP file Undefined object…
-
3
votes3
answers118
viewsQ: Code repetition in the same method
I have a method that generates some information. As I was in a hurry to deliver, I did and sent. Well, it turns out, seeing the code more carefully, I realized how inelegant it is. It was made to…
-
3
votes1
answer791
viewsA: File being used in another process
I disabled the Enabled Visual Studio hosting process, rode. How it generated a Warnings of the visual, I returned to enable. I drove without the debug and when I returned everything as it was…
-
-1
votes1
answer791
viewsQ: File being used in another process
Suddenly my application started giving this error: This started this week, along with a problem I’m trying to solve in another post. I’m beginning to think they have correlation. This gives, give ok…
-
1
votes1
answer51
viewsQ: Problems with Folderbrowserdialog. Application hangs
I have an application (WPF) that has been working for a couple of months without problems. I needed to make a change. When doing, in the line where you should choose a printer to store the result of…
-
2
votes2
answers3651
viewsA: The 'Oracle.DataAccess.Client.Oracleconnection' type initializer triggered an exception with c#
I took out TNS and made the system search the server and that way I got the connection to the bank and it worked. This is the way I found: <add name="FarmExternaConnect" connectionString="Data…
-
1
votes2
answers3651
viewsQ: The 'Oracle.DataAccess.Client.Oracleconnection' type initializer triggered an exception with c#
My wpf program worked very well. They moved it to make some changes. Well, they asked me to change some folders in the application. Before I make any changes I went to run the application and is…
-
2
votes1
answer781
viewsQ: Doubt when declaring Enum with string
numDeclarate an Enum type string, like this: public enum SEXO { M = "Masculino", F = "Feminino" } As I do to have an Enum similar to the one above. That way give error: Cannot implicitly Convert…
-
1
votes1
answer1045
viewsQ: Insert large amount of data into sql server
I downloaded a list of cities on the internet. There are more than 5,000 municipalities. I tried a simple Insert and could not. Exceeded the maximum number of 1000 records. Then I tried with Bulk,…
-
0
votes1
answer1156
viewsQ: Calling another page with bootstrap button is not working
This very simple javascript does not work: function Nova() { location.href = 'pme_beneficiarios.html'; } That’s the call on the button: <button type="button" class="btn btn-primary add-task"…
-
2
votes2
answers61
viewsQ: Script giving syntax error after ;
This script gives error: <script> $(document).ready(function () { $('#dataSolicitacao').datepicker({ format: "DD/MM/yyyy", language: "pt-BR", minViewMode: 0; orientation: auto }); });…
-
4
votes3
answers3525
viewsQ: Brazil default date format does not work on bootstrap
I have this datepicker component of bootstrap <div class="col-md-2"> <input id="dataSolicitacao" type="text" name="timepicker" class="b-datepicker form-control form-white"…
-
0
votes1
answer1027
viewsQ: How do I put a controller next to each other with bootstrap
I have this html with bootstrap. I need to put some textbox next to each other. I used a horizontal control and it didn’t work. In Producer control I put two textbox and it didn’t work. <form…
-
2
votes2
answers498
viewsQ: I can’t run an animated gif on my WPF project
I downloaded a gif. link. The problem that the link gives a double click and works. Drag to my application and no longer works. The image appears, but stopped and not moving. I want to put this gif…
-
0
votes1
answer202
viewsA: My oracle BD search does not fetch result
I killed the problem. When I debugged, I triggered the reading and as it does not come back to read the fetch again, when arriving at the while already arrived without information. It was my fault…
-
0
votes1
answer202
viewsQ: My oracle BD search does not fetch result
I have a method, using Ado.Net to bring information from BD(Oracle 11g). There is information in table(6 records) and when run by C# no record. See the code below: public class ConexaoBanco { string…
-
3
votes1
answer176
viewsQ: Progressbar with WPF and Ionic.zip
I use the Ionic.zip dll and on it unzipo and rezipo some files and folders. My manager asked me to put a ProgressBar and I’m doubtful how to do it using WPF. It’s very fast and I don’t know if it’s…
-
-1
votes1
answer1802
viewsQ: Copy content from a folder with all subfolders and files into a new one
I’m having a hard time creating a folder inside another one and moving the content into that new folder. The rule is: I unzip a file .zip inside that directory:C:\Teste_Zip\Destino_Teste\Temp/>.…
-
0
votes0
answers24
viewsQ: My Getdirectories() only brings a directory, when there is 5
I have that line. DirectoryInfo dir = new DirectoryInfo(sourceDirName); Then I try to get all the subfolders, like this: DirectoryInfo[] dirs = dir.GetDirectories(); The Array dirs is only loaded…
-
2
votes1
answer67
viewsQ: How to open a meditation in c#
I have a class ZipFile in my project. In it there is a method called ExtractAll, which is the method used in my file extraction routine. I need to look at this method(if possible), because when I…
-
1
votes0
answers64
viewsQ: Error while compiling Delphi project 5. Says it cannot rename file
I try to run the application and gives me this error. How do I fix it? Delphi5…
-
4
votes1
answer104
viewsQ: Search does not recognize file . zip as valid archive inside a folder
I did this routine to delete empty folders, no files inside. foreach(var folder in folder_new) { if (Directory.Exists(folder)) { if (Directory.GetFiles(folder, "*",…
-
0
votes1
answer37
viewsQ: I do not know the feasibility of doing in lambda or Linq my expression
I have these two lists: List<string> dirZipDireto = ConfigurationManager.AppSettings["Dir_Zip_Direto"].Split(';').ToList(); List<string> arquivos = Directory.GetFiles(caminhoCommiter,…
-
0
votes3
answers38
viewsA: How do I replace windows form Dialogresul in wpf?
That’s how it worked: Nullable<bool> result = ofd1.ShowDialog(); if(result == true) { try { LocalizacaoZip = ofd1.FileName; nome_arquivo_zip =…
-
1
votes3
answers38
viewsQ: How do I replace windows form Dialogresul in wpf?
I have that code: DialogResult dr = ofd1.ShowDialog(); Moving to WPF does not work. I searched the internet and found nothing yet, that satisfy me. As I replace in WPF? Note: ofd1 is a OpenDialog…
-
0
votes1
answer163
viewsQ: Use of except in a lambda expression
I have that expression and it doesn’t work: var busca = listaCommiter.Where(l => l.Except(listaFarm.ToString())); I’ve already removed Tostring() and still nothing. listaCommiter and listaFarm…
-
0
votes1
answer24
viewsA: Create key with more than one file and delete everything at once
I did. With Get(), I can pass the name of the key and not its position. Solved.
-
0
votes1
answer24
viewsQ: Create key with more than one file and delete everything at once
Can I create in the app.config a key pointing to multiple directories and the code pointing to that key and deleting all directories at once? Should each directory be separated by ";"? Type like…
-
1
votes2
answers49
viewsQ: Filename coming from a txt and files. Is there a difference in comparison?
I created a list with 13 filenames, which I extracted using Getfilename(). Another list I broke a txt file and loaded these names into another list. So I have this: ListaNomeArquivo ListaNomeTxt I…
-
0
votes1
answer839
viewsQ: Error when reassembling a string. Size is out
I can’t fill out that list the way it is: foreach (var item in text) { string[] linha = item.Split('\n'); foreach (var i in linha) { string nova_string = i.Substring(0, i.LastIndexOf("\r"));…
-
1
votes3
answers1171
viewsQ: Break a txt file into multiple items in a string list
I have a txt file with 2000 names. When I load into a list, Count is 1 and not 2000. Of course, because as it comes to a text file is only 1. It turns out, that the file is organized with \n\r…
-
1
votes1
answer4453
viewsQ: Copy string from a position
I have it: private List<string> _listaCommiter() { string s = string.Empty; string _start = ConfigurationSettings.AppSettings["dir_inicio"]; List<string> lista = new…
-
-2
votes2
answers58
viewsQ: Fetch file in multiple folder from a base folder, except the folder
string[] arquivos = Directory.GetFiles(@"C:\Teste_Zip\web", "*", SearchOption.AllDirectories); The question is: I need to get the files except in a folder. I could not except the folder. The folder…
-
-1
votes2
answers503
viewsQ: Search in text file and compare with others
I have two string lists. Received and Fixed. Well, I would like with just one lambda expression, scroll through the list Recebido on the list Fixo and if there is no file within Fixo, I save to…
-
3
votes1
answer3292
viewsQ: Move text in pl/sql to uppercase
I have many create table scripts, Quence and etc, but everything is in lowercase, what the colleague did. Deleting line by line and capitalizing is unproductive as there are more than 1000 scripts…
-
1
votes1
answer61
viewsQ: How to bring the name of the fields and type of an oracle table in c#
How do I bring up the name and type of fields in a table, using Oracle and C#(WPF)?
-
4
votes1
answer831
viewsQ: Automatic class generator
How do I take the BD(Oracle) entity and generate in my system a class that represents that entity? Ex: I have this entity Client ID int Primary key Name varchar(100) And now with the tool it already…
-
-1
votes2
answers831
viewsQ: Using dynamic maps with the Google Maps API
I see examples of how to use the Google Maps API and usually in the examples I see, there is always a default coordinate (initial). Now, let’s say I make a program and distribute this application to…
-
2
votes1
answer1355
viewsQ: How to register a DLL in the system?
I have a DLL that I can’t register in the system. If I take the original DLL, it is registered, but if I take the one that was generated in the company machine, it records. I don’t know if I have to…
-
2
votes2
answers539
viewsA: Error Windows cannot find 'svcutil.exe'
What was missing was to take the full path of the application, which in the case was this C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools and put in the environment variable…
-
0
votes2
answers539
viewsQ: Error Windows cannot find 'svcutil.exe'
Among the many projects here in the company, there is one that when I compile gives the following error: Windows cannot find 'svcutil.exe' What do I do to fix that mistake? This is the version of my…
-
2
votes1
answer1313
viewsQ: Some keys are not working on my VS2015
The keys F1 à F12, are not working. I use a DELL notebook, with windows 10. I put the cursor on top of a class, I gave F12 to go to the function and nothing. I gave a F5 and the project did not run.…
-
-3
votes1
answer143
viewsQ: Multiple selection does not work in IE
I made a post on how with a choice, select all the items. I received a reply, which solved. well, solved only in Chrome, but in IE does not work. As the question changed the "direction", so I…
-
2
votes1
answer73
viewsQ: Select(HTML) with multiple selection. Mark one and should mark all, not working
I have this select with multiples select <tr> <td width="10%" class="label_right">Autorização Prévia: </td> <td class="label_left"> <select…
-
-1
votes1
answer1203
viewsQ: Doubt about window.location.href()
I know that window.open() will be open to url in a new window and that the window.location.href() will open on the calling page. It happens that when I use the window.location.href(), I put in…
-
2
votes1
answer1161
viewsQ: align contents of a <div> in the center of the screen
I have a loading and he’s in a <div>. Turns out he always shoots left and I’d like him to stay in the center of the page, but as it is in a <div>, I thought it might be this.…
-
0
votes1
answer185
viewsQ: When I pass date filter for the same day, query comes back empty and there is data
In my table/base there is data for the day 05/08/2015, happens that when I pass a date filter for the same day, it doesn’t work, it returns empty. If I pass like this: 04/08/2015 and 05/08/2015…
-
1
votes1
answer72
viewsQ: Show string in excel without single quote
I have a routine that generates an excel. It has a field in BD(Oracle) that is varchar. This means that in the database it is formatted with zeros on the left. Well, what happens is that when it is…