Click here to Skip to main content
15,896,606 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: Playin MMS Streams Pin
DaveyM695-Jun-08 11:34
professionalDaveyM695-Jun-08 11:34 
GeneralRe: Playin MMS Streams Pin
User 43030176-Jun-08 3:42
User 43030176-Jun-08 3:42 
QuestionVS 2008 performance Pin
netJP12L5-Jun-08 7:53
netJP12L5-Jun-08 7:53 
AnswerRe: VS 2008 performance Pin
Joe Woodbury5-Jun-08 8:23
professionalJoe Woodbury5-Jun-08 8:23 
AnswerRe: VS 2008 performance Pin
Alan Balkany6-Jun-08 3:53
Alan Balkany6-Jun-08 3:53 
GeneralRe: VS 2008 performance Pin
netJP12L6-Jun-08 5:01
netJP12L6-Jun-08 5:01 
GeneralRe: VS 2008 performance Pin
Alan Balkany6-Jun-08 5:04
Alan Balkany6-Jun-08 5:04 
GeneralRe: VS 2008 performance Pin
Pete O'Hanlon6-Jun-08 8:22
mvePete O'Hanlon6-Jun-08 8:22 
QuestionTransparent form Pin
Saiyed Alam5-Jun-08 7:16
Saiyed Alam5-Jun-08 7:16 
AnswerRe: Transparent form Pin
Anthony Mushrow5-Jun-08 7:24
professionalAnthony Mushrow5-Jun-08 7:24 
GeneralRe: Transparent form Pin
Saiyed Alam5-Jun-08 7:36
Saiyed Alam5-Jun-08 7:36 
GeneralRe: Transparent form Pin
Anthony Mushrow5-Jun-08 7:42
professionalAnthony Mushrow5-Jun-08 7:42 
GeneralRe: Transparent form Pin
PIEBALDconsult5-Jun-08 7:57
mvePIEBALDconsult5-Jun-08 7:57 
GeneralRe: Transparent form Pin
Saiyed Alam5-Jun-08 8:13
Saiyed Alam5-Jun-08 8:13 

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.