Questions tagged [Windows Forms] (241)

3
answers

How to implement the algorithm of the Fibonacci search?

Good time of day. I did a lot of digging on the Internet and don't quite understand one thing. Search using the Fibonacci what is it like? I made a very simple program, and at first I thought that this is the same search.. But began to doubt and confused at the end. The program itself is simple and works, but in fact it is...
Earline asked April 19th 20 at 12:47
2
answers

How in c# to do the correct handling clicks?

Have form 1, it creates a form 2, form 2 two textbox and button, you need to do so by clicking this button, the data from textbox1 enrolled in variable 1 and variable 2 in textbox2 and the form closed. Form 2 is run in a separate thread. How to implement it? in particular the button1 handler.click += new EventHandler(method...
kim.Abbott asked April 19th 20 at 12:34
1
answer

How to display tooltip when you enter prohibited characters?

private void emailBox_KeyPress(object sender, KeyPressEventArgs e) { if(!Char.IsLetter(e.KeyChar) && e.KeyChar != 8 && !Char.IsDigit(e.KeyChar) == true) { e.Handled = true; return; } else if (e.KeyChar < 33 && e.KeyChar > 47) // If you enter for example these symbols tooltip climbs { too...
alaina_Koelpin asked April 19th 20 at 11:53
2
answers

Why I can't download the file from the folder on the server using UploadFile?

Trying to download the file from the folder TEST in the root of the program to the server var wc = new WebClient(); var responseFile = Encoding.ASCII.GetString(wc.UploadFile(p, "TEST\\test.txt")); // p is the load address Error "{\"error\":\"empty_file\",\"error_descr\":\"empty_file\",\"error_is_logged\":false}" But if you ...
Jovanny_Kihn93 asked April 18th 20 at 13:31
1
answer

How to take textBox value and pass to the function?

Wrote parser to get the text from the site. There are two functions that get the first page and the last and they work great. The problem is that I'm writing a new function for parsing Wikipedia for example, and the parameter in functwo is string. Tell me how it is possible using a textBox.Text pass text to the function. pr...
kadin_Kuphal45 asked April 18th 20 at 12:48
1
answer

The output of the runtime error in the password?

How to implement output error in the runtime password? That is, when the input of incorrect characters displayed text or hint that entered the incorrect characters As the screen works with Caps Lock
Zelma_Erdm asked April 18th 20 at 12:31
0
answer

How to remove the offset at the bottom of DropDownItems?

Good afternoon. As you can see in the screenshot below, when adding an item to the DropDownItems collection, and then on click of any item from the ContextMenuStrip, the items from the collection of DropDownItems appear a few pixels below parent element from the context menu. Margin and Padding to zero everywhere. How to un...
Delta_Hickle asked April 16th 20 at 11:17
0
answer

How to close an open pdf file when conversion to the new form?

Please tell me how to close an open pdf file when moving to the next form? It opens not in the form but in another window. I have an opening occurs in Edge. Paproval use the Process::Kill, but it did not solve the problem, most likely missing some simple things as a beginner and just starting to understand. Thanks in advanc...
elta.Oberbrunner98 asked April 16th 20 at 10:55
1
answer

How to create a countdown timer in C#?

I have code that displays the text with the effect of the print machine, I need the user clicked on where to see the countdown timer, but the time I preset in advance (e.g. 2 hours) that would stop the timer he needs to enter the password if the password is equal it turns out some kind of message. Part of the code I could d...
kamryn88 asked April 16th 20 at 10:52
0
answer

Implement the condition in a loop or cycle in the cycle?

When you enter data in textbox2(Value) and textbox1(Time) and pressing the button the table is formed DataGridView2. First, the amount calculated as %of the norm of the residual It is necessary that when value in the column, the Remainder was less/equal than 20% of the cost(value in textbox2), then the value in the column a...
Josefa.Erdm asked April 16th 20 at 10:01