Click here to Skip to main content
15,868,016 members
Home / Discussions / C#
   

C#

 
AnswerRe: Server Client Communication Problem Pin
Eddy Vluggen22-Sep-10 9:05
professionalEddy Vluggen22-Sep-10 9:05 
GeneralRe: Server Client Communication Problem Pin
teknolog12322-Sep-10 10:39
teknolog12322-Sep-10 10:39 
GeneralRe: Server Client Communication Problem Pin
Eddy Vluggen22-Sep-10 11:15
professionalEddy Vluggen22-Sep-10 11:15 
Questioncustom color on winform Pin
jashimu21-Sep-10 10:14
jashimu21-Sep-10 10:14 
AnswerRe: custom color on winform Pin
DaveyM6921-Sep-10 12:19
professionalDaveyM6921-Sep-10 12:19 
QuestionDebug: enable? Pin
albh0721-Sep-10 10:11
albh0721-Sep-10 10:11 
AnswerRe: Debug: enable? Pin
Chris Trelawny-Ross21-Sep-10 13:25
Chris Trelawny-Ross21-Sep-10 13:25 
QuestionHow do i refer to my own custom control, within the control? Pin
stephen.darling21-Sep-10 9:10
stephen.darling21-Sep-10 9:10 
Hello.

OK, So I have managed to create my own control, derived from a panal class.

This control is an ECG display, required to draw and update itsself.

I have overided the ondraw() and added a timer to triger every 500ms, and added the code to draw a standard ecg graph using standard draw functions.

Now, I add the control to my form and set its name.

BUT, how do I refer to the control in the code WITHIN the control.

For example, my ondraw code requires to get the width of itsself.

I tried replacing the original variables (this control was on a form) with "this" but it does not work...

I then tried the following...

panal ecg = new panal();

constructor_function(panal ecg)
{

display = ecg;

}


But that seems to have no effect either.

Obviosly I can refer to the control from within my form very easy with its member, but because I have derived the class, I need to refer to my control in a number of function within the class.

My Idea was to create an ECG display class to handle its own drawing, and will eventualy get and set a range of ECG graphs, I didnt want all this functionality in the GUI.

Also, this object is representing the actual ECG machine and will soon have other functions such as Reset(), SwitchOn() etc, to be trigered from the main form and other objects.

Thank you in advance for any help...
Steve
AnswerRe: How do i refer to my own custom control, within the control? Pin
OriginalGriff21-Sep-10 9:29
mveOriginalGriff21-Sep-10 9:29 
GeneralRe: How do i refer to my own custom control, within the control? Pin
stephen.darling21-Sep-10 10:04
stephen.darling21-Sep-10 10:04 
GeneralRe: How do i refer to my own custom control, within the control? Pin
OriginalGriff21-Sep-10 21:44
mveOriginalGriff21-Sep-10 21:44 
QuestionDetermining the Data Type of a Generic Pin
kevinnicol21-Sep-10 6:59
kevinnicol21-Sep-10 6:59 
AnswerRe: Determining the Data Type of a Generic Pin
kevinnicol21-Sep-10 7:16
kevinnicol21-Sep-10 7:16 
AnswerRe: Determining the Data Type of a Generic Pin
Ian Shlasko21-Sep-10 7:16
Ian Shlasko21-Sep-10 7:16 
AnswerRe: Determining the Data Type of a Generic Pin
AspDotNetDev21-Sep-10 11:34
protectorAspDotNetDev21-Sep-10 11:34 
AnswerRe: Determining the Data Type of a Generic Pin
phil.o22-Sep-10 3:44
professionalphil.o22-Sep-10 3:44 
QuestionHow to take data from USB-based device using C# ?? Pin
depressedguy21-Sep-10 6:51
depressedguy21-Sep-10 6:51 
AnswerRe: How to take data from USB-based device using C# ?? Pin
Richard Andrew x6421-Sep-10 15:53
professionalRichard Andrew x6421-Sep-10 15:53 
GeneralRe: How to take data from USB-based device using C# ?? Pin
depressedguy21-Sep-10 16:58
depressedguy21-Sep-10 16:58 
GeneralC# and Ring indicator Pin
MarkBng21-Sep-10 5:27
MarkBng21-Sep-10 5:27 
GeneralRe: C# and Ring indicator Pin
Luc Pattyn21-Sep-10 5:41
sitebuilderLuc Pattyn21-Sep-10 5:41 
QuestionUDP Packet Synchronization Pin
softwarejaeger21-Sep-10 3:42
softwarejaeger21-Sep-10 3:42 
AnswerRe: UDP Packet Synchronization Pin
Dave Kreskowiak21-Sep-10 6:41
mveDave Kreskowiak21-Sep-10 6:41 
Questionhow can i use diffrence neuron count in difference layer Pin
karayel_kara21-Sep-10 3:22
karayel_kara21-Sep-10 3:22 
AnswerRe: how can i use diffrence neuron count in difference layer Pin
Alan Balkany21-Sep-10 3:59
Alan Balkany21-Sep-10 3:59 

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.