Click here to Skip to main content
15,909,445 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Is a workbook open? Pin
David Mujica27-Jan-12 6:55
David Mujica27-Jan-12 6:55 
SuggestionI would like to implement a before/after images Pin
krruertyret22-Jan-12 6:58
krruertyret22-Jan-12 6:58 
AnswerRe: I would like to implement a before/after images Pin
Luc Pattyn22-Jan-12 7:24
sitebuilderLuc Pattyn22-Jan-12 7:24 
GeneralRe: I would like to implement a before/after images Pin
krruertyret22-Jan-12 8:07
krruertyret22-Jan-12 8:07 
AnswerRe: I would like to implement a before/after images Pin
Luc Pattyn22-Jan-12 8:12
sitebuilderLuc Pattyn22-Jan-12 8:12 
GeneralRe: I would like to implement a before/after images Pin
krruertyret22-Jan-12 11:07
krruertyret22-Jan-12 11:07 
QuestionStrange error when starting program Pin
JR21220-Jan-12 19:38
JR21220-Jan-12 19:38 
AnswerRe: Strange error when starting program Pin
Luc Pattyn20-Jan-12 20:00
sitebuilderLuc Pattyn20-Jan-12 20:00 
Every WinForms Control (inluding a Form) has a Handle property which is used internally (it is to hold the HWND handle); when the control hasn't been sufficiently initialized, the Handle value is still undefined and some operations can't be performed yet. I don't remember having ever had the problem, however the solution should be:
- postpone special operations, maybe move some first-use code from the Form's constructor to its Load or Shown event;
- or: inside the Form constructor, force the handle to be generated, by executing something like IntPtr dummyHandle=myControl.Handle.

From the stack traceback, it seems like you may have a problem with a splash screen. I don' know for sure, and you might be using either a special VB one or one of your own, I do know I have seen lots of bad splash implementations: all control operations should run on the main thread, and that holds true for the splash screen as well.

BTW: if you do something like (this is C$, don't know how it gets packaged in VB):
Splash splash=new Splash();
splash.Show();
MainForm form=new MainForm();
form.Splash=spash;     // so the Shown event can close the splash when the main form is really done initializing
Application.Run(form); // this will show the main form, and hence the splash will be closed

then:
1) everything runs on the main thread;
2) the splash is visible as soon as possible;
3) the splash is fully initialized before the MainForm constructor might access it.

VB may offer its own implementation of a splash, and if so I don't know whether it is any good.

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

GeneralRe: Strange error when starting program Pin
JR21221-Jan-12 20:14
JR21221-Jan-12 20:14 
QuestionVisual Basic .net - Form loading Pin
No-e20-Jan-12 8:38
No-e20-Jan-12 8:38 
AnswerRe: Visual Basic .net - Form loading Pin
Dave Kreskowiak20-Jan-12 10:08
mveDave Kreskowiak20-Jan-12 10:08 
AnswerRe: Visual Basic .net - Form loading Pin
Eddy Vluggen20-Jan-12 10:13
professionalEddy Vluggen20-Jan-12 10:13 
QuestionString input is not in proper format Pin
Seema Bawa20-Jan-12 7:04
Seema Bawa20-Jan-12 7:04 
AnswerRe: String input is not in proper format Pin
Dave Kreskowiak20-Jan-12 7:21
mveDave Kreskowiak20-Jan-12 7:21 
GeneralRe: String input is not in proper format Pin
AspDotNetDev20-Jan-12 7:50
protectorAspDotNetDev20-Jan-12 7:50 
GeneralRe: String input is not in proper format Pin
Dave Kreskowiak20-Jan-12 8:32
mveDave Kreskowiak20-Jan-12 8:32 
AnswerRe: String input is not in proper format Pin
Luc Pattyn20-Jan-12 20:10
sitebuilderLuc Pattyn20-Jan-12 20:10 
QuestionCompare lines with a txt file Pin
vijay248220-Jan-12 0:16
vijay248220-Jan-12 0:16 
AnswerRe: Compare lines with a txt file Pin
Simon_Whale20-Jan-12 0:23
Simon_Whale20-Jan-12 0:23 
GeneralMessage Closed Pin
20-Jan-12 1:49
vijay248220-Jan-12 1:49 
GeneralRe: Compare lines with a txt file Pin
Eddy Vluggen20-Jan-12 6:00
professionalEddy Vluggen20-Jan-12 6:00 
Questionhelp in Display Data from Vb.net to Web Broweser on the interent Pin
Mangore7519-Jan-12 23:51
Mangore7519-Jan-12 23:51 
Generalhow to get auto generate no in more than field. Pin
anghan2219-Jan-12 18:51
anghan2219-Jan-12 18:51 
GeneralRe: how to get auto generate no in more than field. Pin
Richard MacCutchan19-Jan-12 23:08
mveRichard MacCutchan19-Jan-12 23:08 
Generalcombo box item selected its reflect in another Pin
anghan2219-Jan-12 18:45
anghan2219-Jan-12 18:45 

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.