Posts by Ezequiel Barbosa • 1,361 points
25 posts
-
0
votes1
answer483
viewsQ: How to delete (multiple) branches from a Git repository?
I want to create a repository Fork that has dozens of branches, but I will only use 2 branches. I wanted to know A simple way to delete all branches that I won’t use because I’ve been trying to…
-
2
votes3
answers303
viewsQ: Border Radius does not work within a CSS class
I’m trying to round the edges of a navigation bar through a class and it doesn’t work. https://jsfiddle.net/oqkt1z9f/ I marked an element <ul> with class navbar, I removed the padding, the…
-
9
votes4
answers810
viewsQ: SQL LIKE clause does not work with Sqlparameter
Following the recommendation that the @Maniero fez in that question I decided to parametrize the darlings SQL of my program. Behold: private void btnConsulta_Click(object sender, EventArgs e) { if…
-
7
votes2
answers642
viewsQ: Error while trying to update table using C#
I created a form to change a table, but my update is not working. cnxCli.sel =/*"set dateformat dmy \n"+ */ "update Cliente" + "set Nome = '" + txtNome.Text +"'," + "Rg = '" + mskRg.Text + "'," +…
-
3
votes1
answer462
viewsQ: Access MDF database from executable folder
I am having an annoying problem solving as I want my application to access the database file from the folder where the executable is, because on every computer installed that folder may be on a…
c#asked Ezequiel Barbosa 1,361 -
1
votes1
answer59
viewsQ: Is it possible to create individual events for the instances of a form in C#?
Suppose I have a customer registration form: var frmCadCli1 = new frmCadastroCliente(); And I just called that form: frmCadCli1.Show(); When I call this form, immediately before it is shown the…
-
4
votes3
answers155
viewsQ: Why should I use the typeof keyword to assign a data source to a Bindingsource.Datasource?
For example: BindingSource bs = new BindingSource(); bs.DataSource = typeof(object); Why should I use typeof(object) instead of just object or even "object"? Edit: As other people have asked,…
-
9
votes1
answer1327
viewsQ: Databinding, Dataset, Dataadapter and Datagridview: What are they for, how to use and in what order?
I’ve been trying to learn how to use Datagridview control for weeks (yes, weeks). Connecting to the bank using the designer is very easy, but I want to do it by code and I can’t. I saw some…
-
2
votes1
answer414
viewsQ: How to connect to SQL Server with VB.NET?
I’ve tried like five tutorials. See the code in C# string minhaString = "Server=.\\sqlexpress;Trusted_Connection=true;" + "Timeout=10;" + "Database =bdcadastro;"; SqlConnection minhaConexao = new…
-
5
votes2
answers185
viewsQ: How to know which methods and properties I put in a class?
I’m going to do my first commercial system using C#. The system will be used to manage the guests and rooms of a small hotel, for now that’s all he asked for. Obviously I am happy with that, while…
-
1
votes1
answer401
viewsQ: What does this Assembly code do?
I’m playing with the Cheat Engine in a little MMO RPG game. By tracking the game values in RAM memory through the Cheat Engine functions, I found the memory addresses where the player’s experience…
assemblyasked Ezequiel Barbosa 1,361 -
3
votes2
answers496
viewsA: What exactly is hypertext?
According to W3.org: Hypertext is a text that is not limited to being always linear. Hypertext is any text that contains links for other texts. The term was coined by Ted Nelson in 1965. Wikipedia…
-
25
votes2
answers1593
viewsQ: What is the "?" operator?
I am seeing the functions that C# 6.0 brought, and an example of code appeared: C# 5.0 var vendor = new Company(); var location = default(string); if (vendor != null) if (vendor.ContactPerson !=…
-
6
votes2
answers7523
viewsA: conio. h library in C language for Ubuntu
conio.h is not part of the standard C language library. It was actually programmed to be used in MS-DOS, but you probably want to use that port, which is basically a conio.h linux port. Note that…
-
4
votes1
answer179
viewsQ: Is it already possible to make commercial applications with Visual C++ Cross Platform?
Visual Studio 2015 brought with it Visual C++ Cross Platform, which I think works similarly to Xamarin. You can now make business apps with Visual C++ Cross Platform?
-
1
votes1
answer3938
viewsQ: Is Xamarin a viable option for mobile development?
I need to develop for mobile and I was thinking of Xamarin as an option, and then I went to do some research and found out that: The Xamarin is paid, and the price is half salty for a cheap…
-
13
votes1
answer718
viewsQ: Why should I use the Stringbuilder class instead of the String class?
Why these two classes are different, because it seems to me that they could be one class. For example, the method Append, it seems to me that he does the same thing as the operator +.…
-
1
votes2
answers100
viewsQ: I define a value in a class, when I instate the same value is another
This is the code where I defined a class Animal is a breeding method that asks the species of the animal and defines its state as alive: public class Animal { public bool estaVivo, usaDrogas =…
-
2
votes1
answer364
viewsA: MYSQL - FK ERROR
I am not using Mysql Server, but giving an adapted in your SQL discovered two things: You’re trying to create the foreign keys before the tables, that is impossible. The foreign key field codBanco…
-
4
votes4
answers872
viewsQ: I need different ways to rearrange characters within a string, how do I do that?
I would like answers in C, C#, or just an algorithm, but preferably an implementation already in the C# language because that’s what I’m using. For example, suppose I have to find out if a number is…
-
5
votes2
answers3445
viewsA: How to create a program in C and use Java/C#GUI?
If the application will be only for Windows it is easier to do in Visual Basic, for example, because the . NET Framework is quite complete will provide everything you need to make a commercial…
-
0
votes1
answer371
viewsQ: I can run any query on SQL Server without passing credentials, is that normal?
I was looking to restart the SQL Server service, that’s when I discovered a way to manipulate the database without logging into the system. See: I opened Management Studio. I canceled the…
-
3
votes1
answer159
viewsQ: How do I select multiple fields in the same query?
I created a dummy bank with the following structure: Below are also the numbered SQL Server scripts for database creation, if necessary. SQL Fiddle Now, what I want to do is make an appointment…
-
3
votes1
answer189
viewsQ: Is there a simple method to test a logical data model?
It’s been a while since I learned the Entity-Relationship Model, and my teacher taught me that after the logical model is ready it’s always interesting to test the model to check for possible…
-
4
votes3
answers1701
viewsQ: How to represent "is-one" relationships in the logical model?
I’m creating a data model where a client entity is also a person, legal or physical. However, in the state in which it is found it will not be possible to implement it physically, because I am not…