Click here to Skip to main content
15,889,335 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to get the IP Number of the server on which my app is running Pin
Ranjan Banerji6-May-03 9:54
Ranjan Banerji6-May-03 9:54 
GeneralRe: How to get the IP Number of the server on which my app is running Pin
Ranjan Banerji6-May-03 10:24
Ranjan Banerji6-May-03 10:24 
AnswerRe: How to get the IP Number of the server on which my app is running Pin
Vasudevan Deepak Kumar7-May-03 1:54
Vasudevan Deepak Kumar7-May-03 1:54 
GeneralRe: How to get the IP Number of the server on which my app is running Pin
Ranjan Banerji7-May-03 3:45
Ranjan Banerji7-May-03 3:45 
GeneralRe: How to get the IP Number of the server on which my app is running Pin
Vasudevan Deepak Kumar7-May-03 3:59
Vasudevan Deepak Kumar7-May-03 3:59 
GeneralRe: How to get the IP Number of the server on which my app is running Pin
Ranjan Banerji7-May-03 11:17
Ranjan Banerji7-May-03 11:17 
GeneralForm Design Quandries Pin
RB@Emphasys6-May-03 7:54
RB@Emphasys6-May-03 7:54 
GeneralRe: Form Design Quandries Pin
Stephane Rodriguez.6-May-03 9:07
Stephane Rodriguez.6-May-03 9:07 
Ryan@SalamanderTechnologies wrote:
cForm.FormBorderStyle = FormBorderStyle.None;
cForm.MaximizeBox = false;
cForm.MinimizeBox = false;
cForm.ControlBox = false;


Those things work perfectly well when the child form is not maximized.

The trouble is, when a child form gets maximized, then the border used is the MDIClient's border, not the child's border. As a result, minimize/maximize/control boxes are displayed regardless of what you is set for the child form.
Since the MDIClient is a private Form member, the only way I can think of to get around this is to directly manipulate the MDIClient window style, using native code : WIN32.SetWindowLong(this.Handle, GWL_STYLE, WIN32.GetWindowLong(this.Handle, GWL_STYLE) ~ (WS_MAXIMIZEBOX|WS_MINIMIZEBOX)); // may be won't compile, but you get the idea

The MDICLient window handle can be retrieved by looking up the this.Controls collection, looking for a member of type MDIClient :
int nbControls = this.Controls.Count;
for (int i=0; i<nbControls; i++)
{
  Control pCtrl = this.Controls[i];
  if ( pCtrl.GetType()== typeof(System.Windows.Forms.MdiClient) )
  {
    ...
  }
}

GeneralRe: Form Design Quandries Pin
RB@Emphasys6-May-03 9:12
RB@Emphasys6-May-03 9:12 
GeneralRe: Form Design Quandries Pin
RB@Emphasys6-May-03 9:21
RB@Emphasys6-May-03 9:21 
GeneralRe: Form Design Quandries Pin
Stephane Rodriguez.6-May-03 9:20
Stephane Rodriguez.6-May-03 9:20 
GeneralRe: Form Design Quandries Pin
RB@Emphasys6-May-03 9:22
RB@Emphasys6-May-03 9:22 
GeneralRelated to Files Pin
Kant6-May-03 7:42
Kant6-May-03 7:42 
GeneralRe: Related to Files Pin
Stephane Rodriguez.6-May-03 7:58
Stephane Rodriguez.6-May-03 7:58 
GeneralRe: Related to Files Pin
Kant6-May-03 8:24
Kant6-May-03 8:24 
GeneralRe: Related to Files Pin
Stephane Rodriguez.6-May-03 8:56
Stephane Rodriguez.6-May-03 8:56 
GeneralRe: Related to Files Pin
Daniel Turini6-May-03 8:21
Daniel Turini6-May-03 8:21 
GeneralSplit the file Pin
Kant6-May-03 4:49
Kant6-May-03 4:49 
GeneralRe: Split the file Pin
Stephane Rodriguez.6-May-03 5:49
Stephane Rodriguez.6-May-03 5:49 
GeneralRe: Split the file Pin
Kant6-May-03 6:12
Kant6-May-03 6:12 
GeneralRe: Split the file Pin
Stephane Rodriguez.6-May-03 6:40
Stephane Rodriguez.6-May-03 6:40 
GeneralRe: Split the file Pin
Kant6-May-03 6:54
Kant6-May-03 6:54 
GeneralRe: Split the file Pin
Stephane Rodriguez.6-May-03 6:59
Stephane Rodriguez.6-May-03 6:59 
Questionhow to write C# Applet, display it in a web page and the requirement? Pin
zoltix6-May-03 2:36
zoltix6-May-03 2:36 
AnswerRe: how to write C# Applet, display it in a web page and the requirement? Pin
Stephane Rodriguez.6-May-03 6:45
Stephane Rodriguez.6-May-03 6:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.