Click here to Skip to main content
15,887,266 members
Home / Discussions / C#
   

C#

 
QuestionHow to solve the following problem using StreamReader. Pin
dr_iton30-Dec-12 0:20
dr_iton30-Dec-12 0:20 
AnswerRe: How to solve the following problem using StreamReader. Pin
Jibesh30-Dec-12 1:19
professionalJibesh30-Dec-12 1:19 
AnswerRe: How to solve the following problem using StreamReader. Pin
Richard MacCutchan30-Dec-12 2:37
mveRichard MacCutchan30-Dec-12 2:37 
GeneralRe: How to solve the following problem using StreamReader. Pin
dr_iton31-Dec-12 14:38
dr_iton31-Dec-12 14:38 
GeneralRe: How to solve the following problem using StreamReader. Pin
Richard MacCutchan31-Dec-12 22:36
mveRichard MacCutchan31-Dec-12 22:36 
GeneralRe: How to solve the following problem using StreamReader. Pin
dr_iton1-Jan-13 8:58
dr_iton1-Jan-13 8:58 
GeneralRe: How to solve the following problem using StreamReader. Pin
Richard MacCutchan1-Jan-13 22:11
mveRichard MacCutchan1-Jan-13 22:11 
GeneralRe: How to solve the following problem using StreamReader. Pin
dr_iton4-Jan-13 10:17
dr_iton4-Jan-13 10:17 
I created a method to show the items in ListBox in Form 1, like this
C#
string linjaListBox = this.ListBox.SelectedItem.ToString();
                
                string emriPjesa = linjaListBox.Split('\t')[0];
                string mbiemriPjesa = linjaListBox.Split('\t')[1];
                string datelindjaPjesa = linjaListBox.Split('\t')[2];
                string vendlindjaPjesa = linjaListBox.Split('\t')[3];
                string xhirollogariaPjesa = linjaListBox.Split('\t')[4];
               

                this.emriBox.Text = emriPjesa;
                this.mbiemriBox.Text = mbiemriPjesa;
                this.datelindjaBox.Text = datelindjaPjesa;
                this.vendlindjaBox.Text = vendlindjaPjesa;
                this.xhirollogariaBox.Text = xhirollogariaPjesa;
                indeksLista = Convert.ToInt32(ListBox.SelectedIndex.ToString());

In the next form I used three of TextBoxes from first Form such as emriBox,mbiemriBox and xhirollogariaBox.
How to show the text in those three TextBoxes in form2 if I select a row in ListBox from Form1.
GeneralRe: How to solve the following problem using StreamReader. Pin
Richard MacCutchan5-Jan-13 1:18
mveRichard MacCutchan5-Jan-13 1:18 
GeneralRe: How to solve the following problem using StreamReader. Pin
dr_iton5-Jan-13 2:58
dr_iton5-Jan-13 2:58 
GeneralRe: How to solve the following problem using StreamReader. Pin
Richard MacCutchan5-Jan-13 3:04
mveRichard MacCutchan5-Jan-13 3:04 
QuestionData in GridView is not being displayed correctly Pin
Member 970415329-Dec-12 11:02
Member 970415329-Dec-12 11:02 
AnswerRe: Data in GridView is not being displayed correctly Pin
Lampridis Vasilis29-Dec-12 23:09
Lampridis Vasilis29-Dec-12 23:09 
GeneralRe: Data in GridView is not being displayed correctly Pin
Member 970415329-Dec-12 23:26
Member 970415329-Dec-12 23:26 
GeneralRe: Data in GridView is not being displayed correctly Pin
Lampridis Vasilis29-Dec-12 23:32
Lampridis Vasilis29-Dec-12 23:32 
GeneralRe: Data in GridView is not being displayed correctly Pin
Member 970415329-Dec-12 23:39
Member 970415329-Dec-12 23:39 
GeneralRe: Data in GridView is not being displayed correctly Pin
Jibesh29-Dec-12 23:54
professionalJibesh29-Dec-12 23:54 
GeneralRe: Data in GridView is not being displayed correctly Pin
Member 970415330-Dec-12 0:02
Member 970415330-Dec-12 0:02 
GeneralRe: Data in GridView is not being displayed correctly Pin
Jibesh30-Dec-12 0:06
professionalJibesh30-Dec-12 0:06 
GeneralRe: Data in GridView is not being displayed correctly Pin
Member 970415330-Dec-12 0:25
Member 970415330-Dec-12 0:25 
GeneralRe: Data in GridView is not being displayed correctly Pin
nainakarri30-Dec-12 0:42
nainakarri30-Dec-12 0:42 
GeneralRe: Data in GridView is not being displayed correctly Pin
Member 970415330-Dec-12 0:52
Member 970415330-Dec-12 0:52 
GeneralRe: Data in GridView is not being displayed correctly Pin
Member 970415330-Dec-12 1:16
Member 970415330-Dec-12 1:16 
GeneralRe: Data in GridView is not being displayed correctly Pin
Jibesh30-Dec-12 1:20
professionalJibesh30-Dec-12 1:20 
GeneralRe: Data in GridView is not being displayed correctly Pin
Member 970415330-Dec-12 1:23
Member 970415330-Dec-12 1:23 

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.