PC Review


Reply
Thread Tools Rate Thread

Connect between two forms

 
 
=?Utf-8?B?QXZpIEc=?=
Guest
Posts: n/a
 
      14th Jun 2006
Hi,

i've two forms one called form1 and form2, i've a checkbox1 on form2 and i
want that when checkbox1 on form2 checked so when minimize form1 it will hide
to the sys tray, i know all the codes for hiding to the sys tray but i can't
see the checkbox in form2 when i edit form1 that say like that

private void project_name_Form_Resize(object sender, EventArgs e)
{

if (checkbox1.Checked == true)
if (WindowState == FormWindowState.Minimized)


{

Hide();

}

now what is the code that i must enter so i can see the checkbox in form2,
Plz dont send me to google i already been there and i can't understant how to
do that maybe you can explian where i need to put the right codes.
 
Reply With Quote
 
 
 
 
Scully
Guest
Posts: n/a
 
      14th Jun 2006
Hi,

perhaps you can use a global variable of type Boolean that would
represent the state of the CheckBox you need. In this case, your IF
statement would be:


if(IsCheckedCheckBox1==true)


Hope this helps.

Scully.

Avi G wrote:
> Hi,
>
> i've two forms one called form1 and form2, i've a checkbox1 on form2 and i
> want that when checkbox1 on form2 checked so when minimize form1 it will hide
> to the sys tray, i know all the codes for hiding to the sys tray but i can't
> see the checkbox in form2 when i edit form1 that say like that
>
> private void project_name_Form_Resize(object sender, EventArgs e)
> {
>
> if (checkbox1.Checked == true)
> if (WindowState == FormWindowState.Minimized)
>
>
> {
>
> Hide();
>
> }
>
> now what is the code that i must enter so i can see the checkbox in form2,
> Plz dont send me to google i already been there and i can't understant how to
> do that maybe you can explian where i need to put the right codes.


 
Reply With Quote
 
=?Utf-8?B?QXZpIEc=?=
Guest
Posts: n/a
 
      14th Jun 2006
ok,but how to set the checkbox1 that is in form2 to Bool?

"Scully" wrote:

> Hi,
>
> perhaps you can use a global variable of type Boolean that would
> represent the state of the CheckBox you need. In this case, your IF
> statement would be:
>
>
> if(IsCheckedCheckBox1==true)
>
>
> Hope this helps.
>
> Scully.
>
> Avi G wrote:
> > Hi,
> >
> > i've two forms one called form1 and form2, i've a checkbox1 on form2 and i
> > want that when checkbox1 on form2 checked so when minimize form1 it will hide
> > to the sys tray, i know all the codes for hiding to the sys tray but i can't
> > see the checkbox in form2 when i edit form1 that say like that
> >
> > private void project_name_Form_Resize(object sender, EventArgs e)
> > {
> >
> > if (checkbox1.Checked == true)
> > if (WindowState == FormWindowState.Minimized)
> >
> >
> > {
> >
> > Hide();
> >
> > }
> >
> > now what is the code that i must enter so i can see the checkbox in form2,
> > Plz dont send me to google i already been there and i can't understant how to
> > do that maybe you can explian where i need to put the right codes.

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Promting, Forms or connect reports? =?Utf-8?B?SmFrZSBG?= Microsoft Access Reports 2 8th Nov 2007 10:29 PM
How to connect outlook forms to SQL server =?Utf-8?B?ZWpjMTU0?= Microsoft Outlook Form Programming 1 1st Nov 2006 08:52 PM
Connect between two forms =?Utf-8?B?QXZpIEc=?= Microsoft C# .NET 4 11th Jun 2006 08:52 PM
Is there a way to link tables together to connect forms? =?Utf-8?B?ZGhhaW5lcw==?= Microsoft Access Forms 1 10th Aug 2005 12:52 AM
How to connect Access forms to SQL tables Bill Nicholson Microsoft Access Form Coding 0 28th Jul 2004 01:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:56 AM.