|
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.
|
|
|
|
|
I am creating a dataset like this
.....
MyDataTable.Rows.Add(1, "AS","test1");
MyDataTable.Rows.Add(2, "BD","test2");
....
Here I am adding all three colums in a row by this method.
Suppose I need to add only 3rd colum in second row. How is the method?
Thanks
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'.
|
|
|
|
|
A data table does not have different schemas for each row; it has *one* schema for all the rows. So you create all the columns you need and add them to DataTable.Columns, letting some columns be null for some rows.
I don't know Microsoft Report Viewer, but whatever UI you use to present the data is where you'll grapple with layout - not in the data structure itself.
|
|
|
|
|
Thank you, Got the concept.
Actually I have a table with 3 colums and 72 rows. Formatting is my issue. I want to split this into 4 groups of 18 rows each and show side by side.
So that is to be done in lay-outing, not by changing dataset structure.
How to do it in Visual studio report viewer?
Thanks
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'.
|
|
|
|
|
Hi all,
I have created a two projects that calls a web service. The one project is a library and the other one is a console application (console application is for testing purposes). When I call the web service from the console application everything works like it should, but as soon as I make use of the library (from a different console application that calls the library) I receive the following error message:
Could not find default endpoint element that references contract 'ServiceReference.IMobileService' in the ServiceModel client configuration section.
This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.
I have tried placing the .config file every where, but I keep receive the error. Can anyone please assist me in this matter?
Many thanks in advance.
Kind regards,
The only programmers that are better C# programmers, are those who look like this -> |
Programm3r
My Blog: ^_^
|
|
|
|
|
Solotion:
A library cannot consume it's own cnfig file when called by another application, it must make use of the host / calling applications config file, thus place any config information into the .exe.config file in order for it to work.
Kind regards,
The only programmers that are better C# programmers, are those who look like this -> |
Programm3r
My Blog: ^_^
|
|
|
|
|
Indeed, but why are MS so lazy that they can't be bothered to report different error messages for rather different cases!? It's pretty obvious that the code that generated that error knows bloody well whether the problem is that the file was not found, or no endpoint definition was found in the file. But to save five minutes they used one message for both conditions, leaving tens of thousands of developers to waste their time because they don't know if it's the location of the file or the contents of it that is the problem!
By the way, this is something most of us can be a lot better at: Whenever we write code we should try to keep in mind what users of the code (including ourselves - we won't remember all the implementation details well for long) might do and report errors as clearly and specifically as possible. Lakmus test: If your code doesn't have a lot more throw statements than catch blocks, it's almost certainly not very good!
|
|
|
|
|
You need to learn more on how .NET configuration system works. It will never report a missing configuration file since there is always a master config file with default settings (machine.config). What you put in your application's config file just overrides (or adds to) those values.
Configuration files are typically attached to processes. Since a .NET library is not loaded into its own process but loaded into the calling process, it uses the calling process's config file. It is a mistake that every newbie makes.
|
|
|
|
|
Well why should the message then read
This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.
I do know about the cascading of config files - a great feature btw - but I do not know every detail about what can be configured in machine.config versus web.config/app.config, nor do I remember exactly how web services and WCF services are configured.
In general however I have to say .NET usually does a fairly good job with error messages, compared to anything else I've used. That doesn't mean it's the right tradeoff tho! For every small improvement in the error reporting of any library used by many people, a lot of people can end up saving some time, and in aggregate quite a lot of time. That's the point I want to get across.
|
|
|
|
|
Hi,
I have an excel add-in which is developed using .Net framework 3.5.
When I have excel.exe.config file with supported version 3.5, excel crashes.
When I delete this configuration file, add-in works fine.
Any idea why this behavior?
|
|
|
|
|
Since we don't know what the add-in is it's a bit hard to say much useful to this.
However, I'll speculate that Excel runs the add-in in-process, and there is probably a bug in the add-in that causes it to crash either whenever there is a configuration file or perhaps more likely when that configuration file contains some particular thing (or is invalid in some way). Any unhandled exception in the plug-in would take down the process it's running in.
The fact that the file is called Excel.exe.config is a hint that the plug-in runs in-process, since by default the configuration system will look for a file named the same as the process + ".config".
|
|
|
|