Ale
help
so when I press some buttons, these together with what I write on them appear in the flowpanel in the past form, I would like without dependency injection so that there are many classes that call form1, any idea is welcome
https://paste.ofcode.org/X22Jdk6uGrP5nXiyTrULhL
3 replies
✅ enter the button,I need this thing very urgently
So I have a form that has 3 buttons, each button sits in the groupbox a panel with various buttons that are created by hand in the code. I want a path to open when I press enter. So, with the help of the arrows, I want to go through those buttons in the panel and when I press enter, that path will open. (I haven't implemented that path yet, I first wanted to see if it would work to move with the arrows on the buttons). In the first method private void Square_KeyDown(object sender, KeyEventArgs e) is the event for the entire gen load interface. Here I checked if it moves to the left or to the right to move to the other button. For each button that was created manually, I put an index, so the first button has index 0 (selectedIndex = 0; so I have a group box on top of which there is a panel and there are buttons created by man. I want to use the arrows to go through these buttons and like a button to open when water enters. I tried something and it didn't work https://paste.ofcode.org/tmY8FykMqwpewsALC8RB3x
6 replies
Enter and move buttons
so I have a group box on top of which there is a panel and there are buttons created by man. I want to use the arrows to go through these buttons and like a button to open when water enters. I tried something and it didn't work https://paste.ofcode.org/tmY8FykMqwpewsALC8RB3x
7 replies
Put a pdf in a form
I want to select a pdf from the pc and format it in a button or something. When I press the button to open the file. I really don't know what to do, the project is in winforms c#. I know about savefiledialog but I don't know how to do the rest
8 replies
open a path
I have a panel with several buttons, I want it to open a path when I tap on one of the buttons, I don't know how to do that. For 2 days I have been struggling and completely demoralized.
I want to navigate in the panel among the buttons with the keyboard and if I want to access a book, press enter
If someone can help me and explain, I put some important pieces of code
https://paste.ofcode.org/ebpjnPZwb5rZ7fAwmFZSBt
10 replies
ado net
I did an inner join and then I created a table where I stored the data. There are 4 columns, I used getString with the index 0, it went to the second column, I used the index 1, and it said that the index was too big, and it's kind of stupid that I have 4 columns. I wanted to extract a value from each column and it only worked if I wrote 0 everywhere asa arata tabelul
CREATE TABLE Cars (Name varchar(50) NOT NULL, Model varchar (50) NOT NULL, Fabrication varchar(50) NOT NULL, Price decimal(18,2) NOT NULL).
5 replies
Acces data from another form
I don't understand why in this example it doesn't show the name of the car, if someone can explain it to me in more detail or tell me how to make it work. It only appears that,, the car is,,. Thank you very much! https://paste.ofcode.org/35K3CPDgRTAqSEnwsaWGB57
131 replies
use parameter from a class of type form in another form
I have a user class with different parameters. I make instances and use them in a form class to store what users write in textboxes. In another form class, I need all the values stored in the textboxes for a method, but when I debug and enter that class, everything appears as null. I don't know why I went to court to have access to them. If someone can give me some advice. Thank you very much, sorry for my bad english
1 replies