|
Oh I forgot then. Then it will look like this:
<br />
for(int i=1; i<82;i++)<br />
{<br />
this.Controls["button"+i].Text="this is button number "+i.ToString();<br />
}<br />
|
|
|
|
|
Could always throw in a switch/if block if there is a range within the loop he wants to skip
"I really like comments where I don't have to answer stupid questions" - stfx
|
|
|
|
|
Look, if you want to skip a small portion of a loop, and an if statement, and continue:
for(int i=0; i<100; i++) {
if(i >= 82 && i <= 90)
continue;
this.Controls[whatever]...
}
My current favourite word is: Waffle
Cheese is still good though.
|
|
|
|
|
Yeah, there are alot of ways we could get creative with it
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
You could do all sorts of things. I still like the idea of creating the buttons dynamically though. Of course then if you needed to change them, hmm.
My current favourite word is: Waffle
Cheese is still good though.
|
|
|
|
|
I think you should create them dynamically at runtime.
|
|
|
|
|
Wow I haven't gotten the chance to come back and say thanks to everyone who gave answers. But I took the advice of the first person, which is what I needed, because I need to still modify the buttons during the program.
Thanks to all!
Michael Fritzius
|
|
|
|
|
Hi,
Can anybody help me in how to authenticating the users while they are trying to connect to the internet using a custome dialer which i have to develope in C#.net.This application has to be a PPPOE dialer type application,here we are using Radius server to monitor the usage.I am completely new to this technology.Will RAS componant can be helpful to me in this regard,I heard that we can use WinInet something to connect to the internet.If anybody has previously worked on this type of application please guide me how to work on it.
Any help will be greatly appreciated.
Thanks,
|
|
|
|
|
Should not different than any other dial-in or network authentication.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Means? Can you tell me briefly.I don't know how to go with this?If you have any sample code regarding this please send it to me.
Thanks,
|
|
|
|
|
Hi THere, as the subject says, I'm writing a webservice and would like to connect to a database.
[WebMethod]
public ClientData[] GetClientData(int Number){
}
I'm not sure how to connect. Can someone please let me know the steps required to connect to a Remote database?
Thanks
|
|
|
|
|
It is just like connecting to a remote database from your application means in the connection string you have to give the database systemname on which system it is deployed ,like its systemname or IP address.
For example in ur connection string u have provide the parametres like
Sqlconnection _connetcion=new sqlconnection("Server=SystemName;Initial Catalog=DatabaseName;User Id=sa; Password=;")
I hope this will works for you.
More over give this connection strings in your web.config file so that you can refer it all over the function and mainatainace will be easier if your database is moved to other systems in the future.
Sorry for my poor english
Happy programming.
Cheers,
|
|
|
|
|
Connecting to a database from a web service shouldn't be any different than a regular app.
"Find it your bloody self - immediately!" - Dave Kreskowiak
|
|
|
|
|
I HAVE DISABLED CTRL ALT DEL COMBINATION BUT I HAVENT FOUND SOLUTION TO DISABLE AL+F4. If any one guide me i shall be thankful to him.
tahir
|
|
|
|
|
HAVE YOU TRIED OVERRIDING WNDPROC?
Don't use caps lock, it makes you look foolish, well except to highlight one or two words, but not a sentence.
My current favourite word is: Waffle
Cheese is still good though.
|
|
|
|
|
The Undefeated wrote: Don't use caps lock, it makes you look foolish
Thank you.
"Find it your bloody self - immediately!" - Dave Kreskowiak
|
|
|
|
|
tahir_makhdoom wrote: I HAVE DISABLED CTRL ALT DEL COMBINATION BUT I HAVENT FOUND SOLUTION TO DISABLE AL+F4.
No all caps, it is considered rude. Like the other poster said, you are going to have to hook into the keyboard.
"Find it your bloody self - immediately!" - Dave Kreskowiak
|
|
|
|
|
Would you use a program that disables stuff like that? I wouldn't.
|
|
|
|
|
Hi,
First post here. I would like to develop an application so that the users can run it from a server by using a web browser. I have heard that C# might be suitable for this.
Does anyone now any good books that treats this subject? Or perhaps good web-sites??
Thanks!
/Kristian
|
|
|
|
|
there's many books that is a good one.
Beginning ASP.NET 2.0 with C Sharp 2006
Wrox
Assaf
|
|
|
|
|
xkrja wrote: Or perhaps good web-sites?
You are at one of them...
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi
In my application I need that "When user enters a value in the textbox there should be a validation routiene which contains some formula, execute that and should return the entered value is correct or not and this validation routiene should be changeble by the user".
i.e. validation routiene is like plug-in in C#.net windows application.
Please help me
Thanks in Advance
Praveen Kumar Palla
|
|
|
|
|
Please be a bit more specific so people can possibly help you.
"I really like comments where I don't have to answer stupid questions" - stfx
|
|
|
|
|
i created a dataset by code and one by wizad.
I assign data to the one created by code, can I assign the same data to the one created by wizard
Using the code.
Thanks i advance
Assaf
|
|
|
|
|
That's great. Keep up the good work - especially filling the dataset by code as you don't want to be using the wizards too much.
|
|
|
|