Click here to Skip to main content
15,914,642 members
Home / Discussions / C#
   

C#

 
QuestionC# MySQL----parameter '?9' not found in the collection...huh? Pin
js8008518-Feb-08 2:15
js8008518-Feb-08 2:15 
AnswerRe: C# MySQL----parameter '?9' not found in the collection...huh? Pin
CKnig18-Feb-08 3:08
CKnig18-Feb-08 3:08 
GeneralRe: C# MySQL----parameter '?9' not found in the collection...huh? Pin
js8008518-Feb-08 3:40
js8008518-Feb-08 3:40 
Generalerror in sql Pin
new2pgrmg18-Feb-08 2:06
new2pgrmg18-Feb-08 2:06 
GeneralRe: error in sql Pin
Not Active18-Feb-08 2:29
mentorNot Active18-Feb-08 2:29 
Questionset socket.sendtimeout Pin
sindhutiwari17-Feb-08 22:55
sindhutiwari17-Feb-08 22:55 
GeneralRe: set socket.sendtimeout Pin
Luc Pattyn18-Feb-08 1:09
sitebuilderLuc Pattyn18-Feb-08 1:09 
GeneralBest method for updating control in another form Pin
N a v a n e e t h17-Feb-08 22:05
N a v a n e e t h17-Feb-08 22:05 
I have 3 forms say, Form1, Form2 and Form3. Form1 contains a ListView control which is populated through a collection instance say Collection1. After doing an operation, I need to update the ListView present in the Form1 from Form3. Form3 is displayed from Form2.

I am looking for a best method to do this. Following are the points which I have in my mind to implement this.

1 - Make the Collection1 instance as static (Singleton) and add some events to that class. Hook event handlers from the Form1. So when new items are added to this collection in Form3, events get fired and Form1's ListView will get updated. Some kind of MVC pattern.

2 - Pass the Form1 object through the constructors to Form2 and to Form3.

Which one do you suggest ? Or is there any other efficient method to do this ?

All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia

My Website | Ask smart questions

GeneralRe: Best method for updating control in another form Pin
Pete O'Hanlon17-Feb-08 22:11
mvePete O'Hanlon17-Feb-08 22:11 
GeneralRe: Best method for updating control in another form Pin
N a v a n e e t h17-Feb-08 22:13
N a v a n e e t h17-Feb-08 22:13 
GeneralRe: Best method for updating control in another form Pin
Pete O'Hanlon17-Feb-08 22:20
mvePete O'Hanlon17-Feb-08 22:20 
GeneralRe: Best method for updating control in another form Pin
N a v a n e e t h17-Feb-08 22:30
N a v a n e e t h17-Feb-08 22:30 
GeneralRe: Best method for updating control in another form Pin
Pete O'Hanlon17-Feb-08 22:33
mvePete O'Hanlon17-Feb-08 22:33 
GeneralRe: Best method for updating control in another form Pin
N a v a n e e t h17-Feb-08 22:39
N a v a n e e t h17-Feb-08 22:39 
GeneralRe: Best method for updating control in another form Pin
Pete O'Hanlon17-Feb-08 22:50
mvePete O'Hanlon17-Feb-08 22:50 
QuestionComponent Pin
Navid_s17-Feb-08 21:25
Navid_s17-Feb-08 21:25 
GeneralRe: Component Pin
Christian Graus17-Feb-08 21:34
protectorChristian Graus17-Feb-08 21:34 
JokeRe: Component Pin
Rajesh R Subramanian17-Feb-08 21:51
professionalRajesh R Subramanian17-Feb-08 21:51 
GeneralRe: Component Pin
Christian Graus17-Feb-08 22:00
protectorChristian Graus17-Feb-08 22:00 
GeneralUSB Programming Pin
EEE 717-Feb-08 21:24
EEE 717-Feb-08 21:24 
GeneralRe: USB Programming Pin
Christian Graus17-Feb-08 21:35
protectorChristian Graus17-Feb-08 21:35 
GeneralRe: USB Programming Pin
EEE 717-Feb-08 21:44
EEE 717-Feb-08 21:44 
GeneralRe: USB Programming Pin
Christian Graus17-Feb-08 22:02
protectorChristian Graus17-Feb-08 22:02 
GeneralRe: USB Programming Pin
Giorgi Dalakishvili17-Feb-08 21:58
mentorGiorgi Dalakishvili17-Feb-08 21:58 
Generalsharepoint Pin
justintimberlake17-Feb-08 21:02
justintimberlake17-Feb-08 21:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.