|
I don't think I understand your question.
The way my VPN works on my laptop is that it is a small piece of software that I run when I am not inside my office network, like at a hotel. The hotel provides me with a connection to the Internet and the VPN software provides the "secure tunnel" for me to connect to my corporate network.
Once the VPN is started, everything on my laptop works, nothing special to access corporate network resources. This would mean that if I had a Symbol Scanner connected to my laptop and I was reading barcodes against a database that is back at the office, the scanner would work just fine.
The VPN does all the work for you. Your program that controls the scanner wouldn't even know that it was connecting through a VPN.
What is your problem ? You may have an issue with your application not being able to resolve server names; if so, it is most likely a problem with how your VPN is configured.
Here is a simple test. While connected to your corporate network you should be able to "ping myserver". Now outside the corporate network, start your VPN and try the "ping myserver" test again. If it doesn't work, then you need to resolve that first. Your application won't work if it can't resolve the "myserver" while the VPN is running.
|
|
|
|
|
Sorry I was not more explicit. I am scanning barcodes and other datum with the Symbol scanner and I must transfer it to a database situated sometimes thousand of miles away. I am using VB.Net 2005 to write the applicaiton.
First I need to unsure that I can connect and once I have a connection i need to update the database. Finally i must close the connection. I have no problem acccessing the VPN with the scanner manually but I must do it programmaatically.
clanguage
Software Engineer
|
|
|
|
|
The VPN connection should not be done in your app at all. This would tie your application to that specific VPN provider and make it pretty much impossible to change the VPN your company uses without changing your app.
Start the VPN connection from outside and seperately from your app, then start your app and it'll connect to the database without even knowing the VPN is there.
|
|
|
|
|
It seems that I was going about it the wrong way. I will try that and see what happens. Many thanks to all.
clanguage
Software Engineer
|
|
|
|
|
I have a couple of doubts and need clarification
1) Is Data control or plain coding good for data accessessing in VB.Net ? Books said it was not good to program using data control (back in vb6 and so I was good at plain coding).
2) If Data control is okay can I use both Data control and plain coding (seperately, ofcourse) in the same project ?
It is my doubt for a long time and someone please clarify.
Thank you.

