Click here to Skip to main content
15,918,808 members
Home / Discussions / C#
   

C#

 
GeneralRe: URGENT : Display HTML Document into an Application Form Pin
Pete O'Hanlon17-Nov-06 3:35
mvePete O'Hanlon17-Nov-06 3:35 
GeneralRe: URGENT : Display HTML Document into an Application Form Pin
Ahmad_kaau17-Nov-06 4:45
Ahmad_kaau17-Nov-06 4:45 
AnswerRe: URGENT : Display HTML Document into an Application Form Pin
ejuanpp16-Nov-06 23:41
ejuanpp16-Nov-06 23:41 
Questionhow to set a property in CustomWebControl like WinForm TextBox's 'lines' Property Pin
wstech16-Nov-06 23:16
wstech16-Nov-06 23:16 
QuestionClose ModalForm & refresh Listbox on Main Form Pin
GermanDM16-Nov-06 23:08
GermanDM16-Nov-06 23:08 
AnswerRe: Close ModalForm & refresh Listbox on Main Form Pin
Christian Graus16-Nov-06 23:41
protectorChristian Graus16-Nov-06 23:41 
GeneralRe: Close ModalForm & refresh Listbox on Main Form Pin
GermanDM17-Nov-06 0:47
GermanDM17-Nov-06 0:47 
GeneralRe: Close ModalForm & refresh Listbox on Main Form Pin
quiteSmart17-Nov-06 1:05
quiteSmart17-Nov-06 1:05 
hi,

What Christian ment is that you should create a function in you first form. This function should contain the code that gets the information and put them in the listBox. This function should be separate from the form1_onLoad event.

For example:
you should create a function like this:

 public void getInformation(){<br />
..//put here the code to get and asign the informatin to the list box<br />
}


then you call this method in the form1_onLoad function
public void form1_onLoad(object sender, evnet...){<br />
    getInformation();<br />
}


after that when you create the next form you should give it a reference to the fist form

example:
form2 f = new form2(this);<br />
  f.show();<br />

note that the constructor of the second form should contain an argument that take an object of type form1.
example:
public form2(form1 frm){<br />
.........<br />
}


and on the save button of the second form you just enter this line of code
<br />
frm.getInformation();<br />



do as i told you and it will work

Jamil Abou Khalil
GeneralRe: Close ModalForm & refresh Listbox on Main Form Pin
GermanDM17-Nov-06 1:23
GermanDM17-Nov-06 1:23 
GeneralRe: Close ModalForm & refresh Listbox on Main Form Pin
quiteSmart17-Nov-06 1:56
quiteSmart17-Nov-06 1:56 
QuestionSend Bitmap directly to the printer. Pin
Martin#16-Nov-06 22:32
Martin#16-Nov-06 22:32 
AnswerRe: Send Bitmap directly to the printer. Pin
Robert Rohde16-Nov-06 22:36
Robert Rohde16-Nov-06 22:36 
GeneralRe: Send Bitmap directly to the printer. Pin
Martin#16-Nov-06 22:42
Martin#16-Nov-06 22:42 
GeneralRe: Send Bitmap directly to the printer. Pin
Martin#16-Nov-06 23:12
Martin#16-Nov-06 23:12 
QuestionLabel.TextAlign problem Pin
stancrm16-Nov-06 22:18
stancrm16-Nov-06 22:18 
AnswerRe: Label.TextAlign problem Pin
Robert Rohde16-Nov-06 22:32
Robert Rohde16-Nov-06 22:32 
QuestionScaling Images in Data Grid View cell Pin
rahuljosh007200016-Nov-06 22:12
rahuljosh007200016-Nov-06 22:12 
AnswerRe: Scaling Images in Data Grid View cell Pin
Robert Rohde16-Nov-06 22:37
Robert Rohde16-Nov-06 22:37 
GeneralRe: Scaling Images in Data Grid View cell Pin
rahuljosh007200016-Nov-06 23:56
rahuljosh007200016-Nov-06 23:56 
QuestionObject refernce from its string name Pin
RuslanKulubaev16-Nov-06 21:45
RuslanKulubaev16-Nov-06 21:45 
AnswerRe: Object refernce from its string name Pin
Christian Graus16-Nov-06 21:48
protectorChristian Graus16-Nov-06 21:48 
AnswerRe: Object refernce from its string name Pin
Russell Jones17-Nov-06 0:21
Russell Jones17-Nov-06 0:21 
QuestionGetting reference to object from its stringname c# Pin
RuslanKulubaev16-Nov-06 21:42
RuslanKulubaev16-Nov-06 21:42 
AnswerRe: Getting reference to object from its stringname c# Pin
Christian Graus16-Nov-06 21:49
protectorChristian Graus16-Nov-06 21:49 
AnswerRe: foreach on a List Pin
Christian Graus16-Nov-06 21:52
protectorChristian Graus16-Nov-06 21:52 

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.