Click here to Skip to main content
15,919,749 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Load video in form Pin
Dave Kreskowiak23-Sep-05 4:48
mveDave Kreskowiak23-Sep-05 4:48 
AnswerRe: Load video in form Pin
Member 219430723-Sep-05 8:48
Member 219430723-Sep-05 8:48 
QuestionShowing 2nd Form from 1st Form Pin
sanataraj22-Sep-05 19:51
professionalsanataraj22-Sep-05 19:51 
AnswerRe: Showing 2nd Form from 1st Form Pin
enjoycrack22-Sep-05 20:52
enjoycrack22-Sep-05 20:52 
GeneralRe: Showing 2nd Form from 1st Form Pin
Dave Kreskowiak23-Sep-05 4:28
mveDave Kreskowiak23-Sep-05 4:28 
AnswerRe: Showing 2nd Form from 1st Form Pin
Dave Kreskowiak23-Sep-05 4:38
mveDave Kreskowiak23-Sep-05 4:38 
QuestionProblem with Forms Pin
_mubashir22-Sep-05 19:09
_mubashir22-Sep-05 19:09 
AnswerRe: Problem with Forms Pin
Steve Pullan22-Sep-05 19:16
Steve Pullan22-Sep-05 19:16 
The problem is that you cannot set focus to a control that is not active and since FormA is not active at the time FormB is about to close (where you would want to set focus to another control on FormA) it can't be done. You'd also need to expose FormA's controls etc. to FormB to go down this path anyway and that is not a best practice.

What I suggest is that you set a global (to FormA) variable in the textbox's GotFocus() event before you show FormB and you conditionally show FormB only when this variable is False. This will prevent the infinite loop.

...Steve
GeneralRe: Problem with Forms Pin
_mubashir22-Sep-05 21:20
_mubashir22-Sep-05 21:20 
Questiongenetic algorithm Pin
Member 229845722-Sep-05 18:49
Member 229845722-Sep-05 18:49 
AnswerRe: genetic algorithm Pin
Steve Pullan22-Sep-05 19:09
Steve Pullan22-Sep-05 19:09 
GeneralRe: genetic algorithm Pin
Anonymous25-Sep-05 17:28
Anonymous25-Sep-05 17:28 
QuestionUpdating control properties on the form designer. Pin
Rahsas22-Sep-05 15:24
Rahsas22-Sep-05 15:24 
Questionmore vb grief *sigh* Pin
l a u r e n22-Sep-05 13:57
l a u r e n22-Sep-05 13:57 
AnswerRe: more vb grief *sigh* Pin
Steve Pullan22-Sep-05 14:31
Steve Pullan22-Sep-05 14:31 
Questionodbc enumeration... Pin
l a u r e n22-Sep-05 9:55
l a u r e n22-Sep-05 9:55 
AnswerRe: odbc enumeration... Pin
Joshua Quick22-Sep-05 10:47
Joshua Quick22-Sep-05 10:47 
GeneralRe: odbc enumeration... Pin
l a u r e n22-Sep-05 11:10
l a u r e n22-Sep-05 11:10 
AnswerRe: odbc enumeration... Pin
rwestgraham22-Sep-05 10:53
rwestgraham22-Sep-05 10:53 
GeneralRe: odbc enumeration... Pin
l a u r e n22-Sep-05 11:11
l a u r e n22-Sep-05 11:11 
GeneralRe: odbc enumeration... Pin
rwestgraham22-Sep-05 11:24
rwestgraham22-Sep-05 11:24 
QuestionHelp saving into pdf file Pin
Jason Ranin22-Sep-05 9:44
Jason Ranin22-Sep-05 9:44 
AnswerRe: Help saving into pdf file Pin
rwestgraham22-Sep-05 10:26
rwestgraham22-Sep-05 10:26 
Questioni need help Pin
ashishdubey198122-Sep-05 7:54
ashishdubey198122-Sep-05 7:54 
AnswerRe: i need help Pin
Dave Kreskowiak22-Sep-05 8:22
mveDave Kreskowiak22-Sep-05 8:22 

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.