|
zafersavas wrote: Well, this topic seems going deeper
Yeah, don't want to get into this too deep - this board probably isn't the right place, and don't want to hijack the thread! You say tomato, I say... etc etc.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Expect everything to be hard and then enjoy the things that come easy. (code-frog)
|
|
|
|
|
Adding the event - thats cool.
Presumably you could also use the same method for any child form simply by adding the formclosing event. If you needed custom processing for a particular form use a switch on the sender name.
Oh joy, new toys to play with.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Mycroft Holmes wrote: Presumably you could also use the same method for any child form
You can do anything you like with it. Eg.You can respond to events from objects that are part of the child form too by either making them public (not recommended) or better still, in the event handler on the child, fire a new custom event that the other form can listen for. the possibilities are endless...
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Expect everything to be hard and then enjoy the things that come easy. (code-frog)
|
|
|
|
|
|
hi
my problem is OLE structure storage API parameters ,, functions like OpenStgStorage()
i want to learn who can i proramming it
i there any sites.......... books.......
THANx
Amani
|
|
|
|
|
Try this[^] article as a starting place.
|
|
|
|
|
Awful subject - thats why you got voted down (not by me I add).
PInvoke.net[^] is what you're looking for in regard to API programming.
I think the method you're after is actually StgOpenStorage[^]
|
|
|
|
|
I suspect she got voted down because she's asked the same question so many times over the last umpteen months. She doesn't seem to have moved on any.
|
|
|
|
|
That I've noticed, hence ignore the posts
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Hi All
I have a light/siren device that is plugged into my computer.
I also have a program running on my machine.
If there is any problem or error on the program, this light/siren device should be automatically set on, the light comes on and the siren makes the siren noise, this is done to alert the administrator of a problem.
So I don't know if there is anyone here who has done something like that.
I just need pointers to the right direction on how set this light/siren on programatically in C#.
Your assistance will be greatly appreciated.
Thank You
MP
|
|
|
|
|
I assume there is some form of SDK with this device. If so, you'll need to use that.
|
|
|
|
|
First of all,
You said: I have a light/siren device that is plugged into my computer.
How is it connected to the computer? Is it RS-232, Parallel Port, USB etc...
You should know the interface between your equipment and the PC.
- If it is RS-232, probably there are serial commands which makes the the light ON/OFF. .NET framework includes serial port libraries so you can easily send and receive commands.
- If it is parallel port, you should set/reset necessary bits to make light ON/OFF. There is a popular, free library for parallel port : inpout32.dll
- If it is something else, you should be given some library to control the light. You should just call it from your application.
Good luck
zafer
|
|
|
|
|
khuzwayom wrote: If there is any problem or error on the program, this light/siren device should be automatically set on, the light comes on and the siren makes the siren noise, this is done to alert the administrator of a problem.
This can only end badly, seeing as you are a computer programmer dealing with visual studio
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Expect everything to be hard and then enjoy the things that come easy. (code-frog)
|
|
|
|
|
and I thought I was having a bad day. I needed a good chuckle this morning.
I can just see it, somewhere in the depths of a South African metropolis there is a guy sitting on a high stool in a server room, wrapped in a fake fur coat peering out at a sea of red lights just waiting for something to happen.
And in a alternative universe
A room with 100 code monkeys all hammering away, suddenly a red light flashes - oh no a typo
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I think this is called X10, Google for some info. IIRC MS had a start kit for something like this.
|
|
|
|
|
Hi All.
I just want to say thank you to everyone who has contributed in helping me try to find the solution so far.
I greatly appreciate your assistance.
Thank You
MP
|
|
|
|
|
Dear experts,
I have the following question:
Is there any piece of code available which displays an xml-file as a treeview.
I feel it should easily possible with all the mechanisms as data-binding, serialization ,...
Kind regards
|
|
|
|
|
|
Hi All,
I am using Crystal report in my project.i used the formula field to calculate the Total Value and Grand total Now i want to use that Grand Total Value in my another formula fields in same report.But i am unable if any ideas please help me.
My Problem
Group 1
SN ITEM QTY PRICE TOTAL
1 COOK 10 10 100 (This Total Value is From Formula field)
2 FANTA 10 20 200
TOTAL OF GROUP 1 300(This Total Value is From Running Total)
Now I want to use that Running total value in another formula which used in same report.This is my real problem.
Thanks
Pawan
|
|
|
|
|
Since when is Crystal Reports C#? Try another forum.
|
|
|
|
|
I am using StopWatch to measure response times. I am starting the StopWatch send a tcp request waiting for the response and stop the StopWatch. This works. When I am during running measurement f.i. minimize or maximize another window then the measured time is about 100ms bigger. How could I improve accuracy? (StopWatch's measured time is calculated from ticks/ frequency)
thanks,
Jens
|
|
|
|
|
You mean you want to measure 1/2 CPU clocks? You need a quantum computer for that. See you in about 50 years.
|
|
|
|
|
My StopWatch.Frequency is 3579545 ticks per second. It should be enough for a time resolution of better 1 us.
I think the problem is windows, because other tasks could interrupt my time measurement.
Best regards,
Jens
|
|
|
|
|
Yes, and that gives you the accuracy, not how fast it can be called. What is your problem exactly? Are you confusing realtime with CPU/system time?
|
|
|
|