Click here to Skip to main content
15,900,973 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionProgrammatically (De)Register Toolbox Components in VS.NET Pin
Marco Turrini17-Nov-06 4:44
Marco Turrini17-Nov-06 4:44 
QuestionHowTo Detect a swappable device when plugged in Pin
Zaegra17-Nov-06 4:00
Zaegra17-Nov-06 4:00 
AnswerRe: HowTo Detect a swappable device when plugged in Pin
Dave Kreskowiak17-Nov-06 4:33
mveDave Kreskowiak17-Nov-06 4:33 
GeneralRe: HowTo Detect a swappable device when plugged in Pin
Zaegra17-Nov-06 6:07
Zaegra17-Nov-06 6:07 
GeneralRe: HowTo Detect a swappable device when plugged in Pin
Dave Kreskowiak17-Nov-06 6:23
mveDave Kreskowiak17-Nov-06 6:23 
QuestionClosing a form from a class Pin
Pete Newman17-Nov-06 2:37
Pete Newman17-Nov-06 2:37 
AnswerRe: Closing a form from a class Pin
Dave Kreskowiak17-Nov-06 4:29
mveDave Kreskowiak17-Nov-06 4:29 
AnswerRe: Closing a form from a class Pin
Marco Turrini17-Nov-06 5:25
Marco Turrini17-Nov-06 5:25 
First of all, let me see if I understood exactly what you meant:
You have a form, which creates a class which in turns allows areas to the current user; the form draws a button for each allowed area; when the user clicks a button on the form, there's a method which opens the desired form.
But - if I understood correctly - the current user clicks a button on the mainOptions form: this event has been redirected to a method of the class, but the button is on the mainOption form.

What I'ld do is:
- Separate logic from interface: the class should only determine if an area is allowed or not
- Don't redirect the clickhandler to the class method
- Use the standard clickhandler on the form: in his body, I'ld write few lines of code: define and create the appropriate areaForm, adding an handler for her Close event, show it, minimize the mainOption form (option B: hide it)
- in the areaForm Close event (caveat: the areaForm_Closed event in the mainOption form), I'ld maximize the mainOptions (option B: close it)
(just for clarity's sake, I baptised the mainOption form as male and the areaForm as female)

And now a final, ironical touch: all my considerations are theoretical, I haven't tried themSmile | :) , so there may be some buggy detailBlush | :O ; but the general idea should workCool | :cool: .

Bye


Marco "El Turro" Turrini

QuestionWhat is the difference between the declarations mean? Pin
ashwath197917-Nov-06 1:18
ashwath197917-Nov-06 1:18 
AnswerRe: What is the difference between the declarations mean? Pin
Dave Kreskowiak17-Nov-06 4:27
mveDave Kreskowiak17-Nov-06 4:27 
GeneralRe: What is the difference between the declarations mean? Pin
ashwath197919-Nov-06 18:40
ashwath197919-Nov-06 18:40 
GeneralRe: What is the difference between the declarations mean? Pin
ashwath197920-Nov-06 0:34
ashwath197920-Nov-06 0:34 
GeneralRe: What is the difference between the declarations mean? Pin
ashwath197920-Nov-06 0:35
ashwath197920-Nov-06 0:35 
QuestionWhat the function declaration mean? Pin
ashwath197916-Nov-06 20:24
ashwath197916-Nov-06 20:24 
AnswerRe: What the function declaration mean? Pin
rico cheah16-Nov-06 20:47
rico cheah16-Nov-06 20:47 
GeneralRe: What the function declaration mean? Pin
ashwath197916-Nov-06 22:09
ashwath197916-Nov-06 22:09 
AnswerRe: What the function declaration mean? Pin
Guffa16-Nov-06 21:12
Guffa16-Nov-06 21:12 
GeneralRe: What the function declaration mean? Pin
ashwath197916-Nov-06 22:10
ashwath197916-Nov-06 22:10 
QuestionHow to make the packaging? Pin
rico cheah16-Nov-06 20:03
rico cheah16-Nov-06 20:03 
AnswerRe: How to make the packaging in VS.NET? Pin
Dave Sexton16-Nov-06 20:12
Dave Sexton16-Nov-06 20:12 
QuestionRe: How to make the packaging in VS.NET? [modified] Pin
rico cheah16-Nov-06 20:44
rico cheah16-Nov-06 20:44 
AnswerRe: How to make the packaging in VS.NET? Pin
Kevin Nicol17-Nov-06 1:33
Kevin Nicol17-Nov-06 1:33 
QuestionRe: How to make the packaging in VS.NET? Pin
rico cheah17-Nov-06 21:07
rico cheah17-Nov-06 21:07 
QuestionWhats the meaning of below declarations. Pin
ashwath197916-Nov-06 19:19
ashwath197916-Nov-06 19:19 
AnswerRe: Whats the meaning of below declarations. Pin
Guffa16-Nov-06 19:35
Guffa16-Nov-06 19:35 

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.