|
if you want to make SMS gate way then its good. other wise there are many gateways that expose api to send message by using there api you can easily make. but its not for Mca Project
|
|
|
|
|
hi all,
i have a string
string date= "09/02/27, 12:23:04"
the above string is in yy/mm/dd format, i want to convert it into a DateTime variable. When i convert i am getting the output as 9/2/2027, 12:23:04 PM which is wrong. I have tried the below code:
DateTime dt = Convert.ToDateTime(date);
so i suspect its not the way, i think there are something to do with the Globalization namespace? any help will be much apreciated.....thanks..........![Rose | [Rose]](https://codeproject.global.ssl.fastly.net/script/Forums/Images/rose.gif)
|
|
|
|
|
Yes.. Datetime objects acts according to your globalisation settings in yout machine/Application. The easiest way is to use Datetime.Tostring(yy/mm/dd) whenever you want ot display it
|
|
|
|
|
DateTime.ParseExact() is what you need.
Cheers,
Vıkram.
I've never ever worked anywhere where there has not been someone who given the choice I would not work with again. It's a job, you do your work, put up with the people you don't like, accept there are probably people there that don't like you a lot, and look forward to the weekends.
- Josh Gray.
|
|
|
|
|
i will be gratefull if u can provide me a sample code, what are the values inside parseExact()??
|
|
|
|
|
Gosh, those buggers at Microsoft have been hiding that in the documentation[^] again havent they.
|
|
|
|
|
for cross thread communication i use a delegate and the method registered with the delegate takes a parameter.how can i pass this parameter to the method through the delegate?
|
|
|
|
|
You can pass it just like in a method call.. Delegate is actually hloding a method pointer.
|
|
|
|
|
thanks, i get the way..
this.invoke("delegatename","parameters");
|
|
|
|
|
If you have the delegate localy.. say delegatename is your delegate then call it like delegatename("parameters")..
|
|
|
|
|
Dear All,
i am sending it again please tell me how to use message in c sharp
the following code with is bold this line is highlighted in my code and error is the MessageBox.Show does not exit in current context.
PLEASE tell me solution.
MessageBox.show = c;
c = a - b;
MessageBox.show = c;
c = a * b;
MessageBox.show = c;
c = a / b;
MessageBox.show = c;
|
|
|
|
|
OK.
1 - it is RUDE to post your question again like this
2 - you are STILL not telling people you're using ASP.NET. We have an ASP.NET forum
3 - Overall, you're obviously not at a level where you should be doing this stuff, buy a basic C# book, learn that, then move on to web development.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Dear sir
pls help me i am build a project by in c# application some project idea or any suggetion for me pls send my email
thank u
mulla mdfozail
|
|
|
|
|
If you;re not trolling, you must be retarded. Buy a book on C# and read it before you try to get help online.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Dear sir
pls help me i am how to build project by in c# sharp some project idea or any suggetion pls send for me my email id
thank u
mulla mdfozail
|
|
|
|
|
dear
I am also new in C sharp and searching for some one who can guide me that's why i am posting questions on forums.
My suggestions is you have to find in books or on internet forums.
Thanks
|
|
|
|
|
|
Except, if you look below, he's doing an ASP.NET project. He will think this works, until he deploys it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
dear
Tell me where should i put this like i just want to display text Hello.
MessageBox.Show(c.ToString("Hello world"));
But problem is this when i build application then this error acquire like Messagebo.Show does not exist in current context.
why this is happening i just want to know this and what should i do to solve it.
Thanks
|
|
|
|
|
You need to use a javascript alert. And to answer your next question, no. Google it.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
using System;
public delegate void hd(string s);
public class class1
{
public void hello(string s)
{
Console.WriteLine(s);
}
}
public class program
{
static void Main()
{
class1 c= new class1();
hd d=new hd(c.hello);
d.Invoke("abcd");
}
}
i saved this program with .cs extension and run the program.but at the time of compilation it is showing the following error
the syntax of the command is incorrect
runned with csc :del.cs
compiled with: del
|
|
|
|
|
I've never seen delegates assigned like this, but I assume it would work. You don't do d.invoke tho, you just do d("abcd");
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Dear All,
I am working in c sharp i am new with c# i am facing very basic problems i need to ask please tell me how i can use message to display any this if true or false i mean to say just guide me is their any class required to import in c# and then message can be display easily or no class or names peace required for using message in c sharp language please send me code of display message and also guide me what to do?
Thanx
Sajjad Ali
|
|
|
|
|
Gosh - that was one sentence ?
If you're doing a windows project, then MessageBox.Show("This is my message") is the easiest way to get a message on screen. If you're new, you should probably start with console apps. Console.WriteLine("hello world"); will work here. Note, your console app needs to end with Console.ReadLine() so it will stop long enough for you to read the output.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
dear i am using web application but when i am typing for message intelisence window does not showing me MessageBox.Show why i also worked in vb.net application but this is very different what should i say
please send me with detail what should i do.
|
|
|
|