Click here to Skip to main content
15,892,161 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionSerial Port Signal to a VB.NET program (rs232) Pin
jamith24-Nov-09 1:07
jamith24-Nov-09 1:07 
AnswerRe: Serial Port Signal to a VB.NET program (rs232) Pin
The Man from U.N.C.L.E.24-Nov-09 2:00
The Man from U.N.C.L.E.24-Nov-09 2:00 
QuestionCalling properties of one Form1 into another Form2. Pin
jeshra27923-Nov-09 18:01
jeshra27923-Nov-09 18:01 
AnswerRe: Calling properties of one Form1 into another Form2. Pin
Johan Hakkesteegt23-Nov-09 20:10
Johan Hakkesteegt23-Nov-09 20:10 
GeneralRe: Calling properties of one Form1 into another Form2. Pin
jeshra27923-Nov-09 22:14
jeshra27923-Nov-09 22:14 
GeneralRe: Calling properties of one Form1 into another Form2. Pin
Johan Hakkesteegt23-Nov-09 22:28
Johan Hakkesteegt23-Nov-09 22:28 
GeneralRe: Calling properties of one Form1 into another Form2. Pin
The Man from U.N.C.L.E.24-Nov-09 1:55
The Man from U.N.C.L.E.24-Nov-09 1:55 
GeneralRe: Calling properties of one Form1 into another Form2. Pin
jeshra27930-Nov-09 18:58
jeshra27930-Nov-09 18:58 
Please see my requirement below carefully: need immediate help.
I have 2 forms, main Form1 and a loginform. When I start the application, first "Form1" is loaded and then with a button click, user can load "loginform" if required to enable/disable some features/controls on Form1.
The sequence is like this:

1) Load main form Form1
2) click a button on Form1
3) Load the loginform.
4) enter user/pwd and click OK button
5) enable/disable "GroupBox" control on Form1 if login sucessful.

For this,
I made a click event for OK button in loginform, so once user clicks the OK button, I want to call one function which is defined in Form1 as a Public, which enables/disables the "GroupBox" control on Form1. The code structure is like this:

in main Form1, i created a function like this:

Class Form1()

Public Function DoThis() ' Function to enable/disable GroupBox control

....some task...

End Function

End

now in loginform, in the click event for OK button:


Class loginform()

Click_OK()
{

DoThis().... 'call function DoThis() of Form1

}

End

I am not able to call the DoThis() function in loginform. Please suggest me with a piece of code how to do this??

Please remember that Form1 is my main form which is loading first. If anyother way is there to make a password protected feature for GroupBox control in Form1, it will be highly appriciated.
Hope my problem is clear..Thanks.
AnswerRe: Calling properties of one Form1 into another Form2. Pin
DaveAuld23-Nov-09 20:39
professionalDaveAuld23-Nov-09 20:39 
GeneralRe: Calling properties of one Form1 into another Form2. Pin
dan!sh 23-Nov-09 23:48
professional dan!sh 23-Nov-09 23:48 
GeneralRe: Calling properties of one Form1 into another Form2. Pin
DaveAuld24-Nov-09 2:52
professionalDaveAuld24-Nov-09 2:52 
AnswerRe: Calling properties of one Form1 into another Form2. Pin
Shameel24-Nov-09 2:02
professionalShameel24-Nov-09 2:02 
GeneralRe: Calling properties of one Form1 into another Form2. Pin
jeshra27926-Nov-09 18:57
jeshra27926-Nov-09 18:57 
GeneralRe: Calling properties of one Form1 into another Form2. Pin
Shameel27-Nov-09 5:26
professionalShameel27-Nov-09 5:26 
GeneralRe: Calling properties of one Form1 into another Form2. Pin
jeshra27930-Nov-09 6:16
jeshra27930-Nov-09 6:16 
GeneralRe: Calling properties of one Form1 into another Form2. Pin
Shameel30-Nov-09 7:37
professionalShameel30-Nov-09 7:37 
QuestionGraphics rendering in vb.net 6.1 pro and 4.2 cf Pin
Kevin Prince23-Nov-09 10:23
Kevin Prince23-Nov-09 10:23 
QuestionHow to get full screen without changing the form's layout Pin
cotdot1111123-Nov-09 9:26
cotdot1111123-Nov-09 9:26 
AnswerRe: How to get full screen without changing the form's layout Pin
Christian Graus23-Nov-09 9:33
protectorChristian Graus23-Nov-09 9:33 
GeneralRe: How to get full screen without changing the form's layout Pin
cotdot1111123-Nov-09 10:11
cotdot1111123-Nov-09 10:11 
GeneralRe: How to get full screen without changing the form's layout Pin
Dave Kreskowiak23-Nov-09 10:17
mveDave Kreskowiak23-Nov-09 10:17 
GeneralRe: How to get full screen without changing the form's layout Pin
Christian Graus23-Nov-09 10:38
protectorChristian Graus23-Nov-09 10:38 
GeneralRe: How to get full screen without changing the form's layout Pin
cotdot1111123-Nov-09 13:56
cotdot1111123-Nov-09 13:56 
GeneralRe: How to get full screen without changing the form's layout Pin
Christian Graus23-Nov-09 16:14
protectorChristian Graus23-Nov-09 16:14 
QuestionTAB key To Jump From Textbox To Another Textbox Pin
jeshra27923-Nov-09 7:49
jeshra27923-Nov-09 7:49 

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.