Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I am trying to find out how to write the code on a form that will check on another form I have to see what it is set as.

 

Example: I have a settings form (frmSettings) and on another form which I have as notepad (frmNotepad). On the notepad form I want it to know if a checkbox is checked and if it is carry out certain events, such as saving the text without them having to go to File then Save.

 

I have tried

If frmSettings.CheckBox1.Checked = True Then
'Events to carry out
End If

 

I have asked this question before and I have found it is very difficult for someone to try to post it and for it to work right for me.

 

So if someone could please make a very quick project in vb.net that does this and post it in these forums it would really be helpful.

Posted

i think you must declare a frmSettings variable on a module, then, on the Form_Load event of that form, set:

 

varfrmSettings = me

 

So you can use that variable to access that form members,

if it doesn't work then it something similar, but definitely you have to declare a frmSettings variable.

 

hope that helps

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...