Click here to Skip to main content
15,920,606 members
Home / Discussions / C#
   

C#

 
GeneralRe: .NET Remoting Channels (Custom) Pin
Aisha Ikram21-Apr-04 19:08
Aisha Ikram21-Apr-04 19:08 
GeneralRe: .NET Remoting Channels (Custom) Pin
Heath Stewart22-Apr-04 2:26
protectorHeath Stewart22-Apr-04 2:26 
GeneralProgress bar of a dll Pin
Anonymous21-Apr-04 0:33
Anonymous21-Apr-04 0:33 
GeneralRe: Progress bar of a dll Pin
Heath Stewart21-Apr-04 3:43
protectorHeath Stewart21-Apr-04 3:43 
GeneralRe: Progress bar of a dll Pin
Heath Stewart21-Apr-04 3:44
protectorHeath Stewart21-Apr-04 3:44 
GeneralListview Problem Pin
Reinier van de Wetering20-Apr-04 23:25
Reinier van de Wetering20-Apr-04 23:25 
GeneralRe: Listview Problem Pin
Jon G21-Apr-04 1:44
Jon G21-Apr-04 1:44 
GeneralRe: Listview Problem Pin
Heath Stewart21-Apr-04 3:49
protectorHeath Stewart21-Apr-04 3:49 
A better way than making it static (you'll run into all kinds of problems with this approach, especially if you want to use the designer after making those suggested changes) is to either pass a reference to the ListView to the form you open, or make a public property that gets the ListView on the first form and pass a reference to the first form into the second form (probably better if you ever want to do similar things in the future), or - finally - provide a way to get the data from the second form inside the first form and then have your first form add the data to your ListView.

The latter method is probably best. This allows you to use that form in different places and different ways. Once ShowDialog returns, you can grab that data (in a collection, list, array, a single property or properties, or whatever) and use it however you want.

 

Microsoft MVP, Visual C#
My Articles
QuestionWaitForASingleObject(handle , Timeout) Time out for waiting function in C#? Pin
78720-Apr-04 23:03
78720-Apr-04 23:03 
AnswerRe: WaitForASingleObject(handle , Timeout) Time out for waiting function in C#? Pin
Mike Dimmick21-Apr-04 2:55
Mike Dimmick21-Apr-04 2:55 
Generaldeployment application in VS.Net. Help please Pin
thaiduong20-Apr-04 22:32
thaiduong20-Apr-04 22:32 
GeneralRe: deployment application in VS.Net. Help please Pin
Heath Stewart21-Apr-04 3:51
protectorHeath Stewart21-Apr-04 3:51 
GeneralFolderBrowseDialog problems Pin
WillemM20-Apr-04 21:50
WillemM20-Apr-04 21:50 
GeneralRe: FolderBrowseDialog problems Pin
Anonymous20-Apr-04 22:17
Anonymous20-Apr-04 22:17 
GeneralRe: FolderBrowseDialog problems Pin
WillemM20-Apr-04 22:24
WillemM20-Apr-04 22:24 
GeneralRe: FolderBrowseDialog problems Pin
Anonymous20-Apr-04 22:53
Anonymous20-Apr-04 22:53 
GeneralRe: FolderBrowseDialog problems Pin
Stefan Troschuetz20-Apr-04 23:34
Stefan Troschuetz20-Apr-04 23:34 
GeneralRe: FolderBrowseDialog problems Pin
WillemM20-Apr-04 23:37
WillemM20-Apr-04 23:37 
GeneralRe: FolderBrowseDialog problems Pin
Heath Stewart21-Apr-04 3:59
protectorHeath Stewart21-Apr-04 3:59 
GeneralRe: FolderBrowseDialog problems Pin
Stefan Troschuetz21-Apr-04 5:18
Stefan Troschuetz21-Apr-04 5:18 
GeneralRe: FolderBrowseDialog problems Pin
Heath Stewart21-Apr-04 6:50
protectorHeath Stewart21-Apr-04 6:50 
GeneralRe: FolderBrowseDialog problems Pin
Stefan Troschuetz21-Apr-04 8:11
Stefan Troschuetz21-Apr-04 8:11 
GeneralRe: FolderBrowseDialog problems Pin
Heath Stewart21-Apr-04 8:32
protectorHeath Stewart21-Apr-04 8:32 
GeneralGet a string in a Textbox on Cursoposition Pin
Eolus20-Apr-04 21:00
Eolus20-Apr-04 21:00 
GeneralRe: Get a string in a Textbox on Cursoposition Pin
«_Superman_»20-Apr-04 21:14
professional«_Superman_»20-Apr-04 21:14 

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.