Sara Posted July 16, 2003 Posted July 16, 2003 Ciao, io ho un'oggetto Splitter all'interno del mio form che deve dividere due oggetti. Gestisco l'evento Splitter_Moving che deve ovviamente ridimensionare i due oggetti separati dallo splitter. private void splitterMoving(object sender, System.Windows.Forms.SplitterEventArgs e) se scrivo e.SplitX mi viene ritornato il valore della coordinata x dell'angolo superiore sinistro dello splitter, ma in coordinate client. Come faccio a convertire tale valore in coordinate del form contenitore??? Grazie 1000. Sara Quote
Leaders dynamic_sysop Posted July 16, 2003 Leaders Posted July 16, 2003 in english it's : In English: Hello, I have a Splitter object to the inside of mine form that he must divide two objects. I manage the Splitter_Moving event that must obviously reorganize the two objects separates to you from the splitter. private void splitterMoving(object sender, System.Windows.Forms.SplitterEventArgs and) if I write e.SplitX comes to me returned the value of coordinate x of the left advanced angle of the splitter, but in coordinated client. How I make to convert such value in co-ordinate of form the container? Thanks 1000. Sara roughly i think ;) not sure if this is what you want to know : Private Sub Splitter1_SplitterMoving(ByVal sender As Object, ByVal e As System.Windows.Forms.SplitterEventArgs) Handles Splitter1.SplitterMoving Me.Text = e.X '/// current position of the splitter's bar End Sub in itallian : Il mittente riservato del sommergibile Splitter1_SplitterMoving(ByVal come oggetto, ByVal e come System.Windows.Forms.SplitterEventArgs) maneggia Splitter1.SplitterMoving///di e.X = di Me.Text 'attuale posizione del sommergibile dell'estremità della barra del divisore Quote
Simon Posted July 17, 2003 Posted July 17, 2003 nice translation dynamic_sysop ! ciao ____________________ SiMoN. Quote SiMoN.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.