Click here to Skip to main content
15,914,594 members
Home / Discussions / C#
   

C#

 
AnswerRe: Running an application by the start up of the windows Pin
Pete O'Hanlon11-Dec-06 4:50
mvePete O'Hanlon11-Dec-06 4:50 
QuestionHow to access data from a control on one from from another form? [modified] Pin
Saira Tanwir11-Dec-06 1:45
Saira Tanwir11-Dec-06 1:45 
AnswerRe: How to access data from a control on one from from another form?(URGENT) Pin
Not Active11-Dec-06 2:17
mentorNot Active11-Dec-06 2:17 
GeneralRe: How to access data from a control on one from from another form?(URGENT) Pin
Saira Tanwir11-Dec-06 2:30
Saira Tanwir11-Dec-06 2:30 
AnswerRe: How to access data from a control on one from from another form?(URGENT) Pin
quiteSmart11-Dec-06 2:34
quiteSmart11-Dec-06 2:34 
GeneralRe: How to access data from a control on one from from another form?(URGENT) Pin
Saira Tanwir11-Dec-06 2:49
Saira Tanwir11-Dec-06 2:49 
AnswerRe: How to access data from a control on one from from another form? Pin
Nader Elshehabi11-Dec-06 3:25
Nader Elshehabi11-Dec-06 3:25 
GeneralRe: How to access data from a control on one from from another form? Pin
Saira Tanwir11-Dec-06 3:58
Saira Tanwir11-Dec-06 3:58 
well nader

the way i'm copying indices like this is due to the requirement of my problem.
the code i mentioned above is actually a function of form A. when i access this function from Form A, it works fine. But as soon i call the function from Form B it gives the exception. the complete function is:
public int[] GetCheckedIndices()<br />
	{<br />
	int count=Global.Instance.Count_Indices;<br />
	indice = new int[count]; <br />
	MessageBox.Show(count.ToString());<br />
	for(int i=0;i<count;i++)<br />
	{<br />
	indice[i] = TableListBox.CheckedIndices[i];<br />
	MessageBox.Show(indice[i].ToString());<br />
	}<br />
	return indice;<br />
	}//end function

now TableListBoxis the name of me checkedListBox
and CheckedIndices is its property.
indice has been declared as "public static int[] indice".

CheckedIndices.Count has the index of the items that have been checked in the chckedListBox.
ope this gives u enough information to understand the problem

awaiting you reply.
GeneralRe: How to access data from a control on one from from another form? Pin
Nader Elshehabi11-Dec-06 5:21
Nader Elshehabi11-Dec-06 5:21 
QuestionFormatting Day part of DateTime Pin
kaleem tarar11-Dec-06 1:19
kaleem tarar11-Dec-06 1:19 
AnswerRe: Formatting Day part of DateTime Pin
Not Active11-Dec-06 2:23
mentorNot Active11-Dec-06 2:23 
Questionimage upload using atlas Pin
chaitu911-Dec-06 1:06
chaitu911-Dec-06 1:06 
AnswerRe: image upload using atlas Pin
Not Active11-Dec-06 2:16
mentorNot Active11-Dec-06 2:16 
GeneralRe: image upload using atlas Pin
Guffa11-Dec-06 3:30
Guffa11-Dec-06 3:30 
QuestionInvoking DirectX 9 [modified] Pin
Thitechx11-Dec-06 0:51
Thitechx11-Dec-06 0:51 
AnswerRe: Invoking DirectX 9 Pin
Bekjong11-Dec-06 2:01
Bekjong11-Dec-06 2:01 
GeneralRe: Invoking DirectX 9 Pin
Thitechx11-Dec-06 23:07
Thitechx11-Dec-06 23:07 
GeneralRe: Invoking DirectX 9 Pin
Bekjong11-Dec-06 23:37
Bekjong11-Dec-06 23:37 
Questioniterating through a datagridview and getting the value of unbound combobox Pin
Rocky#11-Dec-06 0:51
Rocky#11-Dec-06 0:51 
QuestionCreating Un-Installer application in C# Pin
kaliem11-Dec-06 0:29
kaliem11-Dec-06 0:29 
GeneralRe: Creating Un-Installer application in C# Pin
kaliem11-Dec-06 0:44
kaliem11-Dec-06 0:44 
AnswerRe: Creating Un-Installer application in C# Pin
Vasudevan Deepak Kumar11-Dec-06 4:19
Vasudevan Deepak Kumar11-Dec-06 4:19 
QuestionHolding the form untill all controls are painted Pin
AB777111-Dec-06 0:23
AB777111-Dec-06 0:23 
AnswerRe: Holding the form untill all controls are painted Pin
V.11-Dec-06 0:45
professionalV.11-Dec-06 0:45 
QuestionCapturing RightClick on DataGrdiView Pin
t4ure4n10-Dec-06 23:52
t4ure4n10-Dec-06 23: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.