Click here to Skip to main content
15,917,473 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: data binding, error while read The xml file source Pin
yuripon18-Jan-10 17:43
yuripon18-Jan-10 17:43 
Question2D Coordinate Position Pin
sajib_bd15-Jan-10 6:59
sajib_bd15-Jan-10 6:59 
Questionxaml conditional question Pin
bovus15-Jan-10 4:59
bovus15-Jan-10 4:59 
AnswerRe: xaml conditional question Pin
Pete O'Hanlon15-Jan-10 5:27
mvePete O'Hanlon15-Jan-10 5:27 
QuestionReading Directories on a web server Pin
Member 126947314-Jan-10 7:02
Member 126947314-Jan-10 7:02 
AnswerRe: Reading Directories on a web server Pin
Mark Salsbery14-Jan-10 10:05
Mark Salsbery14-Jan-10 10:05 
GeneralRe: Reading Directories on a web server Pin
Member 126947314-Jan-10 10:33
Member 126947314-Jan-10 10:33 
GeneralRe: Reading Directories on a web server Pin
Mark Salsbery14-Jan-10 10:43
Mark Salsbery14-Jan-10 10:43 
QuestionHow draw cross section line like Autocad in WPF Pin
Gopal_Kanchana13-Jan-10 18:33
Gopal_Kanchana13-Jan-10 18:33 
QuestionWPF DataGrid how to set RowSpan using code-behind? Pin
hidipak13-Jan-10 10:12
hidipak13-Jan-10 10:12 
AnswerRe: WPF DataGrid how to set RowSpan using code-behind? Pin
Abhinav S13-Jan-10 18:33
Abhinav S13-Jan-10 18:33 
QuestionProblem in Jagged Line in 3d cube in wpf Pin
Gopal_Kanchana13-Jan-10 6:25
Gopal_Kanchana13-Jan-10 6:25 
AnswerRe: Problem in Jagged Line in 3d cube in wpf Pin
Insincere Dave13-Jan-10 6:33
Insincere Dave13-Jan-10 6:33 
GeneralRe: Problem in Jagged Line in 3d cube in wpf Pin
Gopal_Kanchana13-Jan-10 6:37
Gopal_Kanchana13-Jan-10 6:37 
GeneralRe: Problem in Jagged Line in 3d cube in wpf Pin
Insincere Dave13-Jan-10 6:50
Insincere Dave13-Jan-10 6:50 
GeneralRe: Problem in Jagged Line in 3d cube in wpf Pin
Gopal_Kanchana13-Jan-10 18:30
Gopal_Kanchana13-Jan-10 18:30 
GeneralRe: Problem in Jagged Line in 3d cube in wpf Pin
Gopal_Kanchana14-Jan-10 17:39
Gopal_Kanchana14-Jan-10 17:39 
GeneralRe: Problem in Jagged Line in 3d cube in wpf Pin
Jammer18-Jan-10 4:48
Jammer18-Jan-10 4:48 
Questiontesting if window is loaded. Pin
gritter13-Jan-10 4:29
gritter13-Jan-10 4:29 
QuestionRe: testing if window is loaded. Pin
gritter13-Jan-10 4:59
gritter13-Jan-10 4:59 
AnswerRe: testing if window is loaded. Pin
Ian Shlasko13-Jan-10 5:52
Ian Shlasko13-Jan-10 5:52 
Try a static/shared field - These are related to the class itself, not to the instance of the class:

In the Window3 code:
Private Shared _currentInstance as Window3

Public Shared Function GetInstance() As Window3
  If _currentInstance Is Nothing Then
    _currentInstance = New Window3
  End If

 GetInstance = _currentInstance
End Function


Also, be sure to add code to the OnClosing, or some similar location, to set _currentInstance back to Nothing if you close Window3.

And in your btnGo code:
Window3.GetInstance().Show()


Oh, and might want to consider giving Window3 a more meaningful name.

Proud to have finally moved to the A-Ark. Which one are you in?
Author of Guardians of Xen (Sci-Fi/Fantasy novel)

GeneralRe: testing if window is loaded. Pin
gritter13-Jan-10 6:48
gritter13-Jan-10 6:48 
GeneralRe: testing if window is loaded. Pin
gritter13-Jan-10 6:58
gritter13-Jan-10 6:58 
QuestionI need an ebay program Pin
totolcm13-Jan-10 2:24
totolcm13-Jan-10 2:24 
AnswerRe: I need an ebay program Pin
Pete O'Hanlon13-Jan-10 3:03
mvePete O'Hanlon13-Jan-10 3:03 

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.