|
|
|
|
|
tiagu wrote: ) Is Data control or plain coding good for data accessessing in VB.Net ? Books said it was not good to program using data control (back in vb6 and so I was good at plain coding).
Are you trying to learn VB.NET using an old VB6 book?? Don't. Pickup a book on VB.NET. It's VASTLY different and far better than VB6.
I have no idea what you're talking about when you say "Data control" and "plain coding". You're going to have to explain these for us to give you any kind of meaningful answer.
|
|
|
|
|
tiagu wrote: Is Data control or plain coding good for data accessessing in VB.Net ?
For a lot of data access scenarios, it is far better to use the inbuilt VB.Net Controls, as the coding effort required to implement their traffic reducing features and security alone , would be enormous. The .Net versions are far and away better than previous versions.
tiagu wrote: can I use both Data control and plain coding (seperately, ofcourse) in the same project
Yes. But you will need to learn about the Currency Management features of .NET, at the very least, to ensure no interaction problems.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Dave and Henru, in VB6 we can add a data control to the form and then write little coding to make it work effeciently. By plain codeing i meant interacting with database without using this data control. I was reading VB.Net books and still assumed data control has to be dragged to the form like in VB6.
I am new to VB.Net. And I naturally assumed I had to add a data control to the form for data interaction. In the past 4 or 5 days I have learnt through VB.Net documentation (this time carefully) that with inbuilt data control (as Henry said) we can code using data adapter, dataset and so on.
Now I think i am beginig to understand the answer to my own question (ofcourse with your help).
Thank you both for taking time to answer my pretty vague question.
Thank you once again with hearty gratitude.
Thank you Henry for your encouraging and sympathetic answer. Thank you.
|
|
|
|
|
hai everyone ,
well , i am trying 2 find a code in vb 2005 about how 2 search 4 string in a listview contains 4 column , whaterver if the complete (exact) word or a part of it , or even a single character , or a digit in each of these columns .
really i tried some codes but i cant figure it out , so if any one have a right code or example 4 this .. please tell me
thanx guys.
|
|
|
|
|
First, don't use TXTSpeak in the forums. It makes your posts hard to read and understand.
Next, You have to iterate through each item in the ListView yourself and probably use a Regular Expression to find the test your want.
No, I'm not writing your code for you.
|
|
|
|
|
As Dave said, and you might find the .Contains(String) function of a string useful. Also, because if only one character matches (in your case), you can iterate through each character in a string and see if it matches any character in the given string. Good Luck!
Zaegra
Motivation is the key to software development.
|
|
|
|
|
hi..
i am trying to develop a report using crystal report with ttx using vb.net 2005, in the first stage i created the report with data source as Field Definition Only. problem am facing is that how should i insert values to the ttx file. plz help me out in solving this..
|
|
|
|
|
Greetings !!!
I'm writing an app which has a WebBrowser where I'd like to open things like Word documents, pdf and djvu files etc.
The really BIG thing that I need would be to, say, open a file in the app's WebBrowser on a specific page.
How can I do it? Essentially I need to be able to access the document that is currently opened in MyWebBrowser and set it's page to, say, 4.
Any help would be greatly appreciated.
|
|
|
|
|
I'm not sure that you can. You would do better to use Word directly via the tool for office, instead of putting it in a web browser.
Christian Graus
Driven to the arms of OSX by Vista.
Please read this[ ^] if you don't like the answer I gave to your question.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
|
|
|
|
|
Unfortunately I HAVE to do it via the WebBrowser =(
But I can't seem to figure out how to get at the opened document's parameters. Maybe this info can be foun in WebBrowser.Document after I call WebBrowser.Navigate("C:\file.doc") ?
|
|
|
|
|
I doubt it, that's going to give you a HTML document. I believe that Word is just opening inside the browser as a COM object, so that's probably empty. You realise that the user still needs to have Word installed ?
Christian Graus
Driven to the arms of OSX by Vista.
Please read this[ ^] if you don't like the answer I gave to your question.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
|
|
|
|
|
Thank you for your fast and meaningful replies.
Yes I do realise that the user would have to have Word, Adobe Acrobat etc installed in order to open the documents. However, this issue will be dealt with in the program requirements =)
Here's what I've tried to do and the results of my actions:
Bits of code:
Dim doc As HtmlDocument
wb.Navigate("C:\1.doc")
doc = wb.Document
MsgBox(doc.GetElementsByTagName("EMBED").Count.ToString)
And the result returned by msgbox is ZERO !!! So it seems your were right. So I guess I'd need to somehow get inside the MS Word that opens the document inside my WebBrowser and figure out the page that the document is currently on, is that right ?
EDIT: Hmm, MsgBox(doc.Body.InnerText) returns an empty string as well. So methinks the issue is inside the Navigate method and the way it opens documents.
modified on Friday, June 5, 2009 6:14 AM
|
|
|
|
|
Agarwaen59 wrote: So I guess I'd need to somehow get inside the MS Word that opens the document inside my WebBrowser and figure out the page that the document is currently on, is that right ?
It's always good to know what you're talking about when you're defining requirements, so you can tell the client if what they want is possible. Yes, Word is still running, just inside the browser. You may be able to use the Office Tools to access your document ( I confess I've never used them )
Christian Graus
Driven to the arms of OSX by Vista.
Please read this[ ^] if you don't like the answer I gave to your question.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
|
|
|
|
|
Ok, i'll look into the Office Tools and see what I can do.
However, what should I do if user decides to open a pdf or djvu file on specified page ??? (A: shoot myself ?! )
|
|
|
|
|
Inside the web browser, you have no access to the viewer or the document it's showing. As far as I can find out, you cannot show a specific page.
|
|
|
|
|
hi,
i have one gridview,textbox and button in form
In Db contain Id,Name,Address
when i click the button show all information from db.
its working good.i need sort list the datagrid.
for example i have to enter A in textbox its automatically
sort list A names only(using like query). this also working good.
but already gridview contain 10 records.then added new search result also.
so i need to refresh datagrid n after search text.
thanks in advance
Yours,
KaNNaN
-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"
Mail To : foreverkans@gmail.com
|
|
|
|
|
You just reset it's datasource to the new data you want to show.
Christian Graus
Driven to the arms of OSX by Vista.
Please read this[ ^] if you don't like the answer I gave to your question.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
|
|
|
|
|
thanks..
i got solution....
Yours,
KaNNaN
-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"
Mail To : foreverkans@gmail.com
|
|
|
|
|
Try this:
datagridview.Update()
|
|
|
|
|
not working this method..
reset the data set. now perfectly working
Yours,
KaNNaN
-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"
Mail To : foreverkans@gmail.com
|
|
|
|