Click here to Skip to main content

Visual Basic

   

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page  Show 
  Refresh
GeneralDisplay a form in Sub Main() PinmemberMahesh167918:50 29 Mar '05  
GeneralRe: Display a form in Sub Main() Pinmembersumit2119:46 29 Mar '05  
GeneralRe: Display a form in Sub Main() PinmemberMahesh167920:12 29 Mar '05  
GeneralRe: Display a form in Sub Main() Pinmemberrwestgraham20:27 29 Mar '05  
GeneralRe: Display a form in Sub Main() PinmemberSunil Gidwani19:58 29 Mar '05  
GeneralRe: Display a form in Sub Main() Pinmembersumit2120:30 29 Mar '05  
GeneralRe: Display a form in Sub Main() PinmemberProgrammer2k420:43 29 Mar '05  
GeneralRe: Display a form in Sub Main() PinmemberBenjamin Liedblad21:48 29 Mar '05  
I had this one about 2 years ago...
I had put some code inside my "form1" and found that the code ran, but the form seemed to never appear.
If you put a DoEvents after the show, then a Msgbox, you'll see what's happening... Your form is actually loading, but the program is exiting after the form.show method.
 
If you want to load the form and not exit "Main" until you close the form try using the ShowDialog method of the form instead of the Show method. I think that's what you are looking for.
GeneralRe: Display a form in Sub Main() PinmemberMahesh167922:36 29 Mar '05  
GeneralThanks ! PinmemberMahesh167922:36 29 Mar '05  
QuestionHow to convert a string to form object? Pinmembersheel00718:26 29 Mar '05  
AnswerRe: How to convert a string to form object? PinmemberRitesh12343:19 30 Mar '05  
GeneralRe: How to convert a string to form object? Pinmembersheel00720:10 30 Mar '05  
QuestionHow to get the command line argument of the other processes in VB using Win32 API? PinmemberKent Liu17:39 29 Mar '05  
Generalserialization problem Pinmemberdisks86@gmail.com16:17 29 Mar '05  
GeneralDatagrid Pinmemberrusudhan16:12 29 Mar '05  
GeneralRe: Datagrid PinmemberChristian Graus16:34 29 Mar '05  
GeneralCode Downgrade PinmemberKevin Delaney14:20 29 Mar '05  
GeneralRe: Code Downgrade PinmemberProgrammer2k420:24 29 Mar '05  
GeneralRe: Code Downgrade PinmemberKevin Delaney0:52 30 Mar '05  
Generalmultiple objects in datagrid Pinmembernordyck13:21 29 Mar '05  
GeneralAdvice to learn assembly programming language PinmemberThe man from SCN-CO11:29 29 Mar '05  
GeneralRe: Advice to learn assembly programming language PinmemberColin Angus Mackay12:03 29 Mar '05  
GeneralRe: Advice to learn assembly programming language PinmemberChristian Graus12:09 29 Mar '05  
GeneralRe: Advice to learn assembly programming language PinmemberThe man from SCN-CO4:41 30 Mar '05  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.5.120528.1 | Last Updated 29 May 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid