|
J4amieC wrote: implements whatever it wants as its undo/redo behaviour.
Now that's the tricky part, isn't it -- the state that needs to be stored/maintained is what makes undo/redo a pain for me.
|
|
|
|
|
Just make your classes Serialixable.
|
|
|
|
|
hi,
I have a login form which uses a user control designed for solely login purposes.I have 3 projects in my solution, one is the main MDI application (PETALSApp), one is the control library housing the login user control (PETALSControlLib) and the other is one that has the login form(SecurityServiceProvider).
My idea is to open up a login form first and if the login is correct then close login window and open the MDI form.
Now the problem is, after the successful login, to close the login window i have written this.FindForm().Close() in the user control's code for successful login, but this code not only closes the login window, but it also closes the MDI main form. I have added references as folowing:
PETALSControlLib refers PETALSApp
SecurityServiceProvider refers PETALSApp and PETALSControlLib
Please help if there is a workaround for this
|
|
|
|
|
Once your log-in got validated try out the following
this.Hide (); // It will hide your current window.,
frmMDI objMDI = new frmMDI (); // Create instance of your new one
Application.DoEvents(); // To process all messages in Queue - NOT MUST
objMDI.ShowDialog (); // POP-UP it
|
|
|
|
|
hi, appreciate ur help, but Hide() would just make the form to vanish from the screen but it remains in memory and can be seen in task manager. just imagine if i open up 100 login windows, 100 instances would still be running in memory and this will lead memory performance issues. I need a workaround for this actually.
|
|
|
|
|
OK., i have assumed that as a Windows Application you would have only one instance, in your case i dont think so how it will work since once you close your main thread it will close entire stuff i.e there is no more resource to drive your application.
Lets say you log in screen page contains Main () method and you are expecting to close that one, hence there is no more main () then how it your application will work around?
Of course i might be wrong, if you come across any better soloution please post it across so that i can aware...
Thanks
Siva
|
|
|
|
|
I have a datagrid in device application.i have 2 columns in it.there is 1 textbox and 1 combobox whose values i have to store in datagrid.i m able to do that.but i want to extract the value of a particular row and get the corresponding values in the textbox and combobox.how will i do that?
Note:i have no option of selecting a particular cell in datagrid for deviceapplication.
|
|
|
|
|
Your requirement is not clear i can give u an idea based on my understandings.
use the Isselected property chk for row selection and then using current row index get the row values.
Regards
DilipRam
|
|
|
|
|
hi all
i have a dll
i create a strong name and i put it in gac using gacutil.exe
after doing that
will that particular dll would appear in c:\windows\assembly or not
i was thinking like it comes to that place autoumatically
but it doent appear ....
why what happens after it is sucessfully added in to gac where will it affect...
but if we copy paste the dll with strong name in visualstudio2005 installed folder in program files it appear in assembly...
if i need to add directly assembly what should i do
hope its clear
|
|
|
|
|
if you have gone through the fillowing then you should see that DLL in your (C:\WINDOWS\assembly)
1. Create Strong name Key Pair sn -k sample.snk
2. Add this key pair file into your Project Soruce
3. Give file name in to your Assebmly Info file as like below
[assembly: AssemblyKeyFile("sample.snk")]
4. Compile it
5. Go to command prompt and give (http://msdn2.microsoft.com/en-us/library/ex0ss12c(VS.80).aspx[^]
gacutil /i "DDL Qualified path"
6. Go to C:\WINDOWS\assembly your entry is ther...
|
|
|
|
|
Hi,
How can i get the GUID of a product which is installed on my system or of which i have the msi file.
Regards,
Wasif Ehsan.
|
|
|
|
|
What GUID?
Not all applications have GUIDs associated with them, so do you mean entries in the registry?
|
|
|
|
|
I have couple of assumption on your question...
1. You are creating MSI using .Net Setup Project in this case you will have Property called "Product Code" in your solution itself.
2. You might want to trap Product ID of each product which is installed in your system, for this you have some free tools, which will tell those, please download it from the following link and which will take you in further
http://www.nirsoft.net/utils/myuninst.html[^]
Make sure this is an UnInstaller but it will show the Product Code of each product, by mistakenly if you hit uninstall please do not blame me ...
Have a Good Day !!
|
|
|
|
|
I want to show the progress bar while the application accessing the database to indicate how much the progress is.
|
|
|
|
|
prasadbuddhika wrote: I want to show the progress bar while the application accessing the database to indicate how much the progress is.
Great. Go for it! (Or did you want to ask a question?)
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
Ready to Give up - Your help will be much appreciated.
My website
|
|
|
|
|
Colin Angus Mackay wrote: Great. Go for it! (Or did you want to ask a question?)
You are not nice!
It worked two times in the last hour, so why should he care about the ones who whant to help?
All the best,
Martin
|
|
|
|
|
Excellent answer. Made me laugh.
|
|
|
|
|
Well, you can't. A DB call is atomic, it doesn't send back any info related to it's progress.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Well, he could always use the old MS Access trick of displaying a progress bar using a number that tends to infinity, and then set the value to 100% when it's finished reading the data.
|
|
|
|
|
Yeah, Windows Explorer does that, too :P
I've tried suggesting things like that in the past, but it's too hard to explain that the progress bar doesn't actually show meaningful progress.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Vista doesn't bother with this at all. It just displays a "pretty" interface and then fails to copy files at anything like reasonable speed.
|
|
|
|
|
I'm doing a project for my second year and I have to develop an application for a small company to handle their customers over the phone.
So I would like to know how to set user previlages(administrator/client).
And also how to validate them and what kind of security part I can apply.
|
|
|
|
|
Privileges within your own app ? You would basically define for yourself how to do that, how you store them, define them, and check them before performing an action.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Erhm, there are too many ways to handle users & privileges. You should choose the best of all options depending on the needs of your client.
You can create a security object yourself, or you can use the windows authentication (for example use domain users etc)
The number of possibilities is enormous...
|
|
|
|
|
If you're developing this as an ASP.NET application, you can use the Membership and Role Providers that are part of the .NET 2 installation.
|
|
|
|