Click here to Skip to main content
15,908,768 members
Home / Discussions / C#
   

C#

 
GeneralRe: Yes Pin
Xmen Real 7-Dec-07 5:54
professional Xmen Real 7-Dec-07 5:54 
GeneralRe: Yes Pin
Guffa7-Dec-07 7:20
Guffa7-Dec-07 7:20 
GeneralHiding a tabsheet Pin
Dewald7-Dec-07 4:38
Dewald7-Dec-07 4:38 
GeneralRe: Hiding a tabsheet Pin
Anthony Mushrow7-Dec-07 6:20
professionalAnthony Mushrow7-Dec-07 6:20 
GeneralSetting focus on new DeckItem [modified] Pin
oracleConvert7-Dec-07 4:24
oracleConvert7-Dec-07 4:24 
GeneralRe: Setting focus on new DeckItem Pin
Skippums7-Dec-07 5:14
Skippums7-Dec-07 5:14 
GeneralRe: Setting focus on new DeckItem Pin
oracleConvert7-Dec-07 5:51
oracleConvert7-Dec-07 5:51 
GeneralRe: Setting focus on new DeckItem Pin
Skippums7-Dec-07 6:13
Skippums7-Dec-07 6:13 
Ok, change the following and see if it changes the result:
EnableEditMode(this.currentDeckItem.DeckHeader as ReportTreeViewHeader);
-to-
EnableEditMode(item.DeckHeader as ReportTreeViewHeader);

I doubt it will, otherwise you would have seen a non-default header title as the title of the textBox. Also ensure that the ReportTreeViewHeader being passed in is NOT null. Another idea is to call "this.Refresh()", "this.View.ControlDeck.Refresh();", or "item.Refresh()", prior to and after setting the focus (try both separately, and together). If none of this works, then I really don't have any additional ideas. I think I know what the problem is, though... the textBox isn't actually displayed until the next call OnPaint method is executed. Since you set the focus prior to the textBox actually being visually created, it is not being drawn properly. Hopefully calling one of the Refresh() methods will halt execution on the main thread until the textbox's GUI has been created. This appears to be a similar problem to what I was describing with the constructor... stuff isn't drawn until AFTER the constructor yields control of the main thread to the message pump. Good luck!


-Jeff

GeneralRe: Setting focus on new DeckItem Pin
oracleConvert7-Dec-07 6:21
oracleConvert7-Dec-07 6:21 
GeneralRe: Setting focus on new DeckItem Pin
Skippums7-Dec-07 9:18
Skippums7-Dec-07 9:18 
GeneralRe: Setting focus on new DeckItem Pin
oracleConvert7-Dec-07 9:44
oracleConvert7-Dec-07 9:44 
GeneralRe: Setting focus on new DeckItem Pin
Skippums10-Dec-07 3:52
Skippums10-Dec-07 3:52 
GeneralRe: Setting focus on new DeckItem Pin
oracleConvert10-Dec-07 4:57
oracleConvert10-Dec-07 4:57 
GeneralGet Data From OLEDBDataReader Pin
tr_thorn7-Dec-07 3:34
tr_thorn7-Dec-07 3:34 
GeneralRe: Get Data From OLEDBDataReader Pin
Pete O'Hanlon7-Dec-07 3:48
mvePete O'Hanlon7-Dec-07 3:48 
GeneralRe: Get Data From OLEDBDataReader Pin
pmarfleet7-Dec-07 3:49
pmarfleet7-Dec-07 3:49 
GeneralRe: Get Data From OLEDBDataReader Pin
Dr. Emmett Brown7-Dec-07 3:57
Dr. Emmett Brown7-Dec-07 3:57 
GeneralRe: Get Data From OLEDBDataReader Pin
tr_thorn8-Dec-07 2:53
tr_thorn8-Dec-07 2:53 
Questionhow to use "bgcolor"? Pin
Imran Adam7-Dec-07 3:24
Imran Adam7-Dec-07 3:24 
AnswerRe: how to use "bgcolor"? Pin
Ennis Ray Lynch, Jr.7-Dec-07 3:27
Ennis Ray Lynch, Jr.7-Dec-07 3:27 
GeneralRe: how to use "bgcolor"? Pin
Imran Adam7-Dec-07 3:30
Imran Adam7-Dec-07 3:30 
GeneralRe: how to use "bgcolor"? Pin
Pete O'Hanlon7-Dec-07 3:46
mvePete O'Hanlon7-Dec-07 3:46 
GeneralRe: how to use "bgcolor"? Pin
Imran Adam7-Dec-07 8:28
Imran Adam7-Dec-07 8:28 
AnswerRe: how to use "bgcolor"? Pin
Skippums7-Dec-07 3:53
Skippums7-Dec-07 3:53 
GeneralRe: how to use "bgcolor"? Pin
Imran Adam7-Dec-07 8:28
Imran Adam7-Dec-07 8:28 

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.