Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

  • Leaders
Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...