|
Thanks. Back to the drawing board :->
There are 10 kinds of people: those who understand binary and those who don't
|
|
|
|
|
You can as long as the type you are using can be evaluated to a numerical value.
================================
Wirth's law: Software gets slower faster than hardware gets faster.
|
|
|
|
|
hi
i create an application with C#.
now i want to go on my develop in another computer but when run my application without any change , at run time , before main form show, throw following Exception :
Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))<br />
i really don't know how can resolve it.
i think my problem is for dll references that i use in my application !
can i "reference to dll with "reference path" tools in my application property ?
can you help me.
tanks
|
|
|
|
|
I'm not so sure but I think u must be using COM here and the component your app is trying to use is not there in the registry.
Rocky
You can't climb up a ladder with your hands in your pockets.
|
|
|
|
|
thanks.
how can i registry COM in my application ?
|
|
|
|
|
well personally I hadnt had enuff exposure of COM but I've seen such issues comming at a few places,
generally I've seen ppl registering the required DLLs but for that you gotta know which dlls your application is using. RegSvr32 is a command you should search out for, its used in command prompt by the way. I hope its a bit helpful to u:->
Rocky
You can't climb up a ladder with your hands in your pockets.
|
|
|
|
|
Hi,
I currently do the following when closing a form containing editable databound controls (comboboxes mainly)..
this.configBindingSource.EndEdit();
if ((bool)this.myDataSet1.HasChanges())
// do some stuff
The problem is that if I bind a control's tag to a field in the datatable, the above condition is met even if there are no changes made to the form's controls at all. Even if I bind it to a label.tag, it still triggers a change to the datatable.
Is there something I'm doing wrong?
Thanks.
Glen Harvy
|
|
|
|
|
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 ------>
|
|
|
|
|
Thanks for that - in this case I'll handle the situation differently.
Glen Harvy
|
|
|
|
|
hi guys
i want to use a coute down timer in my application
HH:MM:SS
when any users opens my application i want to display this timer on the main form,,
in the start its three digits are set to 00, than seconds starts increasing and than minutes, and than if necessery hours also ,, how to do that ?
this is a timer not a time,,,
hello
|
|
|
|
|
Surely a count down timer counts down, not up?
|
|
|
|
|
|
|
Watt?
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
|
I'm not going to give you the code - but I will give you some hints. How often do you think your timer will update (take a look at this[^] article before you commit yourself)? How do you think you need to divide the values up (think about dividing by 60 - and multiples thereof)? You are going to need a formatter.
Alternatively, you could use a trick and get the difference between the time your application starts counting and the current time using the DateTime classes. Again you will need a timer.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Pete O`Hanlon wrote: I'm not going to give you the code
right. give him the force.
nice reference BTW.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
HI,
i Like to know if there is away to create a treeview
that consists of (buttons,other possible control)
does VS .NET 2005 have a ToolBox Contol?
iCould'nt find it
if it does not appear can i create one and how?
THNKS
kobkob
|
|
|
|
|
kobibi wrote: i Like to know if there is away to create a treeview
that consists of (buttons,other possible control)
you can customize the contol's fuctionality and outlook. I havent done this kind of customization myself but here's a sample article for u to get started.
Control Customization[^]
Rocky
You can't climb up a ladder with your hands in your pockets.
|
|
|
|
|
Hi,
Wanna to write Socket programe which should have Client and Sever, Nead to open only one socket between Server and Cleint by using the same Socket i want to do Send and Receive as many times i want insted of closing and open for every trasnfer.
- Thanks
|
|
|
|
|
Good luck in your endevour. However, I assume you actually wanted to ask a question rather than tell us all what your plans are.
|
|
|
|
|
Colin Angus Mackay wrote: Good luck in your endevour. However, I assume you actually wanted to ask a question rather than tell us all what your plans are.
I wanna get a cup of coffee. Wish me luck.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Pete O`Hanlon wrote: I wanna get a cup of coffee
Good luck with the coffee. Remember, be careful of the hot water... It can burn you if you are not careful.
|
|
|
|
|
Colin Angus Mackay wrote: Good luck with the coffee. Remember, be careful of the hot water... It can burn you if you are not careful.
You see, that's the type of advanced stuff that only comes about through knowing how to do things like TDD and refactoring.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
If you are asking how to begin what you want to do, have a look at the System.Net.Sockets.Socket class, and try searching Codeproject site for articles. You'll find everything there.
There are 10 kinds of people: those who understand binary and those who don't
|
|
|
|