Click here to Skip to main content
15,915,164 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to work with Collection in VB6? Pin
Dave Kreskowiak27-Dec-07 5:09
mveDave Kreskowiak27-Dec-07 5:09 
QuestionInstance of existing form and control manipulation Pin
Adnan Siddiqi26-Dec-07 6:21
Adnan Siddiqi26-Dec-07 6:21 
GeneralRe: Instance of existing form and control manipulation Pin
Dave Kreskowiak26-Dec-07 8:13
mveDave Kreskowiak26-Dec-07 8:13 
GeneralDataGridViewTextBoxEditingControl Pin
helelark12326-Dec-07 4:54
helelark12326-Dec-07 4:54 
GeneralRe: DataGridViewTextBoxEditingControl Pin
Dave Kreskowiak26-Dec-07 6:56
mveDave Kreskowiak26-Dec-07 6:56 
QuestionStoring PDF text unicode to database Pin
praabhu_p26-Dec-07 0:22
praabhu_p26-Dec-07 0:22 
GeneralRe: Storing PDF text unicode to database Pin
Dave Kreskowiak26-Dec-07 4:02
mveDave Kreskowiak26-Dec-07 4:02 
GeneralHRESULT : 0x80040202 in OPC Client OnDataChange handler. Pin
Prashant Khonde25-Dec-07 23:42
Prashant Khonde25-Dec-07 23:42 
Hi all,
I am developing OPC Client in VB.net. I have developed the code and reading OPC Items on Sampling as well as event based (OnDataChange). When I am working with local machine then my code works fine with both Sampling as well as OnDataChange, but when I am trying to read data from Remote OPC Server then Sampling works fine but I am not able fetch data on event based process. I am able to connect to the OPC Server but when i am adding subscription to it then i am getting error.

HRESULT : 0x80040202.

Public NetCredentials As New System.Net.NetworkCredential
Dim connectdt As Opc.ConnectData
Public WithEvents Subscription As ISubscription = Nothing
Public State As New Opc.Da.SubscriptionState

State = New Opc.Da.SubscriptionState

State.Active = True
State.UpdateRate = 500
Subscription = OpcServer.CreateSubscription(State)
results = Subscription.AddItems(Items)
AddHandler Subscription.DataChanged, New DataChangedEventHandler(AddressOf OnDataChange) ' Here is the error.
I appreciate if anybody suggests some solution.

Thanks in advance.

Prashant Khonde
Software Engineer
Navi Mumbai India

GeneralRe: HRESULT : 0x80040202 in OPC Client OnDataChange handler. Pin
Dave Kreskowiak26-Dec-07 3:58
mveDave Kreskowiak26-Dec-07 3:58 
GeneralRe: HRESULT : 0x80040202 in OPC Client OnDataChange handler. Pin
Prashant Khonde27-Dec-07 2:23
Prashant Khonde27-Dec-07 2:23 
QuestionHow to import data by character wise from excel to sql server Pin
kamarudeen25-Dec-07 23:36
kamarudeen25-Dec-07 23:36 
AnswerRe: How to import data by character wise from excel to sql server Pin
Dave Kreskowiak26-Dec-07 3:44
mveDave Kreskowiak26-Dec-07 3:44 
AnswerRe: How to import data by character wise from excel to sql server Pin
Paul Conrad30-Dec-07 10:47
professionalPaul Conrad30-Dec-07 10:47 
GeneralDataGridView: Add combobox Pin
nishkarsh_k25-Dec-07 23:05
nishkarsh_k25-Dec-07 23:05 
GeneralRe: DataGridView: Add combobox Pin
helelark12326-Dec-07 5:01
helelark12326-Dec-07 5:01 
GeneralRe: DataGridView: Add combobox Pin
nishkarsh_k26-Dec-07 17:33
nishkarsh_k26-Dec-07 17:33 
GeneralRe: DataGridView: Add combobox Pin
helelark12326-Dec-07 18:54
helelark12326-Dec-07 18:54 
GeneralRe: DataGridView: Add combobox Pin
nishkarsh_k26-Dec-07 23:19
nishkarsh_k26-Dec-07 23:19 
QuestionHow to save data from datatable to database using vb.net Pin
Eunice (VB junior)25-Dec-07 21:15
Eunice (VB junior)25-Dec-07 21:15 
AnswerRe: How to save data from datatable to database using vb.net Pin
Dave Kreskowiak26-Dec-07 8:28
mveDave Kreskowiak26-Dec-07 8:28 
Generalparallel port in VB .Net 2008 Pin
meki_211825-Dec-07 20:19
meki_211825-Dec-07 20:19 
GeneralRe: parallel port in VB .Net 2008 Pin
Dave Kreskowiak26-Dec-07 3:40
mveDave Kreskowiak26-Dec-07 3:40 
Questionhow to collect ip address of the systems in LAN Pin
Prakash_Mishra25-Dec-07 20:00
Prakash_Mishra25-Dec-07 20:00 
AnswerRe: how to collect ip address of the systems in LAN Pin
Dave Kreskowiak26-Dec-07 3:36
mveDave Kreskowiak26-Dec-07 3:36 
QuestionProgressBar (Vista) How do I: Split a PB to a few internal colors with different colors, and merging a Percentage indicator label within it? Pin
Shimmy Weitzhandler25-Dec-07 17:00
Shimmy Weitzhandler25-Dec-07 17:00 

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.