Click here to Skip to main content
15,890,845 members
Home / Discussions / C#
   

C#

 
GeneralRe: String manipulation performance issue [modified] Pin
sjembek6-Jun-06 4:04
sjembek6-Jun-06 4:04 
AnswerRe: String manipulation performance issue Pin
Stefan Troschuetz6-Jun-06 3:50
Stefan Troschuetz6-Jun-06 3:50 
AnswerRe: String manipulation performance issue [modified] Pin
Guffa6-Jun-06 5:20
Guffa6-Jun-06 5:20 
QuestionControlled Focus event - textBox Pin
conrado76-Jun-06 3:26
conrado76-Jun-06 3:26 
AnswerRe: Controlled Focus event - textBox Pin
NaNg152416-Jun-06 3:34
NaNg152416-Jun-06 3:34 
GeneralRe: Controlled Focus event - textBox Pin
conrado76-Jun-06 3:45
conrado76-Jun-06 3:45 
QuestionException Pin
sanmech6-Jun-06 3:25
sanmech6-Jun-06 3:25 
QuestionDrag&Drop listview subitem? Pin
Dominik Reichl6-Jun-06 3:16
Dominik Reichl6-Jun-06 3:16 
Hello!

I am trying to implement a simple drag&drop ability for a ListView. It should just get the text of the selected subitem and drag its text. I tried this:

private void OnDataListItemDrag(object sender, ItemDragEventArgs e)
{
ListViewItem lvi = e.Item as ListViewItem;
if(lvi == null) return;
string strDrag = lvi.Text;
this.DoDragDrop(strDrag, DragDropEffects.Copy | DragDropEffects.Move);
...


The problem now is that the code above always gets the text of the item, not of the subitem. But the user should be able to drag cells, i.e. the subitems. The ItemDragEventArgs structure doesn't seem to have a SubItem member. I also cannot use HitTest here, as the mouse cursor position is incorrect at that time (user dragged the item already a few pixels before the event above is fired, therefore a hit test at that time could result in an incorrect item or column).

Any idea how to get the dragged subitem?

Many thanks in advance and best regards
Dominik



_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do?? Wink | ;)
(doesn't work on NT)

Questionconnected to the internet or not ?? Pin
Tamimi - Code6-Jun-06 3:10
Tamimi - Code6-Jun-06 3:10 
AnswerRe: connected to the internet or not ?? Pin
stancrm6-Jun-06 3:31
stancrm6-Jun-06 3:31 
GeneralRe: connected to the internet or not ?? Pin
Tamimi - Code6-Jun-06 3:47
Tamimi - Code6-Jun-06 3:47 
GeneralRe: connected to the internet or not ?? Pin
stancrm6-Jun-06 3:55
stancrm6-Jun-06 3:55 
GeneralRe: connected to the internet or not ?? Pin
Aaron Dilliard6-Jun-06 3:57
Aaron Dilliard6-Jun-06 3:57 
QuestionKeyboard layout Pin
hany_hu6-Jun-06 2:58
hany_hu6-Jun-06 2:58 
AnswerRe: Keyboard layout Pin
stancrm6-Jun-06 3:03
stancrm6-Jun-06 3:03 
Questionhowto avoid double databinding ? help ??? Pin
cmpeng346-Jun-06 1:05
cmpeng346-Jun-06 1:05 
AnswerRe: howto avoid double databinding ? help ??? Pin
J4amieC6-Jun-06 1:17
J4amieC6-Jun-06 1:17 
AnswerRe: howto avoid double databinding ? help ??? Pin
rah_sin6-Jun-06 1:18
professionalrah_sin6-Jun-06 1:18 
Questiondatabinding problem ? help please. Pin
cmpeng346-Jun-06 0:53
cmpeng346-Jun-06 0:53 
AnswerRe: databinding problem ? help please. Pin
rah_sin6-Jun-06 1:12
professionalrah_sin6-Jun-06 1:12 
QuestionChange chracters Pin
IamHuM6-Jun-06 0:08
IamHuM6-Jun-06 0:08 
AnswerRe: Change chracters Pin
stancrm6-Jun-06 0:25
stancrm6-Jun-06 0:25 
QuestionTrialware Pin
Dave Midgley5-Jun-06 23:54
Dave Midgley5-Jun-06 23:54 
AnswerRe: Trialware [modified] Pin
Daniele Ferrero6-Jun-06 0:25
Daniele Ferrero6-Jun-06 0:25 
GeneralRe: Trialware [modified] Pin
Dave Midgley6-Jun-06 0:54
Dave Midgley6-Jun-06 0:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.