|
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.
|
|
|
|
|
ASysSolvers wrote: sometime my form going crashed and nothing display,
your best fix is to fix the code in this form.
Also, a good solution is to have both forms as controls and show them on the one form.
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 )
|
|
|
|
|
In the code in the first form that displays the second form, after declaring the second form's instance but before calling show() subscribe to the second form's Shown event. Then, in the handler, hide the first form.
Form2 f2 = new Form2();
f2.Shown += new EventHandler(f2_Shown);
f2.Show();
void f2_Shown(object sender, EventArgs e)
{
Hide();
}
Dave
|
|
|
|
|
does someone know this code??
Record 9 of 10
this ^ is output on a label..
counting all the record on the database then displaying it like that..
|
|
|
|
|
hello.... is not a valid subject, it doesn't help us to work out if we can help, which is the purpose of a subject.
How are you displaying these records, in a grid, or otherwise ? If you have a dataset, then you can get a total from the Count of the rows in it.
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 )
|
|
|
|
|
sorry about the subject name. the records are displayed on the textboxes..
i also have another table which is in datagridview.
|
|
|
|