Click here to Skip to main content
15,899,825 members
Home / Discussions / C#
   

C#

 
GeneralRemoting on .NET Framework 1.1 Pin
KC Ooi19-Oct-03 23:14
KC Ooi19-Oct-03 23:14 
GeneralRe: Remoting on .NET Framework 1.1 Pin
Jeffry van de Vuurst20-Oct-03 1:51
Jeffry van de Vuurst20-Oct-03 1:51 
GeneralTake the "real" time an application has been used Pin
Braulio Dez19-Oct-03 23:05
Braulio Dez19-Oct-03 23:05 
GeneralRe: Take the "real" time an application has been used Pin
Marc Clifton20-Oct-03 1:13
mvaMarc Clifton20-Oct-03 1:13 
GeneralRe: Take the "real" time an application has been used Pin
Braulio Dez20-Oct-03 2:20
Braulio Dez20-Oct-03 2:20 
GeneralRe: Take the "real" time an application has been used Pin
Corinna John20-Oct-03 1:35
Corinna John20-Oct-03 1:35 
GeneralRe: Take the "real" time an application has been used Pin
Braulio Dez20-Oct-03 2:21
Braulio Dez20-Oct-03 2:21 
GeneralRe: Take the "real" time an application has been used Pin
Andrew Torrance22-Oct-03 22:33
Andrew Torrance22-Oct-03 22:33 
GeneralTables in a DataSet Pin
Mazdak19-Oct-03 22:44
Mazdak19-Oct-03 22:44 
GeneralRe: Tables in a DataSet Pin
Heath Stewart20-Oct-03 5:29
protectorHeath Stewart20-Oct-03 5:29 
Generalgui behavior Pin
Roger Alsing19-Oct-03 22:30
Roger Alsing19-Oct-03 22:30 
GeneralRe: gui behavior Pin
Heath Stewart20-Oct-03 5:32
protectorHeath Stewart20-Oct-03 5:32 
GeneralRe: gui behavior Pin
DesertLarry21-Oct-03 5:04
DesertLarry21-Oct-03 5:04 
GeneralDll free problem Pin
andyniyong19-Oct-03 22:22
andyniyong19-Oct-03 22:22 
GeneralRe: Dll free problem Pin
leppie20-Oct-03 7:12
leppie20-Oct-03 7:12 
GeneralRe: Dll free problem Pin
andyniyong21-Oct-03 16:04
andyniyong21-Oct-03 16:04 
Questionneed help... Listview drag drop algorithm? Pin
azusakt19-Oct-03 22:04
azusakt19-Oct-03 22:04 
AnswerRe: need help... Listview drag drop algorithm? Pin
Heath Stewart20-Oct-03 5:38
protectorHeath Stewart20-Oct-03 5:38 
GeneralRe: need help... Listview drag drop algorithm? Pin
azusakt21-Oct-03 18:22
azusakt21-Oct-03 18:22 
GeneralRe: need help... Listview drag drop algorithm? Pin
Heath Stewart21-Oct-03 18:36
protectorHeath Stewart21-Oct-03 18:36 
GeneralRe: need help... Listview drag drop algorithm? Pin
azusakt21-Oct-03 22:20
azusakt21-Oct-03 22:20 
GeneralRe: need help... Listview drag drop algorithm? Pin
Heath Stewart22-Oct-03 2:45
protectorHeath Stewart22-Oct-03 2:45 
You have to custom draw a line using the Graphics class between the two items (by centering a line between the bottom of one and the top of the other, such that a line would (normally) be 2 pixels wide - 1 pixel overlapping the bottom of the upper ListViewItem, and 1 pixel overlapping the top of the lower ListViewItem).

You can get a reference to a Graphics object by either handling the Paint event and using several variables to track when you should draw a line and where, or (preferrably) you can do it by calling ListView.CreateGraphics (actually inheritted from Control.CreateGraphics) to get the Graphics object and draw a line in the appropriate place. Just be sure to draw it uniformly. That is, make sure that you are consistent in where you draw it in relation to the insertion point.

I know there are several good articles on this subject (both with lists and trees) on CodeProject. You really should try searching for a solution here on CP.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
QuestionCan it be done? Pin
kbilly19-Oct-03 21:06
kbilly19-Oct-03 21:06 
AnswerRe: Can it be done? Pin
Daniel Turini19-Oct-03 21:25
Daniel Turini19-Oct-03 21:25 
GeneralRe: Can it be done? Pin
kbilly19-Oct-03 21:30
kbilly19-Oct-03 21:30 

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.