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

C#

 
AnswerRe: Moving & resizing controls at runtime Pin
DaveyM696-Oct-08 10:09
professionalDaveyM696-Oct-08 10:09 
AnswerRe: Moving & resizing controls at runtime Pin
Hossein Afyuoni6-Oct-08 10:13
Hossein Afyuoni6-Oct-08 10:13 
GeneralRe: Moving & resizing controls at runtime Pin
netJP12L6-Oct-08 10:54
netJP12L6-Oct-08 10:54 
AnswerRe: Moving & resizing controls at runtime Pin
Pedram Behroozi6-Oct-08 11:24
Pedram Behroozi6-Oct-08 11:24 
QuestionDeserialize old versions Pin
eggsovereasy6-Oct-08 8:42
eggsovereasy6-Oct-08 8:42 
AnswerRe: Deserialize old versions Pin
Mark Salsbery6-Oct-08 8:47
Mark Salsbery6-Oct-08 8:47 
GeneralRe: Deserialize old versions Pin
eggsovereasy6-Oct-08 10:47
eggsovereasy6-Oct-08 10:47 
QuestionWindow Manager Collection Pin
Kevin Marois6-Oct-08 8:09
professionalKevin Marois6-Oct-08 8:09 
I have a window manager class. It maintains references to open User and Item forms:

At the top I create an array list:

private static ArrayList oWindows = new ArrayList();


The I have a method to return an instance of a form in the collection:

public void GetOpenForm(FormTypes type, int iRecordKey)
{
	form oRetVal = null;

	foreach(form oForm in oWindows)
	{
		if (oForm.iRecordKey == iRecordKey)
		{
		}
	}
}


Problem is, the references to oForm in the code above are not User or Item forms, so the iRecordkey reference fails to compile. Add to this, the Item and User forms are not based off any single base form.

How do I make oForm "know" about iRecordKey?

Everything makes sense in someone's mind

AnswerRe: Window Manager Collection Pin
Mark Salsbery6-Oct-08 8:27
Mark Salsbery6-Oct-08 8:27 
GeneralRe: Window Manager Collection Pin
Kevin Marois6-Oct-08 9:56
professionalKevin Marois6-Oct-08 9:56 
QuestionRe: Window Manager Collection Pin
led mike6-Oct-08 10:01
led mike6-Oct-08 10:01 
GeneralRe: Window Manager Collection Pin
Mark Salsbery6-Oct-08 10:35
Mark Salsbery6-Oct-08 10:35 
QuestionDynamic setting of properties from data stream Pin
James R. Twine6-Oct-08 7:07
James R. Twine6-Oct-08 7:07 
AnswerRe: Dynamic setting of properties from data stream Pin
Wendelius6-Oct-08 7:58
mentorWendelius6-Oct-08 7:58 
AnswerRe: Dynamic setting of properties from data stream Pin
N a v a n e e t h6-Oct-08 8:00
N a v a n e e t h6-Oct-08 8:00 
GeneralRe: Dynamic setting of properties from data stream Pin
James R. Twine8-Oct-08 1:49
James R. Twine8-Oct-08 1:49 
AnswerRe: Dynamic setting of properties from data stream Pin
Mark Churchill6-Oct-08 17:12
Mark Churchill6-Oct-08 17:12 
GeneralRe: Dynamic setting of properties from data stream Pin
James R. Twine8-Oct-08 1:54
James R. Twine8-Oct-08 1:54 
QuestionData sending/receiving using a dial-up modem and C# Pin
ajorge20086-Oct-08 6:50
ajorge20086-Oct-08 6:50 
AnswerRe: Data sending/receiving using a dial-up modem and C# Pin
N a v a n e e t h6-Oct-08 7:11
N a v a n e e t h6-Oct-08 7:11 
AnswerRe: Data sending/receiving using a dial-up modem and C# Pin
Pedram Behroozi6-Oct-08 7:15
Pedram Behroozi6-Oct-08 7:15 
QuestionWhich is the most used programming language Pin
Christopher Clarke6-Oct-08 6:43
Christopher Clarke6-Oct-08 6:43 
AnswerRe: Which is the most used programming language Pin
User 66586-Oct-08 6:51
User 66586-Oct-08 6:51 
AnswerRe: Which is the most used programming language Pin
N a v a n e e t h6-Oct-08 7:22
N a v a n e e t h6-Oct-08 7:22 
GeneralRe: Which is the most used programming language Pin
led mike6-Oct-08 9:57
led mike6-Oct-08 9:57 

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.