Posts by Pekita • 135 points
21 posts
-
0
votes2
answers101
viewsQ: Like warping a button?
How do I deform a button, using the Paint button event to have the shape of the key Enter or even the shape of a circle?
-
1
votes1
answer117
viewsA: tcp server chat
Problem solved by one break; here private void KeepListening() { // While the server is running while (ServRunning == true) { // Accept a pending connection tcpClient = tlsClient.AcceptTcpClient();…
-
-3
votes1
answer117
viewsQ: tcp server chat
Here’s the thing, I have a tcp server for chat. whenever I turn on the server and then close the form, the program gives error because it is in an infinite loop in this part of the code: while…
-
0
votes2
answers1390
viewsA: Automatic name generator
I discovered the answer I remembered a code I used on the switch break; so I did the same thing on Forever. But if you know any simpler way to do the code I would appreciate it if you would tell me…
-
-3
votes2
answers1390
viewsQ: Automatic name generator
It’s the secret I needed when someone clicked a button in a text box appeared a name randomly for example I have a list: Neuro, Food, Capitalism when I clicked the button, the textbox appeared Neuro…
-
2
votes2
answers2514
viewsQ: How to delete a specific line from a file?
My goal is that when the user removes an item from a Listbox, the program delete a certain line from a file. I have this text in a file .txt: linha1 linha2 linha3 In the Listbox contains the…
-
0
votes1
answer33
viewsA: List box detects that iteam is being selected
I was able to figure out how to make it simpler than it looks private void ListItemsBox_DoubleClick(object sender, EventArgs e) { string path = AppDomain.CurrentDomain.BaseDirectory.ToString() +…
-
-1
votes2
answers410
viewsA: Factorial C# Calculator
That’s how I did it now You can get some ideas using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using…
-
-1
votes1
answer33
viewsQ: List box detects that iteam is being selected
I want when I double click on the listbox item, when start it do an action, when I double click on any other item it do another action. Code: //btnWhenClicked private void btnWhenStart_Click(object…
-
1
votes1
answer65
viewsA: Edit . txt using stream and a button
Since no one answered I went to search and finally found out, in case someone has the same problem here is the solution: string caminho = AppDomain.CurrentDomain.BaseDirectory.ToString() +…
-
0
votes1
answer65
viewsQ: Edit . txt using stream and a button
I have a form in c# and winforms, and I need that, when I click a button, it edits a . txt and add a line of text. Follow the commented code: using System; using System.Collections.Generic; using…
-
0
votes1
answer1967
viewsQ: Size and position of div
Hello everyone I’m trying for a div next to another div as you can see below, I’m not sure what I’m doing wrong here’s the code: .div { background-color: #cecece; margin-right: 700px;…
-
1
votes1
answer44
viewsQ: Cmd Builder similar to the look of All
Hello to everyone I would like to know how to do that when I click a button my program compile Cs files and more to make one . exe and run as the visual.
-
-5
votes1
answer189
viewsQ: c# how to make an attack ping the ip of a computer
Hello everyone I needed to know how can I ping an ip using winforms someone can help me is someone stole the Steam account from a friend?
-
-2
votes1
answer34
viewsQ: c# cmd if writing something else shows a msg
Hello I would like to know how I could do on cmd so that when someone wrote anything other than Tree it appeared a msg to say "what you wrote" was not recognized...
-
2
votes1
answer51
viewsQ: Show message if a particular word is typed
How do I get someone to write on cmd: > tree A message appears using the following command: Console.Write("");
-
1
votes1
answer152
viewsQ: c# when pressed at the same time alt + F4 opens a new form
Good evening or good morning depending on where you live I was wondering if any of you could tell me how to open a new form when pressed at the same time alt + F4
-
0
votes2
answers106
viewsQ: Until the progressbar value reaches 100 do not close the window
Before you start, it’s not really a virus, it’s a game. I wish that while the progressibar does not reach 100% could not close the window by clicking the button and a popup appears saying that it…
-
1
votes1
answer424
viewsQ: As time passes and progressbar grows change the label text
Before you start it’s just a game not a virus. My goal is when the progressbar reaches 1% put the text as downloading viruses and when it reaches 50% put the text as Installing virus but instead it…
-
0
votes1
answer2213
viewsQ: C# When you open form 2 wait 5 seconds and open form 3
I need that when loading form 2 the program waited 5 seconds in order to automatically open form 3 as I do this? private void LetTheGameStart_Load(object sender, EventArgs e) { timer1.Start(); }…
-
0
votes1
answer211
viewsQ: C# in form 2 does not show string in label
I don’t understand why Form 2 doesn’t show label text in form 1. form 1 private void button1_Click(object sender, EventArgs e) { string Username = textBox1.Text; HelloForm HF = new HelloForm();…