Click here to Skip to main content
15,921,622 members
Home / Discussions / C#
   

C#

 
GeneralRe: Question about switch statement Pin
Andrei Ungureanu8-Oct-07 23:43
Andrei Ungureanu8-Oct-07 23:43 
AnswerRe: Question about switch statement Pin
JSSUML9-Oct-07 2:32
JSSUML9-Oct-07 2:32 
Questionwhat is : Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) Pin
B.A8-Oct-07 23:09
B.A8-Oct-07 23:09 
AnswerRe: what is : Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) Pin
Rocky#8-Oct-07 23:18
Rocky#8-Oct-07 23:18 
GeneralRe: what is : Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) Pin
B.A8-Oct-07 23:29
B.A8-Oct-07 23:29 
GeneralRe: what is : Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) Pin
Rocky#8-Oct-07 23:39
Rocky#8-Oct-07 23:39 
Questiondatabinding to control.tag causes changes to dataset Pin
Glen Harvy8-Oct-07 22:59
Glen Harvy8-Oct-07 22:59 
AnswerRe: databinding to control.tag causes changes to dataset Pin
Urs Enzler9-Oct-07 0:47
Urs Enzler9-Oct-07 0:47 
No you're not doing something wrong, but you have to know something about data binding:

Whenever you bind something to a property (Tag in your case) that does not have a corresponding PropertyChanged event (TagChanged event in your case) then the data binding framework assumes that the value has changed. Therefore the value is written back to the data source even if the value hasn't changed.

If this is the reason for your problem then you can:
- define that the binding is only unidirectional (from data-source to control and not back). This can be defined somewhere, but I can't remember where (we don't use data binding anymore)
- derive a class from that control and implement the TagChanged event
- use something better than data binding (MVP)

-^-^-^-^-^-
no risk no funk ................... please vote ------>

GeneralRe: databinding to control.tag causes changes to dataset Pin
Glen Harvy9-Oct-07 1:32
Glen Harvy9-Oct-07 1:32 
Questiontimer Pin
Tauseef A8-Oct-07 22:46
Tauseef A8-Oct-07 22:46 
AnswerRe: timer Pin
Jon Hulatt8-Oct-07 22:49
Jon Hulatt8-Oct-07 22:49 
QuestionRe: timer Pin
Tauseef A8-Oct-07 22:51
Tauseef A8-Oct-07 22:51 
AnswerRe: timer Pin
Jon Hulatt8-Oct-07 23:51
Jon Hulatt8-Oct-07 23:51 
GeneralRe: timer Pin
Pete O'Hanlon8-Oct-07 23:56
mvePete O'Hanlon8-Oct-07 23:56 
GeneralRe: timer Pin
Jon Hulatt9-Oct-07 0:05
Jon Hulatt9-Oct-07 0:05 
AnswerRe: timer Pin
Pete O'Hanlon8-Oct-07 22:54
mvePete O'Hanlon8-Oct-07 22:54 
GeneralRe: timer Pin
Luc Pattyn9-Oct-07 0:38
sitebuilderLuc Pattyn9-Oct-07 0:38 
QuestionTreeView, ToolBox Pin
half-life8-Oct-07 22:43
half-life8-Oct-07 22:43 
AnswerRe: TreeView, ToolBox Pin
Rocky#8-Oct-07 23:15
Rocky#8-Oct-07 23:15 
QuestionSocket Programming Pin
satsumatable8-Oct-07 21:16
satsumatable8-Oct-07 21:16 
AnswerRe: Socket Programming Pin
Colin Angus Mackay8-Oct-07 22:34
Colin Angus Mackay8-Oct-07 22:34 
GeneralRe: Socket Programming Pin
Pete O'Hanlon8-Oct-07 22:41
mvePete O'Hanlon8-Oct-07 22:41 
GeneralRe: Socket Programming Pin
Colin Angus Mackay9-Oct-07 0:02
Colin Angus Mackay9-Oct-07 0:02 
GeneralRe: Socket Programming Pin
Pete O'Hanlon9-Oct-07 0:11
mvePete O'Hanlon9-Oct-07 0:11 
AnswerRe: Socket Programming Pin
Andrei Ungureanu8-Oct-07 23:25
Andrei Ungureanu8-Oct-07 23:25 

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.