Click here to Skip to main content
15,891,657 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: how to put a form in a form < need help!! Pin
Dave Kreskowiak9-Mar-07 5:09
mveDave Kreskowiak9-Mar-07 5:09 
QuestionCorrelated Treeview/Option group Scrolling Pin
TCHamilton8-Mar-07 12:06
TCHamilton8-Mar-07 12:06 
QuestionSetting security permissions for new folders Pin
aro19818-Mar-07 8:41
aro19818-Mar-07 8:41 
AnswerRe: Setting security permissions for new folders Pin
kubben8-Mar-07 9:06
kubben8-Mar-07 9:06 
Questionemail text to pager # over the smtp server Pin
jgreen298-Mar-07 6:19
jgreen298-Mar-07 6:19 
AnswerRe: email text to pager # over the smtp server Pin
Vasudevan Deepak Kumar9-Mar-07 7:15
Vasudevan Deepak Kumar9-Mar-07 7:15 
QuestionLaunch MS Access with Code Pin
New_Coder8-Mar-07 5:54
New_Coder8-Mar-07 5:54 
QuestionEmbedding dll in HTML [modified] Pin
wintergrave8-Mar-07 4:45
wintergrave8-Mar-07 4:45 
I'm developing a project on Visual Studio 2005 and I need to publush it on a web page. I'm using this HTML code:

<object
id="eDataMan"
name="eDataMan"
classid="http:eDataMan.dll#eDataMan.eDataMan"
style="width:100%; height:100%; background-color:ButtonFace; font-family:Arial; font-size:x-
small">
</object>

But all I get is a picture icon on the web page, the program does not run.

I'm using Component One True DBGrid control on my project

This is what I have on my VB.NET project:

Modulo objsafe.vb:
-----------------------------------------------------
Imports System.Runtime.InteropServices

Module objsafe
<ComImport()> _
<Guid("CB5BDC81-93C1-11CF-8F20-00805F2CD064")> _
<InterfaceType(ComInterfaceType.InterfaceIsIUnknown)> _
Public Interface IObjectSafety
Function GetInterfaceSafetyOptions(ByRef iid As Guid, ByRef pdwSupportedOptions As Integer, ByRef pdwEnabledOptions As Integer) As Integer
Function SetInterfaceSafetyOptions(ByRef iid As Guid, ByVal dwOptionSetMask As Integer, ByVal dwEnabledOptions As Integer) As Integer
End Interface
End Module
-----------------------------------------------------

Control eDataMan.vb:
-----------------------------------------------------
Public Class eDataMan
'Inherits Windows.Forms.UserControl
Implements IObjectSafety

' Constants for implementation of the IObjectSafety interface
Private Const INTERFACESAFE_FOR_UNTRUSTED_CALLER As Integer = &H1
Private Const INTERFACESAFE_FOR_UNTRUSTED_DATA As Integer = &H2

Public Function GetInterfaceSafetyOptions(ByRef iid As Guid, ByRef pdwSupportedOptions As Integer, ByRef pdwEnabledOptions As Integer) As Integer Implements IObjectSafety.GetInterfaceSafetyOptions
pdwSupportedOptions = INTERFACESAFE_FOR_UNTRUSTED_CALLER Or INTERFACESAFE_FOR_UNTRUSTED_DATA
pdwEnabledOptions = INTERFACESAFE_FOR_UNTRUSTED_CALLER Or INTERFACESAFE_FOR_UNTRUSTED_DATA
Return 0
End Function

Public Function SetInterfaceSafetyOptions(ByRef iid As Guid, ByVal dwOptionSetMask As Integer, ByVal dwEnabledOptions As Integer) As Integer Implements IObjectSafety.SetInterfaceSafetyOptions
Return 0
End Function

Private Sub eDataMan_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO CODE
MsgBox("I'm here")
End Sub
End Class
-----------------------------------------------------


-- modified at 12:02 Thursday 8th March, 2007
QuestionHow can I solve this problem [modified] Pin
Adekolurejo8-Mar-07 4:03
Adekolurejo8-Mar-07 4:03 
AnswerRe: How can I solve this problem Pin
Dave Kreskowiak8-Mar-07 4:30
mveDave Kreskowiak8-Mar-07 4:30 
Questionpbm in richtext box Pin
balakpn8-Mar-07 2:38
balakpn8-Mar-07 2:38 
AnswerRe: pbm in richtext box Pin
Dave Kreskowiak8-Mar-07 4:28
mveDave Kreskowiak8-Mar-07 4:28 
GeneralRe: pbm in richtext box Pin
balakpn8-Mar-07 17:19
balakpn8-Mar-07 17:19 
GeneralRe: pbm in richtext box Pin
Dave Kreskowiak9-Mar-07 4:54
mveDave Kreskowiak9-Mar-07 4:54 
Questionconnection not getting closed Pin
balakpn7-Mar-07 23:38
balakpn7-Mar-07 23:38 
AnswerRe: connection not getting closed Pin
Colin Angus Mackay8-Mar-07 0:02
Colin Angus Mackay8-Mar-07 0:02 
GeneralRe: connection not getting closed Pin
balakpn8-Mar-07 3:47
balakpn8-Mar-07 3:47 
GeneralRe: connection not getting closed Pin
Dave Kreskowiak8-Mar-07 4:27
mveDave Kreskowiak8-Mar-07 4:27 
GeneralRe: connection not getting closed Pin
balakpn8-Mar-07 17:22
balakpn8-Mar-07 17:22 
AnswerRe: connection not getting closed Pin
Daytona_6758-Mar-07 17:23
Daytona_6758-Mar-07 17:23 
GeneralRe: connection not getting closed Pin
balakpn8-Mar-07 18:02
balakpn8-Mar-07 18:02 
GeneralRe: connection not getting closed Pin
Daytona_6759-Mar-07 10:23
Daytona_6759-Mar-07 10:23 
QuestionSystem Date Pin
JonCox7-Mar-07 23:36
JonCox7-Mar-07 23:36 
AnswerRe: System Date Pin
andyharman8-Mar-07 2:40
professionalandyharman8-Mar-07 2:40 
AnswerRe: System Date Pin
The ANZAC8-Mar-07 9:41
The ANZAC8-Mar-07 9:41 

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.