|
thank u very much.let me check
|
|
|
|
|
Dear Abhijit,
Which MDI's event i will use?I use KeyDown event and i wrote:
if(e.KeyCode==Keys.F1)
{
frmAllCheckInformation objfrmAllCheckInformation=new frmAllCheckInformation();
objfrmAllCheckInformation.ShowDialog();
}
Form is opened only one time.When i close and again press F1 the form is not coming.
would u help me...
|
|
|
|
|
You need to use ProcessKeyMessage
Check It[^]
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
|
Sorry i think i am a rubbish programmer.
i cant implement.would u tell me how i start
|
|
|
|
|
thanks abhijit i soled the problem.just done below:
//KeyPreview property should be true
if(e.KeyCode==Keys.F1)
{
frmAllCheckInformation objfrmAllCheckInformation=new frmAllCheckInformation();
objfrmAllCheckInformation.ShowDialog();
}
Shafik
|
|
|
|
|
That's Great !
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Why?
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Nagy Vilmos wrote: Why?
I didn't get you.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
The example is right, but the concept being encouraged is not.
There should be commands that launch the forms in this case, and how it is called shouldn't be hard coded beyond the minimum. The command class allows for a short cut key to be associated and that should provide the nescessary access. Overriding the keybouard handler is really too low level for what is already provided by the framework.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
That's true. Thanks !
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
In the MDI form, create a menu item for each child form and assign keyboard shortcuts to the items.
|
|
|
|
|
thanks.but i want to use Function keys
|
|
|
|
|
Hey,
This has gone on long enough. What people are trying to tell you is to just assign a function key as a short cut key. These assignments are usually done through the designer but example code is
this.MyMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F1; .
Alan.
|
|
|
|
|
Please try out something on your own before posting so many questions. You can assign function keys as shortcut keys for menu items in the form designer. Select the menu item in the designer and look for the Shortcut property in the Property Explorer window.
|
|
|
|
|
can u help me with the codes for augmented reality using c#...
|
|
|
|
|
Go directly to Birmingham, do not pass out, do not collect call.
Panic, Chaos, Destruction.
My work here is done.
modified on Monday, November 23, 2009 4:26 AM
|
|
|
|
|
I preferred the unmodified version.
|
|
|
|
|
Hello,
i want to develop speech recognition application, i don't know how to develop it. I want whatever i speak it should be listen. But i begin from list of predefined words say "run notepad", "open start menu", "up", "down", etc.
How could i do this?
I need to implement in vs2008 in xp and vista both.
Is this possible that my application works on both xp and vista without making any changes?
Help me.
Thank you in advance.
|
|
|
|
|
MS provides Speech SDK. This should let you do all this. Here[^] is an article that you can refer.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
I'm sure if you Google this a bit, you'll find alot of starting points. Like this [^] one for instance.
Kind regards,
The only programmers that are better C# programmers, are those who look like this -> |
Programm3r
My Blog: ^_^
|
|
|
|
|
Same as what I have posted.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
Thank you for your reply
I go through it but when i run my application it starts vista speech recognition engine.So whatever i speak related to my own grammar it does not respond me.
I have use another example but it gives me error on LoadGrammer() say "the language for the grammar does not match the language of the speech recognizer."
here is my code:
SpeechRecognitionEngine rec = new SpeechRecognitionEngine();
rec.SetInputToDefaultAudioDevice();
Grammar gram = CreateCustomGrammar();
rec.UnloadAllGrammars();
rec.LoadGrammar(gram);
rec.SpeechRecognized += new EventHandler<SpeechRecognizedEventArgs>(rec_SpeechRecognized);
void rec_SpeechRecognized(object sender, SpeechRecognizedEventArgs e)
{
MessageBox.Show(e.Result.Text);
}
Tell me where i am getting wrong.
Thank you.
|
|
|
|
|
Hai,
I need to generate a simple report.
No data base or nothing, just a text file read from a USB device.(Only 72 records.)
When I click a button the text file should be read and values shown in a tabular form of my choice. Some calculation also involved.
I am planning to use Microsoft report viewer. It needs a dataset or a class at least.(I am new to databases! please forgive if my terminology is wrong!.)
Since I have no data elements that needs to be updated ,I think I don't need a live database type connectivity. Just populate and wait until close or next load.(Print may be needed).
Please suggest a suitable method with possible details.
Thanks for the time.
With Regards
Roy Thomas
"..this file is known as source file probably because it is a source of frustration and anxiety!" - Chuck Sphar - In book 'C# 2005 for Dummies'.
|
|
|
|
|
Use StreamReader() or similar functions to read your textfile and break it down to its constituent parts. These items can then be used to poulate a DataSet which you can pass to report viewer.
|
|
|
|