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

C#

 
GeneralRe: status problem Pin
srinivassam19-Jul-07 20:59
srinivassam19-Jul-07 20:59 
QuestionRun as? Pin
Captain Trips19-Jul-07 0:55
Captain Trips19-Jul-07 0:55 
AnswerRe: Run as? Pin
originSH19-Jul-07 1:12
originSH19-Jul-07 1:12 
QuestionThreading and delegate relation. Pin
Ron.S19-Jul-07 0:50
Ron.S19-Jul-07 0:50 
AnswerRe: Threading and delegate relation. Pin
Eduard Keilholz19-Jul-07 0:54
Eduard Keilholz19-Jul-07 0:54 
AnswerRe: Threading and delegate relation. Pin
Bijesh19-Jul-07 2:14
Bijesh19-Jul-07 2:14 
QuestionHow to pass a Control to a Method Pin
Herman<T>.Instance19-Jul-07 0:21
Herman<T>.Instance19-Jul-07 0:21 
AnswerRe: How to pass a Control to a Method Pin
Luc Pattyn19-Jul-07 0:35
sitebuilderLuc Pattyn19-Jul-07 0:35 
Hi,

if you define giveCellValue(TextBox myTextBox, ...) then it will accept any TextBox,
but it wont accept a Label.

if you define giveCellValue(Control myControl, ...) then it will accept a TextBox,
a Label, and all other Controls; now you can access myControl.Text since Text is a
property that exists for all Controls; but you still would not be able to access
a property that exists just for some Controls.

The better way however is to define giveCellValue(string text, ...)
and call it like so:
String ReadValue1 = giveCellValue(myTextBox.Text, gridMyGrid, 1, 0, 0);
String ReadValue2 = giveCellValue(myLabel.Text, gridMyGrid, 1, 0, 0);

Doing so giveCellValue does not have to touch other, independent, Controls at all.
It is better from OO perspective.

Hope this helps.



Questionentry point of OLE DB Provider Pin
George_George19-Jul-07 0:18
George_George19-Jul-07 0:18 
QuestionArraySorting: Pin
T.RATHA KRISHNAN19-Jul-07 0:08
T.RATHA KRISHNAN19-Jul-07 0:08 
AnswerRe: ArraySorting: Pin
Luc Pattyn19-Jul-07 0:19
sitebuilderLuc Pattyn19-Jul-07 0:19 
QuestionRe: ArraySorting: Pin
T.RATHA KRISHNAN19-Jul-07 0:23
T.RATHA KRISHNAN19-Jul-07 0:23 
AnswerRe: ArraySorting: Pin
CPallini19-Jul-07 0:22
mveCPallini19-Jul-07 0:22 
AnswerRe: ArraySorting: Pin
Luc Pattyn19-Jul-07 0:27
sitebuilderLuc Pattyn19-Jul-07 0:27 
QuestionHow do I add a base interface using ModuleBuilder.DefineType() Pin
fpdeguzma7818-Jul-07 23:55
fpdeguzma7818-Jul-07 23:55 
AnswerRe: How do I add a base interface using ModuleBuilder.DefineType() Pin
Thaer Hamael19-Jul-07 0:02
Thaer Hamael19-Jul-07 0:02 
AnswerRe: How do I add a base interface using ModuleBuilder.DefineType() Pin
fpdeguzma7819-Jul-07 21:40
fpdeguzma7819-Jul-07 21:40 
QuestionHow To Add Grid To mobil Application By Spesify Propert Pin
Thaer Hamael18-Jul-07 23:28
Thaer Hamael18-Jul-07 23:28 
QuestionCan some bright person solve this ? I am lost with this....so strange Pin
pierrecenti18-Jul-07 23:27
pierrecenti18-Jul-07 23:27 
AnswerRe: Can some bright person solve this ? I am lost with this....so strange Pin
gumi_r@msn.com19-Jul-07 1:37
gumi_r@msn.com19-Jul-07 1:37 
QuestionIndex error... Pin
Support12318-Jul-07 23:17
Support12318-Jul-07 23:17 
AnswerRe: Index error... Pin
Support12318-Jul-07 23:24
Support12318-Jul-07 23:24 
GeneralRe: Index error... Pin
Luc Pattyn18-Jul-07 23:30
sitebuilderLuc Pattyn18-Jul-07 23:30 
GeneralRe: Index error... Pin
Support12318-Jul-07 23:40
Support12318-Jul-07 23:40 
AnswerRe: Index error... Pin
Colin Angus Mackay18-Jul-07 23:30
Colin Angus Mackay18-Jul-07 23:30 

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.