Click here to Skip to main content
15,902,635 members
Home / Discussions / WPF
   

WPF

 
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 
QuestionSilverlight error in asp.net aplication Pin
Amit Patel198512-Jan-10 22:37
Amit Patel198512-Jan-10 22:37 
AnswerRe: Silverlight error in asp.net aplication Pin
Abhinav S12-Jan-10 23:13
Abhinav S12-Jan-10 23:13 
QuestionRe: Silverlight error in asp.net aplication Pin
Mark Salsbery13-Jan-10 6:49
Mark Salsbery13-Jan-10 6:49 
AnswerRe: Silverlight error in asp.net aplication Pin
Michael Eber21-Jan-10 9:08
Michael Eber21-Jan-10 9:08 
AnswerRe: Silverlight error in asp.net aplication Pin
Kunal Chowdhury «IN»23-Jan-10 23:25
professionalKunal Chowdhury «IN»23-Jan-10 23:25 
QuestionProblem in 3D drawing for jagged line Pin
Gopal_Kanchana12-Jan-10 20:50
Gopal_Kanchana12-Jan-10 20:50 
QuestionWin7:WPF has a bug when set a button visible during system suspending or resuming. (Online Waiting) [modified] Pin
YoYo_Yao12-Jan-10 16:02
YoYo_Yao12-Jan-10 16:02 
AnswerRe: Win7:WPF has a bug when set a button visible during system suspending or resuming. (Online Waiting) Pin
Daniel Grunwald15-Jan-10 4:37
Daniel Grunwald15-Jan-10 4:37 
QuestionEquivalent of treeView1.Nodes.Find in WPF TreeView ? Pin
Mohammad Dayyan12-Jan-10 8:27
Mohammad Dayyan12-Jan-10 8:27 
AnswerRe: Equivalent of treeView1.Nodes.Find in WPF TreeView ? Pin
Pete O'Hanlon13-Jan-10 3:30
mvePete O'Hanlon13-Jan-10 3:30 
GeneralRe: Equivalent of treeView1.Nodes.Find in WPF TreeView ? Pin
Mohammad Dayyan13-Jan-10 8:33
Mohammad Dayyan13-Jan-10 8:33 
GeneralRe: Equivalent of treeView1.Nodes.Find in WPF TreeView ? Pin
Pete O'Hanlon13-Jan-10 8:46
mvePete O'Hanlon13-Jan-10 8:46 
GeneralRe: Equivalent of treeView1.Nodes.Find in WPF TreeView ? Pin
Mohammad Dayyan14-Jan-10 2:53
Mohammad Dayyan14-Jan-10 2:53 

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.