Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
QuestionCustom Window Control Pin
Nisha Agrawal17-Nov-09 19:35
Nisha Agrawal17-Nov-09 19:35 
AnswerRe: Custom Window Control Pin
dan!sh 17-Nov-09 21:02
professional dan!sh 17-Nov-09 21:02 
AnswerRe: Custom Window Control Pin
The Man from U.N.C.L.E.17-Nov-09 21:10
The Man from U.N.C.L.E.17-Nov-09 21:10 
AnswerRe: Custom Window Control Pin
Shameel17-Nov-09 21:46
professionalShameel17-Nov-09 21:46 
AnswerRe: Custom Window Control Pin
Nisha Agrawal17-Nov-09 22:37
Nisha Agrawal17-Nov-09 22:37 
GeneralRe: Custom Window Control Pin
dan!sh 17-Nov-09 22:57
professional dan!sh 17-Nov-09 22:57 
GeneralRe: Custom Window Control Pin
Nisha Agrawal18-Nov-09 16:05
Nisha Agrawal18-Nov-09 16:05 
GeneralRe: Custom Window Control Pin
_Maxxx_18-Nov-09 18:09
professional_Maxxx_18-Nov-09 18:09 
If you have a user control containing (say) a TextBox, you can make the required properties of the textbox visible by implementing them in the UserControl.

Usually you wouldn't want the user of your control to have complete access to the textbox's properties - but certain properties can be exposed as you need...


public TxtBoxText
{
  get {return textBox1.Text;}
  set {textBox1.Text = value;)
}


and so on.

So users of your control can use

myUserControl1.TxtBoxText = "WhateverIWantToSetItTo";


___________________________________________
.\\axxx
(That's an 'M')

GeneralRe: Custom Window Control Pin
Nisha Agrawal19-Nov-09 18:53
Nisha Agrawal19-Nov-09 18:53 
GeneralRe: Custom Window Control Pin
The Man from U.N.C.L.E.18-Nov-09 2:33
The Man from U.N.C.L.E.18-Nov-09 2:33 
Questionwindows service error Pin
NarendraSinghJTV17-Nov-09 19:26
NarendraSinghJTV17-Nov-09 19:26 
AnswerRe: windows service error Pin
ScottM117-Nov-09 22:49
ScottM117-Nov-09 22:49 
GeneralRe: windows service error Pin
NarendraSinghJTV17-Nov-09 22:57
NarendraSinghJTV17-Nov-09 22:57 
GeneralRe: windows service error Pin
ScottM117-Nov-09 23:01
ScottM117-Nov-09 23:01 
GeneralRe: windows service error Pin
NarendraSinghJTV17-Nov-09 23:18
NarendraSinghJTV17-Nov-09 23:18 
GeneralRe: windows service error Pin
ScottM117-Nov-09 23:21
ScottM117-Nov-09 23:21 
RantRe: windows service error Pin
NarendraSinghJTV17-Nov-09 23:24
NarendraSinghJTV17-Nov-09 23:24 
GeneralRe: windows service error Pin
ScottM117-Nov-09 23:39
ScottM117-Nov-09 23:39 
GeneralRe: windows service error Pin
NarendraSinghJTV17-Nov-09 23:50
NarendraSinghJTV17-Nov-09 23:50 
GeneralRe: windows service error Pin
ScottM118-Nov-09 0:58
ScottM118-Nov-09 0:58 
GeneralRe: windows service error Pin
NarendraSinghJTV18-Nov-09 1:02
NarendraSinghJTV18-Nov-09 1:02 
GeneralRe: windows service error Pin
Ashfield18-Nov-09 1:19
Ashfield18-Nov-09 1:19 
GeneralRe: windows service error Pin
NarendraSinghJTV18-Nov-09 1:41
NarendraSinghJTV18-Nov-09 1:41 
AnswerRe: windows service error Pin
Abhijit Jana17-Nov-09 23:01
professionalAbhijit Jana17-Nov-09 23:01 
GeneralRe: windows service error Pin
NarendraSinghJTV17-Nov-09 23:20
NarendraSinghJTV17-Nov-09 23:20 

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.