|
SelectedIndexChanged is an event, not a field. So if you're trying to get info about it using reflection, use GetEvents -method (or if you already know the event, GetEvent)instead of GetFields .
The need to optimize rises from a bad design.
My articles[ ^]
|
|
|
|
|
I'm new to C#, and I'm making a Dictionary that is supposed to be able to pronounce coptic language, I have done most of the work, but when I started making it pronounce coptic I found it really difficult. My idea was to take the coptic text and convert it into something like IPA then pass it to speak() method.
It doesn't work.
Would anybody tell me where to start?
|
|
|
|
|
|
User loves to post same question in multiple forums.
Blog link to be reinstated at a later date.
|
|
|
|
|
Give me a break...grow up
|
|
|
|
|
Fine, we will just mark your messages as abuse and you will get no help.
Blog link to be reinstated at a later date.
|
|
|
|
|
pzn3xq wrote: Give me a break...
Well, follow the forum guidelines if you do not want to be flamed for cross posting
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Yea and you never made a mistake before...honestly, you have nothing better to do than take your frustrations/anger out on someone seeking help.
Try communicating things a little differently. Hope this experience made your day.
|
|
|
|
|
pzn3xq wrote: nothing better to do than take your frustrations/anger out on someone seeking help
It's not a question of taking out anger or frustration. It is just being nice and pointing out you should not cross post. There was not anything wrong with your asking for help, more like clarification about the Response.Redirect method, but the approach by posting in multiple forums wasn't the way to go.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Please don't cross post - it's not good form, and before you have a go at me about pulling you up about this, you might want to know that I wrote the forum guidelines so I do know a thing or two about the etiquette here. Pick the appropriate forum for a question, and stick with it - don't scatter bomb forums.
|
|
|
|
|
Geez pete...don't beat a dead horse. Points been made buddy.
|
|
|
|
|
The point was made, but was it taken to heart? If so, then job done and we can all put this behind us.
|
|
|
|
|
I am so enjoying reporting each of your messages as abuse...
Blog link to be reinstated at a later date.
|
|
|
|
|
After a user successfully inserts a new record in the "DetailView" control, I want to redirect them to a new page. Is the best method of doing this as follows:
protected void DetailsView1_ItemInserted(object sender, DetailsViewInsertedEventArgs e)
{
Response.Redirect("Part2.aspx");
}
|
|
|
|
|
|
This is in two forums; question above is in three.
Blog link to be reinstated at a later date.
|
|
|
|
|
Hey everyone,
I'm trying to use an enum. But I don't use this a lot and I'm now at a point where I don't understand it anymore.
I have this code:
enum frequency
{
Second,
Minute,
Hour,
Day,
Month,
Year
}
public constructor()
{
comBoxFrequency.Items.Add(frequency.Second);
comBoxFrequency.Items.Add(frequency.Minute);
comBoxFrequency.Items.Add(frequency.Hour);
comBoxFrequency.Items.Add(frequency.Day);
comBoxFrequency.Items.Add(frequency.Month);
comBoxFrequency.Items.Add(frequency.Year);
}
public void buttonClick()
{
switch (comBoxFrequency.SelectedText)
{
case frequency.Second:
break;
case frequency.Minute.ToString():
break;
case frequency.Hour:
break;
case frequency.Day:
break;
case frequency.Month:
break;
case frequency.Year:
break;
}
}
As you see I get two errors: Cannot implicitly convert type '___.frequency' to 'string'
And if I make a string of this: A constant value is expected
Does anyone know how to work around this problem (or what I do wrong)?
|
|
|
|
|
Deresen wrote: switch (comBoxFrequency.SelectedText)
use switch ((frequency)comBoxFrequency.SelectedValue) instead
hope it helps
dhaim
programming is a hobby that make some money as side effect
|
|
|
|
|
Yes it did help!
Thank you very much.
Now I can throw my if()____else if()___else if() (ugly code) away.
|
|
|
|
|
you're welcome
dhaim
programming is a hobby that make some money as side effect
|
|
|
|
|
You can also take a look at this article[^] for some alternative ways to do this.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
Hi all,
I hope you can help me with the following problem:
I have a third party COM Object written in c++.
I have a VS 2003 C# Project (1.1) that accesses this object (via "Add Refernence To Com Object...")
Everything works fine!!!!
Now I want to access the COM Object from a C# VS2008 Project (3.5).
In the VS2008 project I get an Exception saying that it is not possible to cast the Object
to the desired type. The functions only return __ComObject.
I tried Marshal.CreateWrapperOfType(), but no success.
Do you have any idea what I can do??
Thanks in advance
Jens
modified on Wednesday, October 22, 2008 12:14 PM
|
|
|
|
|
Hi all .
I Wount to Learn Shair Point , But I do Research On the Enter Net About Books For Shair Point ,
But I dont Found Free Books About it .
Who Can Give Me Address For Web Application Allow To me Download Books About it ?
Thanks For Any body heelp me
Thaer
|
|
|
|
|
Hi,
a quick google search came up with a blog entry about a free sharepoint eBook:
Click here
regards
Sebastian
|
|
|
|
|
Hi all,
I need help in converting a delimited text file as follow into a database file so that i could use sql commend to select and view the column that i wants to view. but i am stuck in converting the file pls help, i am using 2005 C# for my programming.
My delimited text file:
Time Locked CBER Quality VBER Strength SNR Uncorrectable
03:08:45.655 T 1.0E-003 64 1.6E-003 -17 18 1143
.655 col start @ 1st tab
Locked col start @ 2nd tab
CBER col start @ 3th tab
Quality col start @ 5th tab
VBER col start @ 7th tab
Strength col start @ 9th tab
SNR col start @ 11th tab
Uncorrectable col start @ 12th tab
the tab mean the delimited spacing of each column within a row. Pls direct me if i m wrong, what i need is to convert this file into a database file for better storing and selection to view the col of info i want thanks.
|
|
|
|