|
smraj1503 wrote: Give solution to this problem...
How very rude!
|
|
|
|
|
At least he didn't say that it's urgent and is not demanding to send code to his e-mail address.
|
|
|
|
|
"Its Urgent" can easily be ignored. But "Give me solution" sounds like a demand to me.
|
|
|
|
|
Hi,I am Sayem.I am Working on C#.net Microsoft Visual studio 2005. I have created some project.Now I want to incorporate them in a single project so that i can assign permission on various control based on user privileges.So I need to know programmitecally how much and what form contains in each project , How much and what control have there and their properties. How can I get all this information ? Have you any answer? Then please send me "sayem.ahm@gmail.com".
Note: I don't want to read from ...Design.cs file. I want to know have any method/ class that can give answer about all control of own project?
|
|
|
|
|
It seems like you are going to want to use Reflection. You'll need to refer to each of the project assemblies and then query or manipulate them via Reflection. Note, that if you want to interact with a Form's controls with Reflection you'll need to raise the access level of them via their Modifiers property first. Sorry, if this isn't what you wanted; I don't think the description is very clear of what you are trying to do.
Keep It Simple Stupid! (KISS)
|
|
|
|
|
This is a very bad and very impractical idea. If you need security like this, each form needs to check the users role and modify itself. This should NOT be done from a central piece of code that goes spelunking around changing all the forms. What you want to do violates OOP encapsulation coding practices.
And the only people who give a damn about your email address are spammers. In a forum environment, ALL communication stays in the forums, not in emails. That way, the entire community can participate and benefit from the answers.
|
|
|
|
|
i saw that but dont remember where, i saw that when i was looking for how to access embedded resources.
it was a routines that shows in a msgbox all resources names in project.
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
Hi everyone,
My name is Eyal Wiener, and I am in the process of developing an open
source quicksilver alternative for Windows called Mighty Box.
A year ago i published a Java version of mightybox which i ceased
working on after considering the limitations of Java.
2 months ago i started working on a new version of MB with C# on
MS.NET using WPF.
this new version include a much smarter and flexible core, which
allows even more powerful plugins than before.
The new core was built on the original Quicksilver concepts, and
architecture.
I'm looking for c# developers to join me
The MightyBox project is being hosted on Launchpad: https://launchpad.net/mb[^]
you can already review a large portion of the code which i committed to the project's repository.
to contact me, use my profile page on LP: https://launchpad.net/~eyalw[^]
project group hosted on http://groups.google.com/group/MightyBox[^]
|
|
|
|
|
hi,
i am developing a application in which i want to login through c# form and want to open my profile home page in web .
thank's
jugal
|
|
|
|
|
Good for you. Was there a question here somewhere?
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Go ahead and all the best.
|
|
|
|
|
HI,
I need to connect from PDA (C# .net) to server web for exchange info.
Example, I send an info to server web and after that server have process the data, the PDA receive a result.
Can you help me with example?
Thanks a lot.
Alex
|
|
|
|
|
i have a method that is called when the formclosing event is called and it asks to exit(yes/no), if it is not how can i cancel this event ?
|
|
|
|
|
FormClosing has a FormClosingEventArgs parameter (usually called e). Set the Cancel to true to cancel the close, i.e.
e.Cancel = true;
|
|
|
|
|
sorry to waste your time i got the code, but a problem too,
private void Form1_Load(object sender, EventArgs e)
{
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ask);
}
public void ask(object sen, FormClosingEventArgs e)
{
DialogResult r= MessageBox.Show("do you really want to exit?", "exit", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (r == DialogResult.Yes)
{
Application.Exit();
}
else
{
e.Cancel = true;
}
}
when click on ok for the msgbox it doesn't exit at once , need to click two time to exit ,for the first time it doesn't exit .
|
|
|
|
|
Get rid of the call to Application.Exit
DialogResult result = MessageBox.Show("Do you really want to exit?", "Exit",
MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (result != DialogResult.Yes)
e.Cancel = true;
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
|
khoa cntt
|
cộng
| ngày
| lop1
| lop2
| Design same as:
valign="top">lop3
| lop4
| lop5
| lop6
| lop7
| lop8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Help me please!
sdbfkdskjfdkksdbfkdsjbfdksbf
|
|
|
|
|
kieu duc khuong wrote: Help me please!
With what?? You haven't asked a question.
|
|
|
|
|
I'm using a DLL written in C++ which creates a processing thread which processes items added to a queue from other threads. This works well from unmanaged code but I am now trying to use the DLL in a managed application. The thread is created and runs as expected processing items passed to it from C#, the problem occurs when I try to call Application.Run(dialog) or dialog.ShowDialog(). The form is destroyed immediately so it simply flashes on the screen and disappears. This does not happen when the unmanaged thread is not running.
The loop within the C++ thread is simply:
while( true )
{
WaitForSingleObject(hEvent);
while( !queue.empty() )
{
DoProcess(queue.front());
}
}
And the thread is created with:
g_hThread = CreateThread(NULL, NULL, ThumbnailThreadProc, NULL, 0, &g_nThreadId);
Is there a reason for this behaviour?
|
|
|
|
|
Two UI threads in 1 app maybe?
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - out now! ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
Hai i have a problem with pageload function.I want to disable the background of the page during loading and enable it when the page is loaded.I wrote the code as ClientScript.RegisterStartupScript(typeof(Page), "js", "javascript:Disablebackground();", true); to disable the background.in disablebackground function i wrote the javascript code.It is working in mozilla but not in Internet Explorer.Can u help me?
Thanks in advance.
Swapna K.
|
|
|
|
|
Kolluri Swapna wrote: javascript:Disablebackground()
You dont need to prefix the function with 'javascript' if its already in a script block.
Even better head off to the ASP.NET forum, and ask them how to put that in the 'body loader' of the page.
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - out now! ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
Hi friends,
Iam in a cofusion how to access array in form1 from form2.
|
|
|
|
|
|
This article must have been posted for a thousand times.
Always keep the Murphy Rules in mind!
|
|
|
|