Click here to Skip to main content
15,860,972 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Output as follows;


Form1
Listbox1 ADD LIstbox2
Load
RK RK
SJ SJ

when i click load button all faculty name is displayed into Listbox1.then, when i select the particular item in Listbox1 and click ADD button the faculty name is displayed into Listbox2.



The Above process is working fine.

i want the output as;


Form2

Date Session column name column name column name


in the form2 in the output screen that selected faculty name from Listbox1 in the Form1(selected item) want to display into the Form2 in data grid view in column.

i want the output as;

Date Session RK SJ(RK, SJ is retrieved from, form1 LIstbox2)
Posted
Comments
OriginalGriff 15-Jan-13 5:58am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Use the "Improve question" widget to edit your question and provide better information.
shaikh-adil 15-Jan-13 11:06am    
sir can you one more time help me out www.codeproject.com/Answers/528150/sortingplusbyplusmonthplus-26plusaddingplustheplus
Faisalabadians 15-Jan-13 6:18am    
could not get to your question as OriginalGriff said, please improve your question to get an answers

1 solution

Select the Item From form1 List box Item And Pass Input To Form2


For Example :
Form1_Load()
{
string name=listbox1.selecteditem;

from2 Objfrom2=new from2(name);

}
------------------------------------------------------------
in form2

public form2(string Name)
{
InitializeComponent();

insert that name into DataGridView
}


this Work Fine
Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900