|
Is it possible to retrieve the culture information for the machine running the application, and use that specific culture for the conversion?
|
|
|
|
|
I would store it in a culture neutral date format. Let the formatting of the date be taken care of on the client end where it belongs, and store the date using something like YYYY-MM-DD HH:MM:SS
|
|
|
|
|
Yes, but it shouldn't be stored as a string either.
|
|
|
|
|
For sure. But in this case it has to be this way.
|
|
|
|
|
anyone can plz tell me how to send SMS to a mobile phone from a .Net application.I am designing a deviceapplication.from the device i have to send sms to predefined mobile numbers
|
|
|
|
|
1. Open prefered browser.
2. Navigate to google (or prefered search engine).
3. search for c# sms.
4. come back when you have a problem other than laziness :P
C# sms[^]
|
|
|
|
|
There are several articles on codeproject showing how to do it. Why don't you use search?
|
|
|
|
|
Hi!
I recently completed a project which sends/receives SMS to mobile phone and i used an open source API called GsmComm http://www.scampers.org/steve/sms/. Try it, its very useful. But if you don't wanna use API then i guess you will have to do a lot of hard work.
Regards,
Affan Ahmad Toor
..................
QUAIDIAN FOR ONCE, QUAIDIAN FOR EVER!
|
|
|
|
|
Thanks for an interesting link
|
|
|
|
|
Wellcome
Regards,
Affan Ahmad Toor
..................
QUAIDIAN FOR ONCE, QUAIDIAN FOR EVER!
|
|
|
|
|
please i need help withy the code to implemnet cut,copy,pase and print funtions
|
|
|
|
|
1 - try a meaningful subject line next time
2 - what do you want to cut/copy/paste/print ?
You've not come close to giving us enough information to expect an answer, try reading the guide on how to ask meaningful questions.
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 )
|
|
|
|
|
I'll make a deal with you -- you implement undo/redo in my program and I'll implement cut/copy/paste in yours.
|
|
|
|
|
Ooh Undo/Redo is pretty simple, just implement a Command design pattern with 2 methods on your Command interface
interface ICommand
void Undo()
void Redo()
Every action you want to perform then becomes a discreet Concrete Command object which implements whatever it wants as its undo/redo behaviour.
Whenever an action gets performed add it to a stack (undoStack). When undo is clicked pop the item off that stack, execute "Undo" and add it to another stack (redoStack). Whenever redo is clicked pop an item of the redoStack, execute "Redo" and add it to the undoStack.
Easy peasy.
|
|
|
|
|
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.
|
|
|
|