Print Page | Close Window

[SOLVED] Taskdialog with two Monitor's issue

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=17866
Printed Date: 27 November 2024 at 5:48am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED] Taskdialog with two Monitor's issue
Posted By: dadoom
Subject: [SOLVED] Taskdialog with two Monitor's issue
Date Posted: 11 February 2011 at 7:00am
Hello, i have a problem using the taskdialog and two monitors.
At work I'm haveing a winXP Sp3 and vb6 sp6 and those two Monitors on a GeForce 9600GT

I have two taskdialogs in my projekt one of them looks good the other one appears in the center of Both screens (also on pc's that not have those two monitors) and even if i disable the 2th monitor in the viewproberty of winXP the 'error' still occur.
 
Its the same on my home PC (Win7, vb6 sp6 and never head two monitors).
I allready deleted the taskdialog with the problem from the from and copied the working one from the other form but it's stell the same


Code of the non working
With TaskDialog
       
        .Reset
       
        .MessageBoxStyle = True
        .WindowTitle = "Übersicht"
        .MainInstructionText = "Kunde unwiderruflich löschen?"
        .MainIcon = xtpTaskIconWarning
       
        .ContentText = "..."

        .ExpandedInformationText = "..."
        .CollapsedControlText = "Was wird gelöscht?"
        .ExpandedControlText = "Was wird gelöscht - ausblenden"
       
        .FooterText = "..."
        .FooterIcon = xtpTaskIconInformation
       
        .DialogWidth = 200
       
        .AddButton "Ja", 101
        .AddButton "Nein", 102
        .DefaultButton = 102
       
        .ShowDialog
   
End With



Code of the non working
With TaskDialog
       
        .Reset
       
        .MessageBoxStyle = True
        .WindowTitle = "..."
        .MainInstructionText = "... unwiderruflich löschen?"
        .MainIcon = xtpTaskIconWarning
       
        .ContentText = "..."
     
        .FooterText = "..."
        .FooterIcon = xtpTaskIconInformation
       
        .DialogWidth = 200
       
        .AddButton "Ja", 101
        .AddButton "Nein", 102
        .DefaultButton = 102
       
        .ShowDialog
   
    End With

is there any way to get this right?



Replies:
Posted By: mimue
Date Posted: 16 February 2011 at 5:29am
Did you tried to set the properties ParentHwnd and RelativePositionof the task dialog? This should work.


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.1
Platform: Windows 7 (x64)
Language: Visual Basic 6.0


Posted By: dadoom
Date Posted: 24 February 2011 at 2:02am
.ParentHWND works fine! Thank you Big smile



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net