Click here to Skip to main content
15,897,518 members
Home / Discussions / C#
   

C#

 
GeneralHID USB - Mag Card Reader Interaction Pin
nitesh11524-Dec-03 5:43
nitesh11524-Dec-03 5:43 
GeneralRe: HID USB - Mag Card Reader Interaction Pin
Kentamanos24-Dec-03 7:07
Kentamanos24-Dec-03 7:07 
GeneralRe: HID USB - Mag Card Reader Interaction Pin
nitesh11526-Dec-03 8:51
nitesh11526-Dec-03 8:51 
GeneralRe: HID USB - Mag Card Reader Interaction Pin
Kentamanos26-Dec-03 8:53
Kentamanos26-Dec-03 8:53 
GeneralRe: HID USB - Mag Card Reader Interaction Pin
Heath Stewart27-Dec-03 4:47
protectorHeath Stewart27-Dec-03 4:47 
GeneralTreeview Pin
mhmoud rawas24-Dec-03 1:05
mhmoud rawas24-Dec-03 1:05 
GeneralRe: Treeview Pin
Heath Stewart27-Dec-03 4:43
protectorHeath Stewart27-Dec-03 4:43 
GeneralRe: Treeview Pin
Heath Stewart27-Dec-03 5:34
protectorHeath Stewart27-Dec-03 5:34 
Oops...didn't finish!

mhmoud rawas wrote:
when you minimize the application and re maximaize it somethimg strange will happen to the drawing event, sometimes it draw gray rectangulers ??!!

If you're doing any drawing, you must make sure that invalidated regions are drawn. Since the TreeView.Paint method is not fired, you must handle this the "Windows way" by overriding WndProc in your derivitive class and handling the appropriate item drawing codes. See the Windows Common Control documentation in MSDN Library for the Tree-View common control class messages and notifications.

mhmoud rawas wrote:
the last thing when you select any unselected node in the tree by right click the node will get the selection when your mouse button is down but when you releas the button the selection will rerurm to the last selected node in the tree ??!!!!

Because a right-clicked node is selected - it is active. The selected node is therefore not changed. This is common among tree controls, even in the Windows Explorer (which, btw, uses the same Tree-View that the TreeView class wraps). Even several other third-party tree controls that I'm aware of work this way - things that are right-click are necessarily selected. This is also common amongh many other UI elements in many different window managers.

 

-----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-----
GeneralRe: Treeview Pin
mhmoud rawas27-Dec-03 18:09
mhmoud rawas27-Dec-03 18:09 
GeneralRe: Treeview Pin
Heath Stewart28-Dec-03 3:16
protectorHeath Stewart28-Dec-03 3:16 
GeneralDataAdapter.Fill progress Pin
Alex Korchemniy23-Dec-03 18:30
Alex Korchemniy23-Dec-03 18:30 
GeneralRe: DataAdapter.Fill progress Pin
mhmoud rawas24-Dec-03 1:08
mhmoud rawas24-Dec-03 1:08 
GeneralRe: DataAdapter.Fill progress Pin
SimonS24-Dec-03 8:26
SimonS24-Dec-03 8:26 
GeneralRe: DataAdapter.Fill progress Pin
mhmoud rawas26-Dec-03 19:04
mhmoud rawas26-Dec-03 19:04 
GeneralRe: DataAdapter.Fill progress Pin
SimonS26-Dec-03 21:13
SimonS26-Dec-03 21:13 
GeneralRe: DataAdapter.Fill progress Pin
mhmoud rawas26-Dec-03 21:19
mhmoud rawas26-Dec-03 21:19 
GeneralRe: DataAdapter.Fill progress Pin
Heath Stewart27-Dec-03 4:41
protectorHeath Stewart27-Dec-03 4:41 
GeneralWhy use String.Empty() rather than "" Pin
Marc Clifton23-Dec-03 13:45
mvaMarc Clifton23-Dec-03 13:45 
GeneralRe: Why use String.Empty() rather than "" Pin
Nick Parker23-Dec-03 13:54
protectorNick Parker23-Dec-03 13:54 
GeneralRe: Why use String.Empty() rather than "" Pin
Robert Slaney23-Dec-03 14:36
Robert Slaney23-Dec-03 14:36 
GeneralRe: Why use String.Empty() rather than "" Pin
Nick Parker23-Dec-03 14:51
protectorNick Parker23-Dec-03 14:51 
GeneralRe: Why use String.Empty() rather than "" Pin
Nick Seng23-Dec-03 14:47
Nick Seng23-Dec-03 14:47 
GeneralRe: Why use String.Empty() rather than "" Pin
Bo Hunter23-Dec-03 17:23
Bo Hunter23-Dec-03 17:23 
GeneralRe: Why use String.Empty() rather than "" Pin
Cristoff24-Dec-03 10:17
Cristoff24-Dec-03 10:17 
GeneralRe: Why use String.Empty() rather than "" Pin
Nick Parker24-Dec-03 11:20
protectorNick Parker24-Dec-03 11:20 

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.