OK, my Form2 is named GjendjaForm, and after I rename Form2 with GjendjaForm it shows me the following errors. GjendjaForm.emriBox is inaccessible due to its protection level GjendjaForm.mbiemriBox is inaccessible due to its protection level GjendjaForm.xhirollogariaBox is inaccessible due to its protection level also it says that: Error 3 An object reference is required for the non-static field, method, or property 'LlogariaBankare.GjendjaForm.mbiemriBox' C:\Users\Driton Gashi\Documents\Visual Studio 2008\Projects\LlogariaBankare\LlogariaBankare\KlientetForm.cs 112 17 LlogariaBankare
You need to make your textboxes public, or add some properties or delegate events that allow the transfer of data between the two classes. In the second message you are trying to call a non-static method of the class without an object reference. This is basic C# object handling which you really need to understand before you go much further in this development project. Take a look at these samples[^] for further details.
One of these days I'm going to think of a really clever signature.
I tried that and it didn't work. I just don't understand why only the selected cells become visible I put a lot of work into the form and I'd prefer not to do it all again, so if anyone has any ideas - please let me know! Thanks.
just delete control from the form and try to add with same name to preserve the coding done on the variable. VS behaves odd at times. when this happens i used to close all the visual studio and start over again. will work like a charm.
i have more than 55000 Customer and i wanna Fill Combobox with this customers quick .. there is any way to load form quickly and to enter Combobox quickly ** i use background worker but this hang my form and my app is run slowly can i use threading and how i want solutin plz
have more than 55000 Customer and i wanna Fill Combobox with this customers
That's a little bit "too much" to be useful as a dropdown-list. I strongly recommend a popup with a datagridview.
Mohamed Nabawy wrote:
. there is any way
to load form quickly and to enter Combobox quickly
Databinding is usually a bit slower than slamming the items in there manually.
Mohamed Nabawy wrote:
i use background worker but this hang my form and my app is run slowly can i use threading and how
i want solutin plz
Threading doesn't make it quicker. You'd load the list async from the DB, but databinding still has to be done on the mainthread. Binding 55000 items to a ComboBox, just to let the user select one, is a bit overkill. Things would really speed up if you convert it to a readonly textbox with a "set"-button. Open a new form (modal), and then load those 55k items. In a virtualized datagridview, if performance is an issue.
To add to what Eddy said - it's a very silly idea to put that many items into a control of any sort if you expect the user to have to pick one of them himself. Think about it as a user: how are you going to find the one item you want out of 55,000? How much time are you going to waste looking?
Find a better solution! Search, filter, whatever - but not "here's a big list - you sort it out".
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.