Click here to Skip to main content
15,906,625 members
Home / Discussions / C#
   

C#

 
GeneralRe: Yes Pin
eyeseetee7-Dec-07 5:18
eyeseetee7-Dec-07 5:18 
GeneralRe: Yes Pin
Ennis Ray Lynch, Jr.7-Dec-07 5:19
Ennis Ray Lynch, Jr.7-Dec-07 5:19 
GeneralRe: Yes Pin
eyeseetee7-Dec-07 5:21
eyeseetee7-Dec-07 5:21 
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 
I have deckControl that we allow users to create new deck items with. When they create a new deck item we want them to be able to enter the name for the deckitem in the textbox that we have as part of the deckitem. We give the new deckitem a default name of 'New Category' so when they create a deck item we want the textbox displayed with the name 'New Category' selected/highlighted so they can type in their name for the item.

I can get the textbox to display, but it never gets focus, so the text is not highlighted and the cursor is not in the textbox, even tho the IsFocused property is true. One thing I did notice was that the IsLoaded property is false, does this have anything to do with it? How do I force the new deck item to be loaded? The new deckItem is visibily displayed, and it is set to be the selectedItem in the deckControl. This is my first WPF project so I am sure I am missing something obvious.

As a side note the method I am calling to handle this also gets called if the user wants to rename a deckItem and it works fine on an existing deckItem, just not when they create a new deckItem.

Thanks!

modified on Friday, December 07, 2007 10:38:46 AM

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 
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 

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.