|
I'm not really sure how I can make it clearer without doing it for you. Do you know anythign about C# ? Have you considered buying a book and working through it ?
An event is fired when a key is pressed. You can subscribe to this event. You can then check what keys were pressed, and respond accordingly. If you know what cell you are in, you can check other cells and move the focus to whatever cell you like.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi all,
I have two C# project. One is a C# .Net service and the other one is a Dialog based C# project. From the dialog based project, using a button click I want start the service and do all required processing. Its simple, I used a serviceController component and do it.
Now I want to make a slight change. On the button click event I want to send some parameters to the service and use it in the service. How can I do that.
In simple work how can I access from one project to the other
Thanks.
I appreciate your help all the time...
Eranga
|
|
|
|
|
You need to change the service code, then update your reference to it, then your method will have those parameters.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Christian Graus wrote: You need to change the service code
What you mean change the service code, mean that change the code according to required process, its ok to me.
Christian Graus wrote: update your reference to it
That's where I'm really stuck. Can you explain little more.
I appreciate your help all the time...
Eranga
|
|
|
|
|
The dialog app must have a reference to the web service, to be able to call it. Right click on it and choose 'update' once you've updated the live service. Or just delete the reference and create a new one
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Yes I add a reference to the dialog based project.
System.web.service
But I can't call any function from the other project(.Net service)?
I appreciate your help all the time...
Eranga
|
|
|
|
|
.NET Service or WebService?
only two letters away from being an asset
|
|
|
|
|
No it's .Net service, a Windows Service. I work on Visual Studio .Net 2003
I appreciate your help all the time...
Eranga
|
|
|
|
|
Oh - a Windows service.
I don't see how that makes any difference. To call one project from another, you need a reference and if you change the project you're calling, if you update your reference to it, you'll see the new methods.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Christian Graus wrote: you need a reference and if you change the project you're calling
I think I'm mess with this. Make reference between two projects. Is that correct I have done as including,
System.web.service
as the reference to the dialog based project.
I appreciate your help all the time...
Eranga
|
|
|
|
|
CodingLover wrote: stem.web.service
How, just by including the generic service class, does your dialog project know how to call your windows service now ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Actually what I have done is add a new reference to the dialog based project(Windows Application) as I mentioned above.
To call the service(simply start, stop the service) I used a serviceController component in dialog form. So I can used
serviceController.start();
serviceController.Stop();
etc....
What I want to do is, send few parameter to the service either on Start() or anywhere else.
I appreciate your help all the time...
Eranga
|
|
|
|
|
Oh... you're not adding a method, you want to specify parameters.
http://msdn2.microsoft.com/en-us/library/9c38b683.aspx[^]
When you open the brackets on your start call, intellisense will show you that there are two possible methods to call. One of them takes a string array, of arguments to pass to the service.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
There are plenty of results here[^]
Cheers,
Vikram.
If the radiance of a thousand suns
Were to burst at once into the sky
That would be like the splendor of the Mighty one—
I am become Death,
The shatterer of Worlds.
|
|
|
|
|
Thanks pal,
Actually I'm stuck with passing parameters in two projects. Not in a same project(between classes.)
I appreciate your help all the time...
Eranga
|
|
|
|
|
while dubugging C# windows application i want to view the list of threads that are running. How can i view it in the output window
|
|
|
|
|
That's what the Threads window is for. Ctrl + Alt + H.
Cheers,
Vikram.
If the radiance of a thousand suns
Were to burst at once into the sky
That would be like the splendor of the Mighty one—
I am become Death,
The shatterer of Worlds.
|
|
|
|
|
wow..thanks for that. i've been looking for this window, too.
btw: i still cannot find in in the menu bar
|
|
|
|
|
I thank Ennis Ray Lynch, Jr for his reply to my previous post but even in the declaration for "aspectRatio" it still says that the keyword aspectRatio "does not exist in the current context"
modified on Wednesday, February 27, 2008 11:22 PM
|
|
|
|
|
I have had the same problem with many of the tutorials. It seems most of the authors take pride in concealing where they hide their declarations. Look and you should find it buried in a single-line declaration on some unrelated tutorial most likely.
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
|
|
|
|
|
Hello,
I am not sure how to tackel this, what I have is a data grid view with two columns 1. an unbound check box column and 2. a bound data column. What I want to do is for each check box that is check i want to get the value of the bound column in that same row. what i was thinking is some thing like this:
foreach (DataGridViewRow row in datagridview)
{
if(datagridview.Columns[0] (here is where i am not sure how to see if the check box is checked)
{
}
}
any help would be great...
Thanks, J
|
|
|
|
|
Value
something like
if (dataGridView1[0, 0].Value = 0)
{
}
1 for true, 0 for false
hope this will help
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
|
glad to know
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Hi!
Does anyone knows how can I show a messagebox, after a user tries to change a radiobutton, and cancel that action if needed? I already tried to do it inside several events, but without success.
I would like to do something like this:
<br />
private void radioButton_TMP_Validating(object sender, CancelEventArgs e)<br />
{<br />
if (MessageBox.Show("Are you sure?", "Attention", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)<br />
{<br />
e.Cancel;<br />
}<br />
}<br />
I appreciate if someone could help me with this. I didn't find any solution when "gOOgling"
Thanks!!!
|
|
|
|