Click here to Skip to main content
15,923,557 members
Home / Discussions / C#
   

C#

 
GeneralRe: Help with adding the NumericTextBox control Pin
Rutvik Dave25-Mar-09 10:13
professionalRutvik Dave25-Mar-09 10:13 
GeneralRe: Help with adding the NumericTextBox control Pin
Julius91126-Mar-09 4:04
Julius91126-Mar-09 4:04 
QuestionSending SMS from PPC 2003 emulator through a built-in GSM modem Pin
aarti1425-Mar-09 4:47
aarti1425-Mar-09 4:47 
AnswerRe: Sending SMS from PPC 2003 emulator through a built-in GSM modem Pin
Blue_Boy25-Mar-09 5:00
Blue_Boy25-Mar-09 5:00 
QuestionHelp needed with code, method of one class cannot access control on form? [modified] Pin
Lewis0125-Mar-09 4:41
Lewis0125-Mar-09 4:41 
AnswerRe: Help needed with code, method of one class cannot access control on form? Pin
Deresen25-Mar-09 4:54
Deresen25-Mar-09 4:54 
GeneralRe: Help needed with code, method of one class cannot access control on form? Pin
Lewis0125-Mar-09 5:01
Lewis0125-Mar-09 5:01 
AnswerRe: Help needed with code, method of one class cannot access control on form? Pin
Ian Shlasko25-Mar-09 5:09
Ian Shlasko25-Mar-09 5:09 
listView1 is defined on the form, not in lView. Form1 and lView are two separate classes, and neither knows how to reach the other one.


1a) Instead of creating mylView in the Main() method, create it inside the form

OR

1b) Change the declaration of listView1 from private to public in the Form1 code

(The first option is preferable, as the second violates standard practices)

THEN

2) Change LoadList to accept a ListView as a parameter, and pass listView1 into it.

Example:

public void LoadList(ListView myListView)
{
  ...
}


In the Form1 constructor:

lView mylView = new lView();

mylView.GetData();
mylView.LoadList(listView1);

GeneralRe: Help needed with code, method of one class cannot access control on form? Pin
Lewis0125-Mar-09 5:26
Lewis0125-Mar-09 5:26 
GeneralRe: Help needed with code, method of one class cannot access control on form? Pin
Ian Shlasko25-Mar-09 5:41
Ian Shlasko25-Mar-09 5:41 
GeneralRe: Help needed with code, method of one class cannot access control on form? Pin
Lewis0125-Mar-09 5:56
Lewis0125-Mar-09 5:56 
GeneralRe: Help needed with code, method of one class cannot access control on form? Pin
Lewis0125-Mar-09 6:14
Lewis0125-Mar-09 6:14 
GeneralRe: Help needed with code, method of one class cannot access control on form? Pin
Ian Shlasko25-Mar-09 6:33
Ian Shlasko25-Mar-09 6:33 
QuestionPlease, I want program to solve numerical Analysis Equations ! Pin
Kh.Taheri25-Mar-09 4:35
Kh.Taheri25-Mar-09 4:35 
AnswerRe: Please, I want program to solve numerical Analysis Equations ! Pin
Deresen25-Mar-09 4:38
Deresen25-Mar-09 4:38 
GeneralRe: Please, I want program to solve numerical Analysis Equations ! Pin
Kh.Taheri4-Feb-17 14:08
Kh.Taheri4-Feb-17 14:08 
AnswerRe: Please, I want program to solve numerical Analysis Equations ! Pin
Tom Deketelaere25-Mar-09 4:40
professionalTom Deketelaere25-Mar-09 4:40 
GeneralRe: Please, I want program to solve numerical Analysis Equations ! Pin
Kh.Taheri4-Feb-17 14:08
Kh.Taheri4-Feb-17 14:08 
AnswerRe: Please, I want program to solve numerical Analysis Equations ! Pin
Le centriste25-Mar-09 4:41
Le centriste25-Mar-09 4:41 
GeneralRe: Please, I want program to solve numerical Analysis Equations ! Pin
Kh.Taheri4-Feb-17 14:07
Kh.Taheri4-Feb-17 14:07 
AnswerRe: Please, I want program to solve numerical Analysis Equations ! Pin
0x3c025-Mar-09 6:26
0x3c025-Mar-09 6:26 
GeneralRe: Please, I want program to solve numerical Analysis Equations ! Pin
Kh.Taheri4-Feb-17 14:06
Kh.Taheri4-Feb-17 14:06 
AnswerRe: Please, I want program to solve numerical Analysis Equations ! Pin
CPallini25-Mar-09 8:13
mveCPallini25-Mar-09 8:13 
GeneralRe: Please, I want program to solve numerical Analysis Equations ! Pin
Kh.Taheri4-Feb-17 14:03
Kh.Taheri4-Feb-17 14:03 
GeneralRe: Please, I want program to solve numerical Analysis Equations ! Pin
CPallini4-Feb-17 23:08
mveCPallini4-Feb-17 23:08 

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.