|
1 - please use meaningful titles
2 - what is VBSkinner ?
If it's a VB.NET dll, you can just import and use it. If it's VB6, you can't use it unless it exposes itself via COM.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
HI ALL
PROBLEM DESCRIPTION:
I AM OPEN WINDOW (DIALOGE BOX) USING JAVASCRIPT, PROMPT TO USER TO ANSWER QUESTION THEN ACCORDING TO ANSWERS I WANT CALL C# FUNCTION FROM CLIEN-SIDE.
HOW CAN I DO THAT PLEASE.
ALA QUNAIBI
ALA QUNAIBI
|
|
|
|
|
Please don't write in all capitals. On the web that is considered the equivalent of screaming.
What you are asking for is not possible. You can not call a server method from client code.
What you can do is to send a request to the server, and make the server code that handles the request call the C# method you want to call.
You can use AJAX to do the request to the server without having to reload the current web page.
---
Year happy = new Year(2007);
|
|
|
|
|
hi all,
why i can't find workflow project in C# menu. i'm using visual studio 2005
|
|
|
|
|
Do have VS2005 extensions for Windows WF installed?
|
|
|
|
|
i don't know. but i don't think that i installed it.
is it add-in or a separate componant
|
|
|
|
|
|
hi dear, i tried to install it but it refused to complete the setup
it give a log file i captured this form it
[6:54:45 PM Info] Detecting platform component: Windows XP Service Pack 2
[6:54:45 PM Info] The minimum required version is: 5.1.2600.2180
[6:54:45 PM Info] The currently installed version is: 5.1.2600.2180
[6:54:45 PM Info] Component already installed.
[6:54:45 PM Info] Detecting platform component: Microsoft .Net Framework 2.0
[6:54:45 PM Info] The minimum required version is: 2.0.00000.0
[6:54:45 PM Info] The currently installed version is: 2.0.50727
[6:54:45 PM Info] Component already installed.
[6:54:45 PM Info] Detecting platform component: Windows Workflow Foundation version 3.0.4203.2
[6:54:45 PM Info] Component is not installed.
[6:54:45 PM Info] No updates were found on the SUS server to download. === Logging stopped: 6:55:05 PM Sunday, January 14, 2007 ===
|
|
|
|
|
You need to install .Net 3.0 first
|
|
|
|
|
i am using vista ultimate+vstudio 2005 team+installed wf - but i cant find WF on visual studio. where hiding WF?
thx for help
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Athlon 64 3500+, Gigabyte GA-K8NXP-9, 2x512 DDR400 Kingston, Inno3d 6200 PCIe, SS2 B2C2 v2.6, HDD := 450gb, Genius 56k int, NEC DVD-RW и мать его Суньмастер 550.
|
|
|
|
|
Hi all ... I have different images which i would like to use as buttons. Is there any possible way that the png shape would map exactly on the button like for a circular image the button would also become circular not a rectangle..
Is there a possible solution to the problem or should i stick to use pictureboxes and assign events.
Thx
Bye
|
|
|
|
|
There's no way to make a button an irregular shape without also writing code to deal with this eventuality. A button will always be square, no matter what you draw on it. Writing your own control is definately the way to go here (picturebox isn't a great way to do it )
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
try to use bitmap regions. try this article
" Creating Bitmap Regions for Forms and Buttons "
- The Code Project - C# Programming
|
|
|
|
|
Here is how Gary Perkin made circular buttons.
|
|
|
|
|
How to calculate CRC of the forllowing message
Byte|Word|Word|Byte|CRC|CRC
SAS
|
|
|
|
|
What kind of CRC? See [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
I want to calculate CRC for modbus bytes
|
|
|
|
|
See the article (and post specific to modbus) here[^]
|
|
|
|
|
|
Hello,
Is it really not possible anyway to KILL a running background worker Instantly ? I know it is may be possible by using Thread object but now my application is completely developed using background worker and an user really cant stop a running worker thread as he/she has to depend on race condition and Cancellation Pending property.
Thanks again
Emran
|
|
|
|
|
Hi,
you should not kill/abort threads that may hold resources, open files, whatever. (as
almost all useful threads do).
It is much preferred to use one or more flags that get tested regularly by your thread's code.
Luc Pattyn
|
|
|
|
|
Hi Luc Pattyn,
Thanks a lot for your valuable reply.
Actually I thought there must be a way to abort a background worker safely. Because, when I want to stop a Music which is being played by a player, as a user I should not care how the resources are being used, I know by all means that I want to stop the music playing right a way. My application has some similar situation, but my user is forced to wait for the background worker\s dumb loop where the cancellation flag is checked. And if some reason the background process is stucked and never coming back to check the flag, the user can’t ever stop the process.
As you said I should use Flags. Yes, background worker object provides a flag named "cancellation pending" and I am already using that to check if it should be aborted. But is not there any better solution to stop like a Music player?
Regards
Emran
|
|
|
|
|
This is how I would construct a music player:
have one thread that manages all the music-related resources
have a second thread that does actual sound generation; it gets created when necessary, and
may get killed at all (or some) times, by the manager thread, provided the manager thread is
able to clean up everything. SO in more detail: the user tells the program to stop, the
UI thread tells the manager thread, which in turn, when it feels able to clean up, kills
the sound thread and then cleans up after it.
So in this scheme, two threads cooperate, only one gets killed, being the one NOT responsible
for the resources involved. Now you still must be carefull about synchronizing those threads,
one thing you can not use is locks, since the killable thread is not allowed to hold a lock
that would prevent the manager thread to ever become active again !
Hope this helps.
Luc Pattyn
|
|
|
|
|
Thanks Luc Pattyn,
I understood about killing for Thread opbjects. But there is no method available similar to Abort() or Kill() for BackgroundWorker Objects. I have developed my application using Background worker now I am looking for a way to Stop it instantly.
Is there any way to do that ?
Thanks
Emran
|
|
|
|
|
I havent used BackgroundWorker yet; I have been using some Threadpool threads, but most
often I create my own threads, so I have full control over them, can change their
priorities, and can carefully kill them !
It seems like BackgroundWorker does not provide an immediate kill; you could make one
by getting the working code start with a Thread.GetCurrentThread() but I dont like
that idea very much. For one you are not supposed to kill a Threadpool thread (it isnt yours to
begin with), and I expect the same applies to the BackgroundWorker stuff.
Luc Pattyn
|
|
|
|