• Webseitenerstellung und -hosting
  • .NET Anwendungsentwicklung
  • softwaregesteuerte Prozessoptimierung
  • .NET

    Programmierung

  • WebseitenErstellung

    undHosting

  • softwaregesteuerte

    Prozessoptimierung

  • Konzeption

    und Beratung

%PM, %19. %621 %2014 %13:%Feb

WPF Window BringToFront

geschrieben von
Artikel bewerten
(0 Stimmen)
Alternative gibts im Netz genug, bei mir allerdings hat wie immer nichts geholfen. Spielchen wie Bringintoview, Topmost True/false etc. greifen nicht, vermutlich auch weil ich dafür eine extra Extension geschrieben habe?!


Public Sub ShowFront(winDow As Window)
Try

winDow.Show()
winDow.BringIntoView()
winDow.Activate()
winDow.Focus()
'winDow.Topmost = True
'winDow.Topmost = False

Catch ex As Exception
orange.Fehler.Show(ex)
End Try
End Sub


 

die Lösung: Beim Aufruf des Ereignises welches das Childwindow aufrufen möchte, meist ein click oder mousedown:

e.handled = true

somit wird das Click-Ereignis der Parent-Form beendet und hat keine Auswirkungen auf die folgenden Prozesse.  
Gelesen 54562 mal Letzte Änderung am %PM, %24. %643 %2015 %14:%Jun

137 Kommentare

  • Kommentar-Link buy generic cialis %AM, %08. %124 %2022 %01:%Aug gepostet von buy generic cialis

    doxycycline powder doxycycline 100mg doxycycline hyclate 100 mg cap capsule how long does doxycycline take to work for sinus infection

  • Kommentar-Link revia online order %AM, %07. %275 %2022 %05:%Aug gepostet von revia online order

    valtrex and diarrhea valtrex 500 how long can you take valacyclovir how much does valacyclovir cost

  • Kommentar-Link naltrexone caps %PM, %05. %628 %2022 %14:%Aug gepostet von naltrexone caps

    valtrex for shingles valtrex buy online valtrex over the counter equivalent how fast heal with valacyclovir 1gm tablets

  • Kommentar-Link canadian pharmacy %PM, %04. %761 %2022 %17:%Aug gepostet von canadian pharmacy

    plaquenil dose calculator plaquenil buy what dose of tablets available for plaquenil what pain meds can you take while on plaquenil

  • Kommentar-Link amoxicillin discount %AM, %02. %204 %2022 %03:%Aug gepostet von amoxicillin discount

    molnupiravir avermectin molnupiravir stock molnupiravir malaysia price molnupiravir avermectin

  • Kommentar-Link molnuprivair %PM, %29. %861 %2022 %19:%Jul gepostet von molnuprivair

    sandoz levothyroxine synthroid 25 mcg price why take levothyroxine on empty stomach why can't you crush levothyroxine

  • Kommentar-Link buy cheap synthroid %PM, %28. %564 %2022 %12:%Jul gepostet von buy cheap synthroid

    naltrexone india revia suisse naltrexone for pain side effects how does naltrexone help with weight loss

  • Kommentar-Link quineprox 60 %AM, %26. %155 %2022 %02:%Jul gepostet von quineprox 60

    cialis jelly online prescription for viagra buy cheap cialis online australia cialis dosage when to take

  • Kommentar-Link como se usa cialis %AM, %26. %140 %2022 %02:%Jul gepostet von como se usa cialis

    nolvadex benefits bodybuilding nolvadex 10mg without prescription should i take nolvadex during my cycle when to take nolvadex pct

  • Kommentar-Link olumiant fda %AM, %22. %479 %2022 %10:%Jul gepostet von olumiant fda

    glumetza vs metformin metformin coupon why does metformin smell like fish when can i stop taking metformin

Schreibe einen Kommentar

Bitte achten Sie darauf, alle Felder mit Stern * zu füllen. HTML-Code ist nicht erlaubt.