|
Important differences? How can anyone answer that without knowing what's important to you?
Have you tried to search[^]? This topic has been discussed many times all over the world, it hardly needs repeating again just for you.
Do a search and see what you find. When you have read some about it you are more than welcome to ask any more enlighted questions here, and there is a much greater chance that someone can and will give you an answer.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi,
I'm trying to create a C# application that uses SOAP to communicate with a SOAP enabled server. The only snag is that the server uses TLS-PSK (transport layer security with pre-shared keys).
I can use wsdl.exe to convert the wsdl files to C# classes, but I can’t find any way to implement TLS-PSK security. The generated classes inherit from System.Web.Services.Protocols.SoapHttpClientProtocol, this class does most of the work, and more importantly, the sending of the data.
So how, other than re-creating the SoapHttpClientProtocol class, do I go about implementing the required security on my client application?
|
|
|
|
|
Hello,
I have a mdi (painting) problem. I'll try to be short and to the point:
Situation:
I have a MDI form. Instead of having the standard minmize, restore, etc buttons (when the mdi child is maximized) I have my own tabstrip control where I've created those buttons. I also have my own behavior when one child is minimized, maximized or restored, only the one child is changed (the rest keep their state).
How:
First of all, the handling is done by overriding WndProc in the child. I check WM_SIZE to see if the child is SIZE_MAXIMIZED, if it is I set WindowState to Normal, and dock the child instead (otherwise I'll get the system buttons as normal mdi behavior). I also check when the systembuttons are clicked, and dock instead of maximize, etc.
Problem:
When changing through the childs I have ALOT of flicker, and one of the main problems is that I see the caption bar of the child for a split second. I think that's what causing the flicker (or at least much of it), because the child and it's controls are doing a lot of resizing and moving. If I return when I get the WM_NCACTIVATE message, there's no flicker, but of course I can't return, that's just causing a lot of other problems.
So, does anyone have any suggestions how to get rid of the flicker, or how to NOT paint the caption bar?
Here's the WndProc override:
<br />
protected override void WndProc(ref Message m)<br />
{<br />
if (this.blockWndProc)<br />
return;<br />
<br />
if (m.Msg == WM_SYSCOMMAND || m.Msg == WM_NCLBUTTONDBLCLK)<br />
{<br />
if (this.Parent != null)<br />
{<br />
if ((int)m.WParam == SC_MAXIMIZE || (int)m.WParam == HTCAPTION)<br />
{<br />
this.Dock = DockStyle.Fill;<br />
return;<br />
}<br />
if ((int)m.WParam == SC_RESTORE)<br />
{<br />
this.Dock = DockStyle.None;<br />
this.Size = this.restoreSize;<br />
return;<br />
}<br />
}<br />
}<br />
<br />
if (m.Msg == WM_SIZE)<br />
{<br />
if ((int)m.WParam == SIZE_MAXIMIZED && this.Parent != null)<br />
{<br />
this.restoreSize = this.RestoreBounds.Size;<br />
<br />
this.blockWndProc = true;<br />
this.WindowState = FormWindowState.Normal;<br />
this.blockWndProc = false;<br />
<br />
this.Dock = DockStyle.Fill;<br />
}<br />
}<br />
<br />
<br />
base.WndProc(ref m);<br />
}<br />
|
|
|
|
|
Hello,
Have you also tried to work with "this.SuspendLayout();" ... "this.ResumeLayout(true);", like the designer does?
All the best,
Martin
|
|
|
|
|
Yes, I have and it doesn't solve the problem.
|
|
|
|
|
Have you tried using the Control.SetStyle method? There's a number of properties that might be useful for you in it, including double buffering and such...
Standards are great! Everybody should have one!
|
|
|
|
|
I am using double buffering, but I don't think I've looked at the SetStyle method.
Anyway, I've been digging in the framework with .NET reflector, and I've managed to disable the mdi system buttons. So, I'm trying to use the standard functionality right now, meaning I won't dock the childs. To get the functionality I want, I override WndProc, and return when I get the message to maximize the window... So now restore and maximize will restore / maximize only the selected child.
|
|
|
|
|
hi
i have a scrolable form
i want to have a button that when clicked form is scroll atoumatic (for example 10 pixle)
how can i do ?
MHF
|
|
|
|
|
Check for window.scrollto(javascript)
|
|
|
|
|
Thanks But i want code in windows Apllications ??
MHF
|
|
|
|
|
|
It obviously works on that page. We don't have enough information to help you.
Post more details, some code fragments, etc.
|
|
|
|
|
I am Used two Updated Panel in two Seprate Asp panel
(i.e Panel1(visile true) And panel2 (visible false))
My Caleder control is in panel2 which is initially visible false
on button click am change it (i.e make panel1 visible false and panel2 visible true) but at that time it's not work fine
|
|
|
|
|
what is Custum Dash style How can use it in Pen
i want " < " dashStyle
is it possible ?
With thanks
MHF
|
|
|
|
|
You create an array of float values that represent the length of alternating dashes and spaces, and put in the DashPattern property.
What do you mean by a " < " dash style?
---
single minded; short sighted; long gone;
|
|
|
|
|
Thanks
i have a mistake
MHF
|
|
|
|
|
Hi,
I get stuck to retrieve value of a variable from one form to another form.
What is the best option to declare global vaiable, that i require in whole project.When i Inherit the form in which that particualr variable is declared, it inherited the all controls.And automatically it embbed on another form where i want that variable value. I m using VS 2005.
One more thing, what is purpose of Program.cs file, that automatically included in Project. What code we should write there.
Thanks to All C# lovers.
Binod
|
|
|
|
|
|
|
led mike wrote: And incorrectly answered yet again
No, not incorrect, maybe different!
Or tell me whats incorrect at this link:
http://www.codeproject.com/dotnet/passingvaluesbetweenforms.asp[^]
led mike wrote: Model-View-Controller Design Pattern[^]
Is a nice keyword if you whant to impress somebody, but would be much more interesting with a small code example, which answers the question!
I'm looking forward to your answer, as I also have no experience with MVC Design Pattern.
All the best,
Martin
|
|
|
|
|
Martin# wrote: Is a nice keyword if you whant to impress somebody
In my experience the MVC pattern has never impressed anyone. However it does solve many technical problems that are common to design by adhering to fundamental practices of software design discipline. Of course one of them is the question that started this thread which is, as you pointed out, very "common"... get the idea?
Martin# wrote: I'm looking forward to your answer
As you might guess I did not invent the MVC pattern nor am I an expert, therefore I follow the advice of the experts, that's why they are called "experts".
Martin# wrote: I also have no experience with MVC Design Pattern.
What about Software Design Patterns? In either case if you are serious about your career I suggest you get experience ASAP.
Martin# wrote: but would be much more interesting with a small code example
You mean like this[^]
Keep in mind that Article is just one example of a specific implementation of the MVC pattern. Another, more complex, would be the Framework provided at Microsofts Patterns and Practices[^] site.
led mike
|
|
|
|
|
Hello,
I hope you don't feel that I'm kind of rude with my statements.
I just wanted to point out that, specialy for a beginner who has a problem at his low level application, it's not a big help to point him to this.
led mike wrote: What about Software Design Patterns? In either case if you are serious about your career I suggest you get experience ASAP.
I do agree, and you made me curious about that.
led mike wrote: You mean like this[^]
I had a short watch, and have to say that it's not much diverent then the article of Colin Angus Mackay, as he also explains the usage of delegates.
led mike wrote: Keep in mind that Article is just one example of a specific implementation of the MVC pattern. Another, more complex, would be the Framework provided at Microsofts Patterns and Practices[^] site.
Thank you for that interensting link.
All the best,
Martin
|
|
|
|
|
Martin# wrote: I hope you don't feel that I'm kind of rude with my statements.
Nope.
Martin# wrote: Thank you for that interensting link.
your welcome and CP has a Design and Architecture forum should you have more questions on the subject.
led mike
|
|
|
|
|
hi,
how do I filter column for a DataGridView?
I've loaded the data like this:
DataGridView.DataSource = ExampleSource;
DataGridView.DataBind();
the Data is shown correctly in the Grid, but there are
to many of them. So i'd like ti filter them.
Where must be a way to make specific Columns invisible.
I've used foreach like this:
foreach (DataGridColumn column in DataGridView.Columns)
{
...
}
but he does go through the foreach-loop.
also i haven't managed how to delete the specific column
by searching it with a string.
i'll be grateful for any help
PS: Sry about my bad english...
|
|
|
|
|
hi,
i have created the form and placed the contextmenustrip on it,
and enterd some values like copy,cut.
And i called that when user clicks the MouseRight Button
it is displaying.
But at always at the Top of the window.
How can I place it where ever user clciks.
Pls help me
With Regards
Prasad
|
|
|
|