Click here to Skip to main content
15,899,026 members
Home / Discussions / C#
   

C#

 
AnswerRe: C#.net error: Attempt to read or write protected memory or often this is the indication that other memory is currupt Pin
Guffa17-Jul-07 22:21
Guffa17-Jul-07 22:21 
QuestionHow to Export an Excel (xls) document that's compatible to all office versions - C# Pin
OhrmaZd17-Jul-07 22:00
OhrmaZd17-Jul-07 22:00 
AnswerRe: How to Export an Excel (xls) document that's compatible to all office versions - C# Pin
originSH17-Jul-07 22:12
originSH17-Jul-07 22:12 
AnswerRe: How to Export an Excel (xls) document that's compatible to all office versions - C# Pin
DavieL17-Jul-07 22:30
DavieL17-Jul-07 22:30 
GeneralRe: How to Export an Excel (xls) document that's compatible to all office versions - C# Pin
OhrmaZd17-Jul-07 23:47
OhrmaZd17-Jul-07 23:47 
QuestionReport problem Pin
manoj_ce17-Jul-07 21:26
manoj_ce17-Jul-07 21:26 
QuestionVerify Certificate Revocation using x509chain offline check Pin
suprajav17-Jul-07 20:52
suprajav17-Jul-07 20:52 
QuestionSetting Focus problem... Pin
Dotnetkanna17-Jul-07 20:31
Dotnetkanna17-Jul-07 20:31 
Hi everyone..

My TreeView Structure is like this....

TextBox
|
|_Textbox1
|_Textbox2


and im having two Textboxes Name Textbox1 and TextBox2.
My need is on selecting or clicking the Textbox1 in the tree node
the focus should be set on the Textbox1 if i clicked any other node
means the focus should be set on the coressponding Textbox..How should i achieve it?

My code is below..
private void TV_AfterSelect(object sender, TreeViewEventArgs e)
{

Control[] ctrl = this.Controls.Find(TV.SelectedNode.Text, true);
if (ctrl.Length > 0) ((TextBox)ctrl[0]).Focus();

}

But i getting only just a blink in the textbox and the focus is not appear permanently..







Rgrds
Kanna..
Question.Net 2.0 Pin
razanabanu17-Jul-07 20:20
razanabanu17-Jul-07 20:20 
AnswerRe: .Net 2.0 Pin
Michael Sync17-Jul-07 20:33
Michael Sync17-Jul-07 20:33 
GeneralRe: .Net 2.0 Pin
Michael Sync17-Jul-07 20:34
Michael Sync17-Jul-07 20:34 
AnswerRe: .Net 2.0 Pin
Sathesh Sakthivel17-Jul-07 20:36
Sathesh Sakthivel17-Jul-07 20:36 
QuestionExporting crystal report in excel Pin
Khushbu Patel17-Jul-07 20:20
Khushbu Patel17-Jul-07 20:20 
Questionmultiline textbox problem Pin
srinivassam17-Jul-07 20:07
srinivassam17-Jul-07 20:07 
AnswerRe: multiline textbox problem Pin
Vasudevan Deepak Kumar17-Jul-07 20:10
Vasudevan Deepak Kumar17-Jul-07 20:10 
QuestionHow do i know in which drive windows is installed Pin
Iftekhar Naim17-Jul-07 18:42
Iftekhar Naim17-Jul-07 18:42 
AnswerRe: How do i know in which drive windows is installed Pin
PIEBALDconsult17-Jul-07 18:59
mvePIEBALDconsult17-Jul-07 18:59 
GeneralRe: How do i know in which drive windows is installed Pin
Chayan (cse student)17-Jul-07 19:50
Chayan (cse student)17-Jul-07 19:50 
AnswerRe: How do i know in which drive windows is installed Pin
Paul Conrad17-Jul-07 19:01
professionalPaul Conrad17-Jul-07 19:01 
GeneralRe: How do i know in which drive windows is installed Pin
Iftekhar Naim17-Jul-07 20:04
Iftekhar Naim17-Jul-07 20:04 
AnswerRe: How do i know in which drive windows is installed Pin
Mike Dimmick17-Jul-07 23:21
Mike Dimmick17-Jul-07 23:21 
GeneralRe: How do i know in which drive windows is installed Pin
Iftekhar Naim18-Jul-07 1:05
Iftekhar Naim18-Jul-07 1:05 
QuestionResolution-MDI Pin
tonato84817-Jul-07 18:33
tonato84817-Jul-07 18:33 
QuestionDynamic ComboBox Pin
T.EDY17-Jul-07 18:15
T.EDY17-Jul-07 18:15 
AnswerRe: Dynamic ComboBox Pin
Paul Conrad17-Jul-07 18:58
professionalPaul Conrad17-Jul-07 18:58 

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.