Click here to Skip to main content
15,927,895 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Help needed to serialize Controls using XML in VB.NET Pin
pvoicu21-Jun-04 3:10
pvoicu21-Jun-04 3:10 
GeneralRe: Help needed to serialize Controls using XML in VB.NET Pin
pvoicu21-Jun-04 3:20
pvoicu21-Jun-04 3:20 
Generaldatagrid to txt file Pin
Brakanjan20-Jun-04 23:57
Brakanjan20-Jun-04 23:57 
GeneralRe: datagrid to txt file Pin
Dave Kreskowiak21-Jun-04 3:54
mveDave Kreskowiak21-Jun-04 3:54 
GeneralCreation of Setup.exe, Myprogram.cab file using VB.NET Pin
manishthouri20-Jun-04 21:49
manishthouri20-Jun-04 21:49 
GeneralRe: Creation of Setup.exe, Myprogram.cab file using VB.NET Pin
Dave Kreskowiak21-Jun-04 3:51
mveDave Kreskowiak21-Jun-04 3:51 
GeneralRe: Access of data contained within an excel sheet which has been opened within a web browser control in a VB.NET windows form Pin
Dave Kreskowiak21-Jun-04 3:37
mveDave Kreskowiak21-Jun-04 3:37 
GeneralRe: Access of data contained within an excel sheet which has been opened within a web browser control in a VB.NET windows form Pin
vijaykri21-Jun-04 19:48
vijaykri21-Jun-04 19:48 
Hi Rage,

Thanks for the article. However I am facing a roadblack when it comes to trying to access the properties of the oDocument object.

The following is my translation of the Vb 6.0 code.

Private Sub MenuItem2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem2.Click
Dim OFD As New OpenFileDialog
Dim sFileName As String
'Find an office file...
With OFD
.FileName = ""
.Filter = "Microsoft Excel Files|*.xls"
.Title = "Select an Excel Document"
End With

If OFD.ShowDialog = DialogResult.OK Then
sFileName = OFD.FileName
oDocument = Nothing
Me.WBwr.Navigate(sFileName)
Me.URLCombo.Text = sFileName
End If

End Sub

- This enabled me to iniatilize the oDocument object to Nothing.

Then I wrote this code for the WebBrowser control

Private Sub WBwr_NavigateComplete2(ByVal sender As Object, ByVal e As AxSHDocVw.DWebBrowserEvents2_NavigateComplete2Event) Handles WBwr.NavigateComplete2
'On Error Resume Next
MsgBox(sender.GetType.ToString)
oDocument = sender.Document
MsgBox("File opened by : " & oDocument.Application.Document)

End Sub

- In the article in place of "sender", pDisp was the object. When I tried seeing the properties of the sender object it showed me only one item i.e., GetType. I am not able to access the Document object property here when I could do it in VB 6.0. No matter how much I have tried I simply cant access the Document property.

Halp!!!!!!

vijaykri
GeneralRe: Access of data contained within an excel sheet which has been opened within a web browser control in a VB.NET windows form Pin
Dave Kreskowiak22-Jun-04 1:40
mveDave Kreskowiak22-Jun-04 1:40 
GeneralRe: Access of data contained within an excel sheet which has been opened within a web browser control in a VB.NET windows form Pin
vijaykri22-Jun-04 1:58
vijaykri22-Jun-04 1:58 
Generalseek example code for pocket pc mp3 player / voice recorder Pin
softy7220-Jun-04 17:48
softy7220-Jun-04 17:48 
GeneralRe: seek example code for pocket pc mp3 player / voice recorder Pin
Dave Kreskowiak21-Jun-04 3:43
mveDave Kreskowiak21-Jun-04 3:43 
QuestionHow to turn XML file into Database Pin
neuaspx20-Jun-04 14:16
neuaspx20-Jun-04 14:16 
AnswerRe: How to turn XML file into Database Pin
Dave Kreskowiak21-Jun-04 3:24
mveDave Kreskowiak21-Jun-04 3:24 
GeneralFile to TreeView Problem Pin
bigmutty20-Jun-04 10:28
bigmutty20-Jun-04 10:28 
Generalmysterious compile error Pin
MGEMM20-Jun-04 7:22
MGEMM20-Jun-04 7:22 
QuestionHow to stop process before end? Pin
shinay19-Jun-04 19:39
shinay19-Jun-04 19:39 
AnswerRe: How to stop process before end? Pin
Dave Kreskowiak21-Jun-04 3:09
mveDave Kreskowiak21-Jun-04 3:09 
GeneralFrontpage extension question Pin
namvo19-Jun-04 16:35
namvo19-Jun-04 16:35 
GeneralRe: Frontpage extension question Pin
Dave Kreskowiak21-Jun-04 3:08
mveDave Kreskowiak21-Jun-04 3:08 
QuestionWhat's the prospect of MMC in Microsoft .NET plan? Pin
zzzhouzhou19-Jun-04 7:14
zzzhouzhou19-Jun-04 7:14 
AnswerRe: What's the prospect of MMC in Microsoft .NET plan? Pin
tanstaafl2820-Jun-04 14:21
tanstaafl2820-Jun-04 14:21 
GeneralOffice Com Addin Pin
vancouver77718-Jun-04 19:09
vancouver77718-Jun-04 19:09 
GeneralRe: Office Com Addin Pin
tanstaafl2819-Jun-04 7:18
tanstaafl2819-Jun-04 7:18 
GeneralRe: Office Com Addin Pin
vancouver77719-Jun-04 8:12
vancouver77719-Jun-04 8:12 

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.