|
There are some set of server controls its property enabled= may be true or false,now in code behind how to find its current state and i am getting the controls id during runtime like this
foreach(Control c in form1.Controls)
{
............
}
Thanks In Advance
Thanks In Advance
|
|
|
|
|
foreach(Control c in form1.Controls)
{
if(c.Enabled)
MessageBox.Show("this control is enabled");
else
MessageBox.Show("this control is not enabled");
}
|
|
|
|
|
but there is no property enabled availble there....
Thanks In Advance
|
|
|
|
|
What stancrm has written is correct.
You can use the 'Enabled' property of System.Windows.Forms.Control
There are two types of fools in this world: One who give advice and the others who do not take it...
|
|
|
|
|
Hi, Dear Respected Programmers
Kindly convert the mentioned VB6 method into C# language.
strActual = "BAT BALL GOALKEEPER"
intPosition = INSTR(strActual,"BALL"
Thank you in Advance
|
|
|
|
|
string strActual = "BAT BALL GOALKEEPER";<br />
int intPosition = strActual.IndexOf("BALL");
|
|
|
|
|
Thank you very much... now it is working
|
|
|
|
|
Let's first convert it to VB.NET:
strActual = "BAT BALL GOALKEEPER"<br />
intPosition = strActual.IndexOf("BALL")
Now it's very simple to convert it to C#:
strActual = "BAT BALL GOALKEEPER";<br />
intPosition = strActual.IndexOf("BALL");
Note: There is a difference how strings are handled in .NET compared to VB6. The index is zero based, not one based, and IndexOf it returns -1 if the string is not found, not 0.
---
b { font-weight: normal; }
|
|
|
|
|
|
Wrox is best
Syed Shahid Hussain
|
|
|
|
|
I found the ADO.NET Core Reference to be really easy to learn from despite being a reference after all. It doesn't target the 2.0 version of the Framework, but allot still applies. I supplemented it by Programming ADO.NET 2.0 Applications Advanced Topics which is also good.
I'd be willing to sell the ADO.NET Core Reference if you're interested.
|
|
|
|
|
Yes, I could be interested, but obviously it depends on price
What country are you from?
P.S. Feel free to email me: gingermigit@hotmail.com, if you would rather not give details in public.
Thanks tgrt.
|
|
|
|
|
Hi Guys,
Im creating my own personal app to store logon accounts and password. Could someone please give me any suggestions on where or how to store that information (and make it secure)?
The thing is I dont wish to use sql i would like it like visual basic 6 where a database is imbedded or something.
or maybe store it in a file but i dont want the data file to be seperate of the app for ppl to open or smth.
any suggestions would be greatly appreciated
Thanks
|
|
|
|
|
GermanDM wrote: dont wish to use sql
you mean the whole the database approach ??
try to use xml file and find away to encrypt the content
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
basically yeah like im using sql at work but i dont have sql at home.
mmm i was thinking xml as well thx
but why do you say if i get mad??
thanks
|
|
|
|
|
GermanDM wrote: but why do you say if i get mad??
That's his signature.
He just haven't figured out yet how to make it look like a signature.
---
b { font-weight: normal; }
|
|
|
|
|
|
I use the small tag to make the text a bit smaller than the message body, and some dashes to make a separator. That is one way to do it.
---
b { font-weight: normal; }
|
|
|
|
|
i can see you Signature
the small tag is your style give me somthing else
man, share some ideas ??
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
You could always use the Express edition of SQL Server. Otherwise, XML or Access *gasp*. Obviously, use the Framework Crypto classes. Don't try to roll your own.
|
|
|
|
|
Don't be so concerned about anyone viewing the information, just make sure that the information they see is useless.
Store the hash code of the passwords, not the passwords themselves. That way the passwords can not be recreated from the stored information. When you verify a password, get the hash code for the entered password and compare against the stored hash code.
You can use for example MD5 to get a hash code for the passwords. (The GetHashCode method of System.String is not suitable for creating a long term hash code, as it may change between versions.)
---
b { font-weight: normal; }
|
|
|
|
|
Dear sir,
in my application i have using Access database.in that when i try to add new item and then modify those item at same time it show error like concurency violation delete command affected 0 records expected 1 records.so if any one knows means please help me.
|
|
|
|
|
hi all,
i am a beginner in C#.
please can any one suggest me a solution?
I am having two forms.first one is "Login" and Second one is "Entry"
In "Login" form i have a text box "Login Id". i want the value that is entered in this text during login in the next from "Entry".
//===========Login form======
public string strLoginID ;
strLoginID = txtLoginID.Text.Trim();
//==========Entry form==========
frmLogin objLogin = new frmLogin();
string strLoginChk = "";
strLoginChk = objLogin.strLoginID ;
this is the code i have given.during runtime i am unable to get the value stored in the txtLoginID.its getting disposed.i have also called a dispose fuction in the "Entry" form.
please if any one can suggest me another solution
Thanks in advance
sha04
|
|
|
|
|
u can store the loginid in string and can pass it to entry form
and can retrive that value in constructor of entry form
rahul
|
|
|
|
|
Hi,
I have a problem concerning to application data, how to use and what to store.
I have application reports that are installed during application setup.
Inside my application, the users are able to run the reports and also to create new ones.
Now, I'm installing the reports in Application Data\AllUsers\..., and reports created by users, go to the same folder.
My question is: Is this the correct way to do this?
Should my installed reports go to Program Files\... (Application installation folder), and user created report to Application Data\All Users\...?
Does anyone knows best practices for this problem?
Thanks in advance.
NFLR
|
|
|
|