|
hi.........
how to get event in datagrid(when i press in cell of datagrid it should display alert message)
help me please......
|
|
|
|
|
Don't Cross post in Multiple Forums.
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
i didnt get u what do u mean
|
|
|
|
|
You have posted the same question in the Asp.Net forum and also here .
Hope now you got it what i said.
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
Crikey! He's posting the same question in the same forum, just phrasing it different!
What a bastard!!
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
You're going to have to dive into javascript to display an alert message.
Basically you can handle the ItemDataBound event, find the control you want to display the message for using FindControl, and do yourcontrol.Attributes.Add("onclick", "javascript: alert('whatever you want to say');")
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
thanks....
but i didnt get u if possible clear once again
|
|
|
|
|
in my C# program,i input "at" in a textBox,then the program send "at" to serialport,but when i click receive button,the message I receive from serial port is the same as I input,namely "at",not "ok",why?who can answer my question?How I solve this problem and get the right response "ok" from serial port?
next is my code:
public partial class Form1 : Form
{
private SerialPort sp = null;
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
try
{
sp = new SerialPort("COM1");
sp.ReadTimeout = 5000;
sp.Open();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
private void button2_Click(object sender, EventArgs e)
{
try
{
sp.Write(textBox1.Text);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
private void button3_Click(object sender, EventArgs e)
{
try
{
/*string text=null;
char[] buffer = new char[10];
sp.Read(buffer,0,6);
for (int i = 0; i < buffer.Length; i++)
{
text += buffer[i];
}
textBox2.Text = text;*/
/*string text = null;
char t = (char)sp.ReadChar();
text+=t.ToString();
while (true)
{
t = (char)sp.ReadChar();
if (t == '\0') break;
else text += t.ToString();
}
textBox2.Text = text;*/
string text = null;
byte[] t = new byte[20];
char[] c = new char[20];
sp.Read(t, 0, t.Length);
sp.Read(t, 0, t.Length);
c = Encoding.ASCII.GetChars(t);
int i;
for (i = 0; i < c.Length; i++)
{
if (c[i] == 'O' || c[i] == 'K')
text += c[i].ToString();
}
textBox2.Text = text;
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
}
|
|
|
|
|
Hi All
Any one know how to retrieve outlook appointment using MAPI and C#
gihan koli
|
|
|
|
|
Get it[^]
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
I have a enum with string values.I want to store all this in a string array.
And want to check with a parameter of a function with the string array.
can any body has the code in c#?
|
|
|
|
|
Did you read my reponse to your earlier post?
If you did, but didn't like it, try:
System.Enum.GetNames ( typeof(YourEnumTYpe) )
|
|
|
|
|
You waited all of two hours to post your question again?
saymajum wrote: I have a enum with string values.
What on earth does that mean? Enums can only have int (and related types) values.
Cheers,
Vıkram.
After all is said and done, much is said and little is done.
|
|
|
|
|
I have just started writing a vector graphics program with C#. I want to use the Graphics object's ScaleTransform to control zooming. I haven't got to that coding stage yet but I'm wondering if anybody knows how you would enforce bounds when the graphics are scaled. For example, while the mouse is dragging a shape, I want the location change to be canceled if the object would have been dragged out of the drawing bounds.
may your code be error free
|
|
|
|
|
I have a enum.I want to take a string array so that I can check with the enum values with the parameter of that perticular function.
Function AAA(string bbb)
{
String [] ccc ----------will store the enum values.
This values will be check with string bbb.
}
|
|
|
|
|
Try
System.Enum.Parse ( typeof(YourEnumType) , TheStringValueToTest )
|
|
|
|
|
how to write error handling in base page meaning first load page?
email me srpatel1172@yahoo.com
thank you
-- modified at 2:04 Wednesday 11th July, 2007
how to create error handle in master page?
|
|
|
|
|
Please clarify your question
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
I need my application to resize one of its forms when the user resizes the window of an external application (different process). It's been suggested to me that using Windows hooks is really the only viable way to do this.
There's just one problem: Apparently the callback that's executed when the hook is processed must be contained in a dll file if the thread/process that set the hook is different than the thread/process to which the hook is attached. From MSDN: "If the application installs a hook procedure for a thread of a different application, the procedure must be in a DLL."
So if my callback has to be contained within a dll, how do I get it to change properties on MY form??
|
|
|
|
|
Gosh! That's an intresting twist on cross posting.
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
|
|
|
|
|
on my local system I would like to create a application that will directly connect with the exchange server and send a email. I currently have it sending the email thru my outlook, but the problem is I have to use a 3rd party application to click YES I want the email to send (outlook popup window).
Can C# bge configured to talk directly to the exchange server like outlook and not know the difference in what is sending the email?
|
|
|
|
|
Here's what I use to send email:
public static void
SendEmail
(
string Sender
,
string Recipient
,
string Subject
,
string Body
,
string SmtpServer
,
System.IO.FileInfo[] Files
)
{
System.Net.Mail.MailMessage msg = new System.Net.Mail.MailMessage ( Sender , Recipient ) ;
if ( Files != null )
{
System.Text.StringBuilder temp = new System.Text.StringBuilder ( Body ) ;
temp.Append ( string.Format
(
"\n\n{0} attached file{1}:"
,
Files.Length
,
Files.Length==1?"":"s"
) ) ;
foreach ( System.IO.FileInfo att in Files )
{
if ( att != null )
{
temp.Append ( "\n" + att.Name ) ;
if ( att.Exists )
{
msg.Attachments.Add ( new System.Net.Mail.Attachment ( att.FullName ) ) ;
}
else
{
temp.Append ( " -- does not exist!" ) ;
}
}
}
Body = temp.ToString() ;
}
msg.Subject = Subject ;
msg.Body = Body ;
System.Net.Mail.SmtpClient cl = new System.Net.Mail.SmtpClient ( SmtpServer ) ;
cl.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials ;
cl.Send ( msg ) ;
}
|
|
|
|
|
Do you use this on a exchange server? It appears you might be passing the mail.domain.com for what it should login with.
|
|
|
|
|
Brad Wick wrote: Do you use this on a exchange server?
The service that uses that code runs on the same box as the Exchange server, but it doesn't have to.
Brad Wick wrote: It appears you might be passing the mail.domain.com for what it should login with.
Not to my knowledge.
|
|
|
|
|
in case this isn't already what you're using, there's also MS Outlook interop in addition to PIEBALDs solution:
simple example[^]
more than you ever wanted to know[^]
not sure if it's going to show the outlook popup window, but it's a nice thing to know about
|
|
|
|