|
hello People,
Need your help in understanding .NET better. I know some basic stuff. problem is whenever I learn something new I dont remember it after few days. how can I implement these concepts so that I can memorize them better.
TIA
|
|
|
|
|
Practice, practice, practice. It's the only way.
|
|
|
|
|
Google is your friend. Reviewing old code for a technique or snippet is valuable. I stopped trying to memorize this crap years ago.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
Get a book, and go through it cover to cover, doing all the exercises.
Then do them again.
After that, it's practice: there is no short cut - you remember best what you use, so if you don't use it you will lose it!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
OriginalGriff wrote: so if you don't use it you will lose it
so true, especially as you get older. Knowing that you have done a thing before and forgetting where you used it is endlessly frustrating.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
my problem is different of style using css
|
|
|
|
|
Then practice them over and over until you fully understand them. I find that attempting to explain things to others highlights the things I don't know as well as I thought I did.
This space for rent
|
|
|
|
|
While the suggestions of practice are an important part, I think it's also important to understand foundations. If you know what a technique or pattern is meant to achieve, it will be a lot easier to hook it in memory.
By and large, various code languages really are just syntax for the same things. Yes, capabilities are different, but from where you're at it's much more important to understand the underlying principles. It's hard to learn the "how" when you don't understand the "why".
The most important thing I ever read for learning software engineering was Code: The Hidden Language of Computer Hardware and Software[^] by Charles Petzold. It's a great resource for getting those foundations.
It will help, I promise.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
Thank you people. your inputs mean alot to me. I guess now I know how to make programming interesting.
Thank you all for your help
|
|
|
|
|
Dear friends,
I've developed an application which can convert text to speech.Now I want to control the speed of text spoken by computer i.e. customizing the speed of text. Please help how can I do this.
|
|
|
|
|
Member 12297353 wrote: Please help how can I do this. Well, you could start off by telling us what you have used for your TTS solution. There are many different libraries that offer this and we would just be guessing what you have used.
This space for rent
|
|
|
|
|
Dear Pete O'Hanlon,
I have used system.speech.synthesis library for my TTS application and now I want to change the duration of my speech,slow or fast as per our requirement.
For example,there will be a word "breath". I want my application to speak this word in 5 seconds and in 20 seconds too.
Please Help.
|
|
|
|
|
This library has a Rate property - you'll have to adjust that. I will say that you aren't going to be able to get it to go to 20 seconds with a single short word.
This space for rent
|
|
|
|
|
That all depends on what library you're using for the text-to-speech functionality. You may not have that ability at all.
But, since we have no idea what you used and what your code looks like, it's impossible for anyone to tell you.
|
|
|
|
|
I want to convert the code List<TestGridImage> list = new List<TestGridImage>() below from Net4.0 to .Net 2.0. Can you help me ?
namespace ExampleConvertList
{
public partial class Form1 : Form
{
private List<TestGridImage> list;
public Form1()
{
InitializeComponent();
list = new List<TestGridImage>()
{
new TestGridImage() { KeyIndex = 0, KeyIndexAlt = 2 },
new TestGridImage() { KeyIndex = 1, KeyIndexAlt = 0 },
new TestGridImage() { KeyIndex = 2, KeyIndexAlt = 1 }
};
this.gridControl1.DataSource = list;
}
}
public class TestGridImage
{
private int keyIndex;
private int keyIndexAlt;
public int KeyIndex
{
get { return keyIndex; }
set { keyIndex = value; }
}
public int KeyIndexAlt
{
get { return keyIndexAlt; }
set { keyIndexAlt = value; }
}
}
}
modified 29-Sep-16 3:06am.
|
|
|
|
|
Something like this should do the trick
public Form1()
{
InitializeComponent();
list = new List<TestGridImage>();
AddToGrid(0, 2);
AddToGrid(1, 0);
AddToGrid(2, 1);
}
private void AddToGrid(int index, in alt)
{
TestGridImage image = new TestGridImage();
image.KeyIndex = index;
image.KeyIndexAlt = alt;
list.Add(image);
}
This space for rent
|
|
|
|
|
.NET 2 didn't understand that syntax for new object creation: you either need to use a constructor (if one exists) or set the property after it is created:
list = new List<TestGridImage>();
TestGridImage t;
t = new TestGridImage();
t.KeyIndex = 0;
t.KeyIndexAlt = 2;
list.Add(t);
t = new TestGridImage();
t.KeyIndex = 1;
t.KeyIndexAlt = 0;
list.Add(t);
t = new TestGridImage();
t.KeyIndex = 2;
t.KeyIndexAlt = 1;
list.Add(t);
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
The firstly thank you for just help me, I also encountered one more issue, which is the order of List<...> column. when I assign this.gridControl1.DataSource = list; list column order does not appear like that, I want to change the order of the column list what I have to edit ?
|
|
|
|
|
I have built a class library using VS 2013 C#. It includes an interface to expose all the functions and public properties. It compiles and registers for use as COM visible. I can readily access the functions in the library from VBA. But there seems to be no way to access public properties in the class library with VBA. All the information I find on the web is for simple applications where there are no public properties, only functions. My efforts suggest that accessing public properties in the library is not doable. Is my conclusion correct? If there is a way to achieve it, maybe someone can point me to a resource.
|
|
|
|
|
Might not be quite what you're after, but couldn't you expose the properties by means of (explicit) getter and setter functions?
Cheers,
Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Thanks, Peter. I was hoping to avoid having to add/modify the classes that are built for .Net use with methods and properties. But I have not found any other way to approach it other than the one you suggested. On another tack, is there any software to generate an interface from the methods and properties in a class? I use copy/paste/edit which is time consuming. But I do have lots of time. Microsoft has made it difficult to use .Net with VBA, going in either direction. And it's maddening to try to hook to an open Excel workbook from a .Net application. So I gave this up.
|
|
|
|
|
With regard to "another tack", I don't know of anything, but then I am merely a tourist in the .NET and C# district. Maybe some of the friendly locals might know.
Cheers,
Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
I found that Visual Studio has a tool accessible from the context menu to generate the interface. I run into obstacles often when I build a C# library for COM and try to use it in Excel. I have two such libraries with interfaces that appear to be identical in format. One works with Excel, the other does not. However, the one that doesn't work using an interface works OK when I remove the interface. But then nothing is available for VBA intellisense. And the functions don't show in the object explorer with either version. Is there a good book or reference that carefully and fully explains building C# libraries for use with Excel VBA?
|
|
|
|
|
Anyone has an AI in c# app
Felix Fernandez
|
|
|
|
|
Did you want to ask a question or just beg for someone else to give you their hard work?
|
|
|
|