|
Christian Graus wrote: It will accept 300.534.999.21
Close enough
|
|
|
|
|
A regular expression will do that. I suspect Expresso ( www.expresso.com[^] ) will have one to do that built in.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
greetings,
one simple question:
there are 5 threads;
each one has read/write access to global object;
before read/write to object, operation is enclosed with lock keyword.
is app completely thread safe?
p.s. even if each processor enters lock (obj) statement at the same time
|
|
|
|
|
Asipu wrote: before read/write to object, operation is enclosed with lock keyword.
Hard to tell without seeing code you used.
|
|
|
|
|
i think that sample code is irrelevant, im just concerned if its theoretically possible
that two threads enter lock (obj) at the same time;
even if it isnt with single cpu, what about multi proc machine
|
|
|
|
|
Asipu wrote: if its theoretically possible
that two threads enter lock (obj) at the same time;
If used properly, lock ensures one thread access the block. It won't make any difference in a multi processor machine, I guess.
|
|
|
|
|
explain structure with array in c#.net?
|
|
|
|
|
What do you need explained ? You can just create an array, but I'd use a list. You can create an array or a list of structs, same as you would any type.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Look at the past posts from this guy, its all "Explain ...", no please, no thank you. At the end of last week I suggested he bought a book and learned Google
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hello friends
i want to create subdomain dynamically. i have domain. can any one tell how to code for subdomain creation and access for my site.
i m using asp.net/c#
Thanks in advance...
|
|
|
|
|
You need to set up your website for this, on the server. You don't do it with code.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hi christian
Thank for fast reply.
i know that i have to set up my website but i want to give subdomains to the user of my site..
for example www.mySiteDomain.com and i want to assign subdomain to my user like www.myuser.mySiteDomain.com
so how can i code so my site every user have their subdomain to access the site.
|
|
|
|
|
It depends on the website provider. Consult with them, they might provide some API's which can be used for this.
|
|
|
|
|
can any body tell me how to add a form to a panel using C#.NET.
Thanks in advance.
Regards:
Biswajit
biswajit nayak
|
|
|
|
|
why would you want to do that?
panels go on forms, i dont think that forms can go in panels. if you want forms within forms you can google MDI windows
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.passion != Programming)
|
|
|
|
|
Hi,
have a look at Form.TopLevel
|
|
|
|
|
|
you can add parameters in the forms constructor or/and add a 2nd constructor with the parameters
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.passion != Programming)
|
|
|
|
|
Your Form should always have default constructor (with no params), else the VS designer will break.
|
|
|
|
|
Hi,
I've build an application but it isn't suppose to startup more than once.
How do I prevent my application to startup more than once??
Kevin
|
|
|
|
|
Possibly the easiest way is to use a mutex. I posted a WPF version here[^], but it's easy enough to apply this to a Forms app.
|
|
|
|
|
There are countless articles on CodeProject providing solutions to your problem.
|
|
|
|
|
Hi,
actually none of those "solutions" do what the OP asks. At best they make the second
instance die rapidly, but they don't prevent it from starting up.
|
|
|
|
|
From what I have seen, most are the same, and I use the same thing in my applications too:
1. Create Mutex.
2. Check Mutex, then use IPC (with Remoting) to talk and do what you need with either instance.
|
|
|
|
|
In my code I am going to hide my active form and show another form. In that case are there any way to check me that other(2nd) form is loaded or not, Something like to check null or not.
Because currently I am facing for a problem that is sometime my form going crashed and nothing display, at the same time my other form is already hide. Then my application is something like losen(hang). I j’t want a solution for that.
|
|
|
|