VB CS Midi Programming

raibeck 0 Ansehenspunkte
2024-05-19T14:38:56.2766667+00:00

Hi there Folks,

I am doing/having a quite huge Synthesizer program from scrath with VS2019 in mosly VB and some cs -classes (Im a Excel/VBA survivor, that I still love).

Do you have any simple clue to dropANDdrag for ;one let´s say

DataGridView to another and vice versa

Textbox to anothert, bla bla bla.

The cruicial thing is: on the one side is a binary string from the Dgv/txtBox stored in a msSQL/doesnotmatter/ could be even a file txt.

Can anyone help me Rai

btw: to Redmond menues are fine undermeues are hmmm... I´ve had it better a long time ago

.NET
.NET
Microsoft-Technologien, die auf dem .NET-Softwareframework basieren.
18 Fragen
0 Kommentare Keine Kommentare
{count} Stimmen

2 Antworten

Sortieren nach: Sehr hilfreich
  1. Ivan Dragov (CONCENTRIX Corporation) 1’850 Ansehenspunkte Microsoft Vendor
    2024-05-20T10:08:12.4666667+00:00

    Hallo raibeck,

    In den folgenden Artikeln erfährst Du, wie Du Daten per Drag-and-Drop zwischen zwei Datagrids verschiebst:

    drag and drop cell from datagridview to another

    Drag and Drop Row in a DataGridView

    Beim Ziehen und Ablegen von Daten zwischen zwei Textfeldern ist es ähnlich. Du musst die AllowDrop Eigenschaft, das DragEnter Ereignis und das DragDrop Ereignis der TextBox verwenden, wie hier beschrieben:

    Drag and drop not working

    Du brauchst das DataFormats.FileDrop Feld mit der GetData Methode, um Daten im entsprechenden Format abzurufen. Wie Du Drag-Drop-Daten im Fall des DataFormats.FileDrop-Felds in string[] konvertieren, erfährst Du hier:

    drag and drop file into textbox

    Gruß,

    Ivan Dragov

  2. raibeck 0 Ansehenspunkte
    2024-05-20T12:27:12.1266667+00:00

    Danke Dir Ivan,

    das hilft weiter

    ich habe es 25 Jahre nicht gepeilt, sondern durch [Button.Click]
    txtField1-->Copy / txtField2 -->Paste
    gelöst. Ich werde älter, man braucht ein Kissen zur Ruhe

    LG Raimo