Click here to Skip to main content
15,908,172 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to insert multiple checkbox value into database using VB Pin
sumit52833-Dec-08 18:50
sumit52833-Dec-08 18:50 
AnswerRe: How to insert multiple checkbox value into database using VB Pin
Nanda_MR3-Dec-08 22:02
Nanda_MR3-Dec-08 22:02 
Questionhelp with Antialiasing Pin
onlyehtisham3-Dec-08 0:46
onlyehtisham3-Dec-08 0:46 
GeneralRe: help with Antialiasing Pin
Luc Pattyn3-Dec-08 1:16
sitebuilderLuc Pattyn3-Dec-08 1:16 
GeneralRe: help with Antialiasing Pin
onlyehtisham3-Dec-08 7:05
onlyehtisham3-Dec-08 7:05 
GeneralRe: help with Antialiasing Pin
Luc Pattyn3-Dec-08 8:46
sitebuilderLuc Pattyn3-Dec-08 8:46 
AnswerRe: help with Antialiasing Pin
Dave Kreskowiak3-Dec-08 4:10
mveDave Kreskowiak3-Dec-08 4:10 
QuestionHiding Excel Workbook while VB.NET application is running... Pin
scot_in2-Dec-08 23:52
scot_in2-Dec-08 23:52 
I have a VB.NET application and I am using following code to work on an existing Excel file.

Private xlApp As Excel.ApplicationClass
Private xlWbk As Excel.Workbook

xlApp.Visible = False
xlApp.DisplayAlerts = False
xlWbk = xlApp.Workbooks.Open("c:\xlWbk.xls")


While the application is running I don't want the Excel workbook to be visible to the users. As long as I am not opening an external Excel file (outside the application), everything works fine. However, when i am opening an external Excel file say, "a.xls", I can see my xlWbk.xls very much visible in front of me! This is 'dangerous' for the application as if the user closes this file, the application will cease to work!

Is there a way I can hide the Excel file the application is using.. and still work on another external Excel file?

Seems like the external Excel workbook is using the same instance of xlApp that was generated thru the code. So when i close any of the Excel files, the above application throws exceptions.

Is there a workaround for the above?

Thanks.
AnswerRe: Hiding Excel Workbook while VB.NET application is running... Pin
Dave Kreskowiak3-Dec-08 4:08
mveDave Kreskowiak3-Dec-08 4:08 
GeneralRe: Hiding Excel Workbook while VB.NET application is running... Pin
scot_in3-Dec-08 20:58
scot_in3-Dec-08 20:58 
AnswerRe: Hiding Excel Workbook while VB.NET application is running... Pin
Thomas Stockwell3-Dec-08 6:26
professionalThomas Stockwell3-Dec-08 6:26 
GeneralRe: Hiding Excel Workbook while VB.NET application is running... Pin
scot_in3-Dec-08 21:00
scot_in3-Dec-08 21:00 
QuestionComparing Lists Pin
Tauseef A2-Dec-08 23:38
Tauseef A2-Dec-08 23:38 
AnswerRe: Comparing Lists Pin
Dave Kreskowiak3-Dec-08 4:03
mveDave Kreskowiak3-Dec-08 4:03 
QuestionHow to access network web cam using .net code Pin
irshad.don2-Dec-08 20:23
irshad.don2-Dec-08 20:23 
AnswerRe: How to access network web cam using .net code Pin
Christian Graus2-Dec-08 20:30
protectorChristian Graus2-Dec-08 20:30 
GeneralRe: How to access network web cam using .net code Pin
irshad.don2-Dec-08 22:17
irshad.don2-Dec-08 22:17 
GeneralRe: How to access network web cam using .net code Pin
Dave Kreskowiak3-Dec-08 4:02
mveDave Kreskowiak3-Dec-08 4:02 
Questioninsert data into DataGrid from Oracle database using Vb 6.0] Pin
sumit52832-Dec-08 19:53
sumit52832-Dec-08 19:53 
AnswerRe: insert data from Oracle database using DataGrid Pin
Vimalsoft(Pty) Ltd2-Dec-08 20:08
professionalVimalsoft(Pty) Ltd2-Dec-08 20:08 
GeneralRe: insert data from Oracle database using DataGrid Pin
sumit52832-Dec-08 20:21
sumit52832-Dec-08 20:21 
GeneralRe: insert data from Oracle database using DataGrid Pin
Vimalsoft(Pty) Ltd2-Dec-08 22:51
professionalVimalsoft(Pty) Ltd2-Dec-08 22:51 
AnswerRe: insert data into DataGrid from Oracle database using Vb 6.0] Pin
Nanda_MR2-Dec-08 21:56
Nanda_MR2-Dec-08 21:56 
GeneralRe: insert data into DataGrid from Oracle database using Vb 6.0] Pin
sumit52832-Dec-08 23:03
sumit52832-Dec-08 23:03 
GeneralRe: insert data into DataGrid from Oracle database using Vb 6.0] Pin
Wendelius3-Dec-08 10:44
mentorWendelius3-Dec-08 10:44 

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.