|
You can probably filter out the message sent when the user rightclicks on DataGridViewColumn. This can be done using PreFilterMessage method of IMessageFilter interface. And then you call show your own contextmenu.
Dont know if any simple way exists for this.
"If you had to identify, in one word, the reason why the human race has not achieved, and never will achieve, its full potential, that word would be 'meetings'." - Dave Barry
|
|
|
|
|
Thanks for the suggestion.
|
|
|
|
|
Hello everyone,
Are there any WSDL parsers (does Microsoft provides that?) which could manipulate the XML tree? E.g. getting all web methods and insert some SOAP headers in each web methods.
If Microsoft official parsers, any tools or documents with source codes are welcome.
thanks in advance,
George
|
|
|
|
|
WSDL is an xml dom tree so any Xml parser should be able to do it.
Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
Most of this sig is for Google, not ego.
|
|
|
|
|
In theory we could, but it is more elegant to get a formal XML schema based parser to parser like SOAP headers.
Any ideas or referred documents/samples?
regards,
George
|
|
|
|
|
I probably don't understand then because WSDL is tied to the formal schema from the W3C.
Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
Most of this sig is for Google, not ego.
|
|
|
|
|
Thanks all the same, let me know when you have good ideas on this topic later.
regards,
George
|
|
|
|
|
George_George wrote: In theory we could, but it is more elegant to get a formal XML schema based parser to parser like SOAP headers.
No, not in theory. I reality. The .NET framework parsers are formal XML schema based parsers.
led mike
|
|
|
|
|
Thanks led mike,
For some legacy reasons, I can not change the code for the services at server side. I could only change the web services' WSDL content which could let client to refresh to generate new content. My purpose is to add a new SOAP header.
Any ideas or reference samples?
regards,
George
|
|
|
|
|
George_George wrote: For some legacy reasons, I can not change the code for the services at server side. I could only change the web services' WSDL content which could let client to refresh to generate new content. My purpose is to add a new SOAP header.
I have no idea how that information is relevant to your previous comment that I replied to. You seem to be completely lost in regards to XML, SOAP and XML parsers. Perhaps you should go back to the beginner material and start over, you must have missed some important stuff.
led mike
|
|
|
|
|
Hi led mike,
I understand the basics of SOAP and XML. I think I have not made myself understood.
My question is like below,
1.
I could manually dealing with services/binding/message/complex type sections of WSDL, to add SOAP header, no problem;
2.
I want to make my life easier to find some wrappers to directly dealing with /binding/message/complex type sections of WSDL internally, and I just provide the information of SOAPHeader, and the wrapper is manipulating the sections internally.
So, I am just looking for some such wrappers/code samples/documents.
Any comments or ideas?
regards,
George
|
|
|
|
|
Hi all,
I am trying to send a mail from our Exchange Server using the SmtpClient and the MailMessage classes, but I am receiving the following exception the whole time: SmtpException The operation has timed out. I am pretty sure that I am using the right credintials to logon to the server. So ... am I missing something
I can go through on Telnet to the server but not with the code below
string to = "jane@contoso.com";
string from = "ben@contoso.com";
string subject = "Using the new SMTP client.";
string body = @"Using this new feature, you can send an e-mail message from an application very easily.";
MailMessage message = new MailMessage(from, to, subject, body);
SmtpClient client = new SmtpClient("srvcontosopdc", 25);
client.Credentials = CredentialCache.DefaultNetworkCredentials;
client.Send(message);
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
modified on Thursday, September 11, 2008 8:41 AM
|
|
|
|
|
SmtpClient client = new SmtpClient("mail.srvcontosopdc.co.za", 25);
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
i want to convert my string in LPCTSTR or BSTR format, How i can do this.
|
|
|
|
|
Maybe the Marshal class can help (see MSDN)
|
|
|
|
|
I have launched programs from a C# app before, but I have been wondering if it is possible to launch an application inside a C# app. So, what i am wondering is this, could i launch, say notepad o rmediaplayer, inside a C# app, so it would actually render inside the app? Or barring that, run as if they were part of it?
Here is what I am looking to do: run applications inside a c# app so that i can minimize them to my system tray, even though they dont normally allow you to do so, so i could technically have notepad open in my tray, or mediaplayer, or even firefox.
Is this even possible?
______________________
Oh Hamburgers!
|
|
|
|
|
|
Looks like that may be exactly what I need
thank you.
______________________
Oh Hamburgers!
|
|
|
|
|
You are welcome
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
Wow, I just used the tabifier, that is exactly what I was looking for (and a bit more). Amazing program, thank you again
______________________
Oh Hamburgers!
|
|
|
|
|
Thanks
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
DataGridViewButtonColumn objAssign;
objAssign = new DataGridViewButtonColumn();
objAssign.Name = "Assign";
objAssign.Text = "Assign";
objAssign.HeaderText = "Assign";
objAssign.ToolTipText = "Click to Assign";
dtgAssignIssues.Columns.Add(objAssign);
I have this code written to create a button at runtime, inspite of setting the text assign , the text is not visible on the button. Please help me.
|
|
|
|
|
Loop thru' grid rows and assign the text to the button object of each row.
Nana
|
|
|
|
|
I tried looping through the buttons using the following code, it sets the text for the button only if there is one row. could u plz help me for multiple rows.
DataGridViewButtonColumn objAssign;
objAssign = new DataGridViewButtonColumn();
objAssign.HeaderText = "Assign";
objAssign.Name = "Assign";
dtgAssignIssues.Columns.Add(objAssign);
//dtgAssignIssues.Columns[1].ReadOnly = false;
foreach (DataGridViewRow r in dtgAssignIssues.Rows)
{
//MessageBox.Show(objAssign.Index.ToString());
DataGridViewButtonCell b;
b = (DataGridViewButtonCell)r.Cells["Assign"];
b.Value = "Assign";
}
|
|
|
|
|
Hy,
I made an simple windows form application, and to a MDI form I added an backgrounImage.
I lunch the application and after 4-5 seconds a refresh will done and I see how the backgroundImage will redraw.
Can anybody give me an idea or help?
thanks,
mihai
|
|
|
|