Click here to Skip to main content
15,886,714 members
Home / Discussions / C#
   

C#

 
GeneralUnmanaged Enumeration values Pin
Nick Seng10-Sep-03 21:45
Nick Seng10-Sep-03 21:45 
GeneralRe: Unmanaged Enumeration values Pin
Kannan Kalyanaraman10-Sep-03 22:09
Kannan Kalyanaraman10-Sep-03 22:09 
GeneralRe: Unmanaged Enumeration values Pin
Nick Seng10-Sep-03 22:22
Nick Seng10-Sep-03 22:22 
GeneralRe: Unmanaged Enumeration values Pin
Nick Seng10-Sep-03 22:30
Nick Seng10-Sep-03 22:30 
GeneralRe: Unmanaged Enumeration values Pin
Kannan Kalyanaraman10-Sep-03 22:34
Kannan Kalyanaraman10-Sep-03 22:34 
GeneralC # API Pin
Ritesh Dubey10-Sep-03 19:25
Ritesh Dubey10-Sep-03 19:25 
GeneralRe: C # API Pin
Kannan Kalyanaraman10-Sep-03 22:06
Kannan Kalyanaraman10-Sep-03 22:06 
GeneralChild Hide/Show Problem Pin
Clarke7610-Sep-03 19:17
Clarke7610-Sep-03 19:17 
I have a number of mdiChildren that are added to a parent. When these children are minimized i want them to Hide. To regain access to these mdiChildren, you have to access them via statusbar. The problem i'm having is unhiding the children. I restore using the panelOnClick and minimized using ReSize.

//Minimize Code
protected override void OnResize(EventArgs e)
{
if (this.WindowState == FormWindowState.Minimized)
{
foreach( RichStatusBarPanel panel in serverForm.mainForm.statusBar1.Panels )
{
if( panel.Text.ToLower() == this.channel.ToLower() )
{
panel.BorderStyle = StatusBarPanelBorderStyle.None;
}
}
//this.Hide();
this.Visible = false;
}
base.OnResize(e);
}

//Restore Code

foreach( Form room in this.MdiChildren )
{
if( room.Text.ToLower() == panel.Text.ToLower() )
{
if( room.Visible == false )
room.Focus();
//room.Show();
room.Visible = true;
if( room.WindowState == FormWindowState.Minimized )
room.WindowState = FormWindowState.Normal;
}
}

Before I was having a problem where everytime I went to Show or Visible = true; it would crash the program. I found out you need to add Focus to it before doing this and it will become visible. However, when I do it like that. Altho it shows, I can never really get Focus of it, I think. Basically it stays a light blue color instead of that darkblue when you have mainFocus on it. I've tried everything from Hide....Show...Visible true/false. Refresh...update u name it. No matter what I do it always stay that light blue color. I still can do my normal function on it. but when Maximized it no longer becomes the title of the parent. I just don't understand whats going on. Any help here?

QuestionUnregister an assembly? Pin
Bog10-Sep-03 17:02
Bog10-Sep-03 17:02 
AnswerRe: Unregister an assembly? Pin
Nick Parker10-Sep-03 18:16
protectorNick Parker10-Sep-03 18:16 
GeneralRe: Unregister an assembly? Pin
Bog11-Sep-03 7:29
Bog11-Sep-03 7:29 
GeneralDelegates Pin
deanoA10-Sep-03 15:49
deanoA10-Sep-03 15:49 
GeneralRe: Delegates Pin
Blake Coverett11-Sep-03 7:33
Blake Coverett11-Sep-03 7:33 
GeneralRe: Delegates Pin
Blake Coverett11-Sep-03 7:36
Blake Coverett11-Sep-03 7:36 
GeneralRef in C# Pin
deanoA10-Sep-03 15:41
deanoA10-Sep-03 15:41 
GeneralRe: Ref in C# Pin
J. Dunlap10-Sep-03 15:44
J. Dunlap10-Sep-03 15:44 
GeneralDataGridColumnStyle Pin
Giant Penguin10-Sep-03 14:57
Giant Penguin10-Sep-03 14:57 
GeneralRe: DataGridColumnStyle Pin
sumeat11-Sep-03 15:04
sumeat11-Sep-03 15:04 
Generalcolor combobox Pin
monrobot1310-Sep-03 14:55
monrobot1310-Sep-03 14:55 
GeneralRemoting and using statements Pin
babarfloyd10-Sep-03 13:17
babarfloyd10-Sep-03 13:17 
GeneralRe: Remoting and using statements Pin
monrobot1310-Sep-03 17:04
monrobot1310-Sep-03 17:04 
GeneralRe: Remoting and using statements Pin
babarfloyd15-Sep-03 7:25
babarfloyd15-Sep-03 7:25 
Generalcustom paging through a DataView Pin
clayne10-Sep-03 10:09
clayne10-Sep-03 10:09 
QuestionCreating a .tif tag with PropertyItem? Pin
RHamilton10-Sep-03 9:33
RHamilton10-Sep-03 9:33 
GeneralKeyboard hook + C# problem Pin
Ylis10-Sep-03 9:28
Ylis10-Sep-03 9:28 

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.