|
Keith Barrow wrote: I'm not sure if you down-voted Blue_Boy
No really I didn't down-voted, maybe poster of question did it!
I Love T-SQL
"VB.NET is developed with C#.NET"
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
The most likely culprit, but didn't want to offend you as you actually tried to help.
|
|
|
|
|
When you posted your question, above and to the right of the red "Post Message" button is a "Posting Guidelines" link. Here is what is said if you open it:
"Please remember to search our articles, the forums, MSDN and Google before posting your question."
From your question I can only imply that you haven't tried this. You haven't described what you have done nor which part of the process you are having difficulty with. Occasionally forming a search term that returns helpful results is hard. Googling "Speech Recognition Engine using c#" gives more than quarter of a million results, the second of which returns a basic tutorial that needs very minor modification to do what you want.
modified 26-Jul-13 5:42am.
|
|
|
|
|
Above links which preferd was good but in Persian or Arabic language is different and harder, if you need in this languages i prefer you searching in sourcenevis.ir.
-Amir Mohammad Nasrollahi
/* LIFE RUNS ON CODE */
|
|
|
|
|
i have developed inventory system software using C# with sqlserver 2008 database on Visual Studio 2008..
i want to use this application over the internet(ONLINE)
|
|
|
|
|
|
Member 9966941 wrote: over the internet
Then I hope you have built in a web service to sit between your database and your client!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
When a custom control (DeviceMonitor) was generated along with the property as follow:
public bool isConnected {get; set;}
then in the main form to add the control to the form...
DeviceMonitor devMon = new DeviceMonitor();
Control deviceControl= devMon;
this.Controls.Add(deviceControl);
Somewhere in the code, I would need to acquire the "isConnected". I tried
if (deviceControl.IsConnected)
{
...
}
but the .net doesn't see the property value of "isConnected".
How do I get this property value this way? Should I use this instead in the main form:
DeviceMonitor devMon = new DeviceMonitor();
this.Controls.Add(devMon);
This way, I can get it as:
if (devMon.IsConnected)
{
...
}
Any response?
|
|
|
|
|
I'm just starting to learn this stuff, I'm about halfway through this e-book course…
It's just now starting to cover "properties"…
Maybe there is something new in the .Net that allows properties on a Boolean?
As far as I know, Boolean is only true or false.
I forgot what the default value is a Boolean…
I'm more guessing than giving you an answer because I'm still learning C# myself.
Get rid of the: get; set
And replace that with: true
Then you can make a call to your Boolean "isConnected"…
Hopefully someone will correct me if I'm wrong.
Good luck
|
|
|
|
|
WidmarkRob wrote: I'm more guessing than giving you an answer because I'm still learning C# myself. True.
WidmarkRob wrote: Get rid of the: get; set
And replace that with: true Completely wrong, I'm afraid. OP has coded the property correctly, but has not instantiated the object properly.
Use the best guess
|
|
|
|
|
uhh that's not it. Keep on learning! There's so much to learn!
|
|
|
|
|
C# is case sensitive.
So isConnected != IsConnected
brisingr_aerowing@Gryphon-PC $ rake in_the_dough
Raking in the dough
brisingr_aerowing@Gryphon-PC $ make lots_of_money
Making lots_of_money
|
|
|
|
|
I don't understand your question
modified 26-Jul-13 10:34am.
|
|
|
|
|
You defined deviceControl as Control , which, if oyu look at the documentation for Control , doesn't have a IsConnected property.
You have to use the code you listed second, under "should I use this instead".
I suggest picking up a beginners book on C# and working through it. This is a very basic concept you're going to have to learn completely before building on it.
|
|
|
|
|
So, where does my answer fit in?
I'm halfway through a book I picked up at 'brainmeasures dot com'...
|
|
|
|
|
Truthfully? Not even close. Sorry, but you've got some more work to do.
|
|
|
|
|
Like I said, I'm only about halfway through my book…
I went back over the book, I didn't find anything in there talking about using properties on different data types…
There were a few examples, only on string and int…
Maybe, just maybe… It talks about using properties on different data types further in the book.
Also, I just got done scouring MSDN and couldn't find anything that talks about using properties on different data types…
I also click through the related topics and subjects, still couldn't find anything…
Could you point me to a place online or if you have time… Explain it to me here.
It would definitely be appreciated for your help.
I would like to learn C sharp the right way, I want to be able to write the code myself… I don't want to be a script kiddie!
|
|
|
|
|
Properties are just little bits of code that gets/sets a value or reference. You access them the exact same way no matter what the class exposing them is. Why use properties at all?? Property "setters" can be written to validate the value being passed in before it's used by the object. They can also be used to kick off other pieces of code, usually depending on the value being passed in.
Every class exposes it's own set of properties and methods. What each one does is explained in the documentation for that class.
For example, the String class, docs are here[^], only exposes two properties itself, Chars and Length.
I don't really know what your having a problem with.
|
|
|
|
|
I get all of that, "Black Box" type of writing code… Hiding implementation.
The only examples I've ever seen or talked about were on strings and ints… It never mentions other types like byte, long, boolean etc. etc.
My question is I guess:
can you use properties on all of those types?
|
|
|
|
|
Can you use the properties exposed by those types (don't use "on"), yes of course!
Using a property exposed by any type at all is exactly the same no matter what type it is.
|
|
|
|
|
I have been programming in C# for a long time. My engineer has programmed this way on the 1st option. I'm trying to figure out and need to revise the code to work with USB device. I've came up with the solution with loss/recovery of the USB device with WndProc process.
|
|
|
|
|
I have been programming in C# for a long time.
Then why did you ask this question? If what you said is true, this should have been obvious to you.
|
|
|
|
|
I would have to agree with the 2nd option.
|
|
|
|
|
|
Tried to cast the control. Still nothing.
|
|
|
|