Click here to Skip to main content
15,906,467 members
Home / Discussions / C#
   

C#

 
GeneralRe: yesterday's time Pin
George_George5-Jun-08 18:44
George_George5-Jun-08 18:44 
GeneralRe: yesterday's time Pin
Alex@UEA5-Jun-08 21:12
Alex@UEA5-Jun-08 21:12 
GeneralRe: yesterday's time Pin
George_George5-Jun-08 21:21
George_George5-Jun-08 21:21 
GeneralRe: yesterday's time Pin
PIEBALDconsult5-Jun-08 17:06
mvePIEBALDconsult5-Jun-08 17:06 
GeneralRe: yesterday's time Pin
George_George5-Jun-08 18:27
George_George5-Jun-08 18:27 
QuestionImageList help Pin
decoyoctopus5-Jun-08 14:33
decoyoctopus5-Jun-08 14:33 
AnswerRe: ImageList help Pin
Gareth H5-Jun-08 15:32
Gareth H5-Jun-08 15:32 
GeneralRe: ImageList help Pin
decoyoctopus6-Jun-08 13:56
decoyoctopus6-Jun-08 13:56 
QuestionGet message ID from smtp message Pin
Nick De Decker5-Jun-08 11:25
Nick De Decker5-Jun-08 11:25 
QuestionThird party frameworks Pin
Tim Holgerson5-Jun-08 10:40
Tim Holgerson5-Jun-08 10:40 
AnswerCross Post - please ignore Pin
Pete O'Hanlon5-Jun-08 11:20
mvePete O'Hanlon5-Jun-08 11:20 
GeneralRe: Cross Post - please ignore Pin
Tim Holgerson5-Jun-08 11:56
Tim Holgerson5-Jun-08 11:56 
AnswerPersonally Pin
Ennis Ray Lynch, Jr.5-Jun-08 11:21
Ennis Ray Lynch, Jr.5-Jun-08 11:21 
AnswerRe: Third party frameworks Pin
DaveyM695-Jun-08 11:28
professionalDaveyM695-Jun-08 11:28 
GeneralNeed a simple code Pin
bolaboy5-Jun-08 9:59
bolaboy5-Jun-08 9:59 
GeneralRe: Need a simple code Pin
Christian Graus5-Jun-08 10:30
protectorChristian Graus5-Jun-08 10:30 
Questionobject manipulation in callback function Pin
your_daddytoo5-Jun-08 9:13
your_daddytoo5-Jun-08 9:13 
QuestionFrom maximized form, create a minimized form. Pin
oscarderooij5-Jun-08 8:30
oscarderooij5-Jun-08 8:30 
AnswerRe: From maximized form, create a minimized form. Pin
Gareth H5-Jun-08 9:21
Gareth H5-Jun-08 9:21 
GeneralRe: From maximized form, create a minimized form. Pin
oscarderooij5-Jun-08 10:01
oscarderooij5-Jun-08 10:01 
GeneralRe: From maximized form, create a minimized form. Pin
DaveyM695-Jun-08 11:17
professionalDaveyM695-Jun-08 11:17 
GeneralRe: From maximized form, create a minimized form. Pin
oscarderooij9-Jun-08 5:01
oscarderooij9-Jun-08 5:01 
Thanks for the help Dave!

I think this can work, but I dunno why the parent form keeps enabling the scroll bars.

The parent form thinks that the Child form is bigger than its area and then enables the scroll bar.

To stop this I searched for Scroll functions and tried setting them manually:

public PortalForm()
{
InitializeComponent();

this.AdjustFormScrollbars(false);
this.AutoScroll = false;
this.HorizontalScroll.Enabled = false;
this.HorizontalScroll.Visible = false;
this.VerticalScroll.Enabled = false;
this.VerticalScroll.Visible = false;
this.HScroll = false;
this.VScroll = false;
this.SetAutoScrollMargin(0, 0);
this.SetScrollState(0, false);
}

But these function didn't work... when I start the child form, the portal scroll bar is activated...
Here is the code where it starts the child form:

private void PortalForm_Shown(object sender, EventArgs e)
{
Form frmMonitor = new MonitorRiscoResultadoFrm();
if (frmMonitor != null)
{
frmMonitor.MdiParent = this;
frmMonitor.StartPosition = FormStartPosition.WindowsDefaultLocation;
frmMonitor.WindowState = FormWindowState.Normal;
frmMonitor.Size = ClientRectangle.Size;
frmMonitor.Show();
}
}

Any ideas why the scroll bar keeps visible ?
Thanks again!
Oscar
GeneralRe: From maximized form, create a minimized form. Pin
DaveyM6911-Jun-08 6:18
professionalDaveyM6911-Jun-08 6:18 
QuestionMasked column in DataGridView Pin
AndrusM5-Jun-08 8:26
AndrusM5-Jun-08 8:26 
QuestionPlayin MMS Streams Pin
User 43030175-Jun-08 8:21
User 43030175-Jun-08 8:21 

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.