|
Totally agree Josh, but as the OP seemed confused already I thought starting simple was the best way to go.
Had the poster come back and said "It does not work because textbox12 is inside a panel", then I would have delved into the obvious recursive method!
---
How to get answers to your questions[^]
|
|
|
|
|
very thoughtful
|
|
|
|
|
J4amieC wrote:
Had the poster come back and said "It does not work because textbox12 is inside a panel", then I would have delved into the obvious recursive method!
My concern was that the OP's confusion might indicate that he/she wouldn't necessarily make the connection between the fact that the TextBox was in a GroupBox and the fact that the provided method did not work as provided.
:josh:
My WPF Blog[^]
|
|
|
|
|
Oh...it was my first thouhgt. I reallized that all Boxes around were detected only. So I tested it without a groupBox and voila it works.
|
|
|
|
|
Thank you very very much! I realized, that I must learn more about this stupid "this"
|
|
|
|
|
Schimaera wrote: Command. str = "textBox12".
shouldn't it be textBox12.Text
and
Schimaera wrote: int a = ConvertToInt16(str.Text)
int a = ConvertToInt16(str)
Best Regards,
Apurva Kaushal
|
|
|
|
|
1. int.Parse(textBox12.Text);
2. Convert.ToInt32(textBox12.Text);
|
|
|
|
|
You forget the .Text property
textBox12.Text
Eran Aharonovich (eran.aharonovich@gmail.com )
Noviway
|
|
|
|
|
I want to use Global Variable concept in C#.NET Project
for information sharing between forms pages.
Please help me how to do it ?
|
|
|
|
|
Store that data in a class and pass an instance (i.e. the same instance) of that class to each form. You may want to consider using a singleton pattern[^].
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
Hi
How can I access a PHP web service in C#.NET 2003
Thanks
Jyotsna
|
|
|
|
|
I got the answer
Thanks anyways
~jyo
|
|
|
|
|
hi i need the solution for that..i want to access php web service in c#.net
|
|
|
|
|
if (listBox1.SelectedItem.Equals(null))
when listBox1.SelectedItem equal null <<<<
i have error at this statment
if (listBox1.SelectedItem.Equals(null))
what i can do to see if object equal null ??
Palestine
|
|
|
|
|
Your statement can only be FALSE or EXCEPTION, because you cannot call methods on null. If listBox1.SelectedItem is null, the statement is equal to if (null.Equals(null)) .
Try this:
if (listBox1.SelectedItem == null)
|
|
|
|
|
if (listBox1.SelectedItem.Text == "")
{
//Do some code
}
|
|
|
|
|
...is going to crash when listBox1.SelectedItem is null.
Better version:
if (listBox1.SelectedItem == null)<br />
{<br />
}
|
|
|
|
|
Hi friends,
I am converting the content of Gridview to Excel. Its working. But i dont know how to format the excel sheet for design(Font Color, Leaving empty row after heading, adjusting the width of the column equal to the content of the gridview) and etc. Help Me Please.
Thanks & Regards,
Prya
|
|
|
|
|
|
I want to upload the file in the designated folder on server. Want to save the path of file in database. Which I can use to retrive the file in future.
Saurabh
|
|
|
|
|
|
Need help for uploading the file to folder, saving the file in such a manner in folder so user multiple user can save and retrieve the file with same name. Address of files needed to be saved in database.
Can any one help me to solve this problem in ASP.Net + SQL + C#.
Saurabh
|
|
|
|
|
Try to write the code of your own.
|
|
|
|
|
hi all in my program i can create a new registry subkey under CLASS_ROOT, CURRENT_USER, USER & CURRENT_CONFIG But the programm can't Create a subkey under HKEY_LOCAL_MACHINE(But its possible under any sub node of LOCAL_MACHINE)
when i try for it the compiler shows the following message(An unhandled exception of type 'System.IO.IOException' occurred in mscorlib.dll
Additional information: The parameter is incorrect.
)
so how can i create a new sub key under LOCAL_MACHINE
HAVE U ANY SOLUTION PLZ REPLY SOON
THANX
Pradeep
-- modified at 7:12 Thursday 20th July, 2006
|
|
|
|
|
I think that is impossible to create a key under HKLM. That is not allowed.
|
|
|
|