Html - Simulating The Web Client/web Server Interaction In A Winform Using A Webbrowser Object?

Aug 6, 2009

Simulating the web Client/web server interaction in a winform using a webbrowser object in vb2005.net

In short I'm using the web browser object as a gui for a giant treeview folder list, in the html there is a form that needs to submit to perform the action, del, rename, etc.

How do I make my program catch the submit, process it and spit out the new info out to the webbrowser item in vb2005 winform?

View 1 Replies


ADVERTISEMENT

Send Serialize Object From Client To Server?

Aug 10, 2010

I am trying to send an Arraylist over to my server to broadcast to all other clients but I am not sure after serializing it, how do I proceed to send across. [code]....

View 1 Replies

HtmlElement From A WebBrowser Object Strips Double Quotes From HTML?

Mar 1, 2010

I am grabbing an HTMLElement from a browser object and then using getElementById to grab the element I want. When the element is grabbed into the HtmlElement object double quotes around attributes like <input type="checkbox" name="test1" /> becomes <input type=checkbox name=test1>.It is removing the double quotes and backslash from the HTML available in the HtmlElement. Is there anyway to get the HTML element from Visual Basic .NET code and keep the true HTML formatting?

View 1 Replies

C# - Server To Server File Transfer Without Any User Interaction?

Feb 16, 2011

In my scenario, users are able to upload zip files to a.[url]....I would love to create a "daemon" which in specified time intervals will move-transfer any zip files uploaded by the users from a[url].....From the info i gathered so far,

The daemon will be an .ashx generic handler.

The daemon will be triggered at the specified time intervals via a plesk cron job

The daemon (thanks to SLaks) will consist of two FtpWebRequest's (One for reading and one for writing).

how could i implement step 3?

Do i have to read into to a memory() array the whole file and try to write that in b.example.com ?

How could i write the info i read to b[url].....?

Could i perform reading and writing of the file at the same time? No i am not asking for the full code, i just can figure out, how could i perform reading and writing on the fly, without user interaction.I mean i could download the file locally from a.example.com and upload it at b.example.com but that is not the point.

View 8 Replies

VS 2008 TCP Server / Client - Client To Send The Server 4 Numbers - Depending On The User's Choice

May 9, 2009

how to create a client/server... But I couldn't... I don't want anything fancy. Just want the client to send the server 4 numbers, depending on the user's choice; after that, the server would turn off the pc, restart it, etc. It all depends on the number received. Is there a rather "simple" way to do it? If it's not to much trouble you could use Atheist's example. (Btw I don't understand the code and, yes, I've checked on [URL])

View 9 Replies

VS 2010 : Send Data From Client To Server (encrypted) And The String Sent From The Client Is Not The Same As Received From The Server?

Jun 27, 2011

Hey guys, I am trying to send data from client to server (encrypted) and the string sent from the client is not the same as recieved from the server. I've been killing my brain for hours to get this to work but I cant manage. Im converting everything to Base64 string.

Client:

Public Sub SendMessage(ByVal msg As String)
Try
SyncLock myclient.GetStream
sw = New IO.StreamWriter(myclient.GetStream)

[code]....

View 4 Replies

Code On 2003 Server Won't Print Html File From WebBrowser Or AxDHTMLEDLib?

Aug 10, 2009

I have code that works fine on my XP machine. It loads an HTML document into the VB 6 WebBrowser control and then uses the following command to print the document without any print dialog box:mfrmPrint.WebBrowser1.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER, PRINT_DONTBOTHERUSER_WAITFORCOMPLETIONI have also just implemented a .NET C# DLL that uses the axDHTMLEDLib. It also works fine on my XP computer.

View 4 Replies

Send Formatted HTML From A Database To A Specific (non-default) Printer With No User Interaction?

Apr 5, 2011

I'm currently pulling HTML data from a database and displaying it in a WebBrowser control in my VB.Net application so that it's correctly rendered. The next step is to print it, but I need to be able to send it to a specific printer rather than the default printer. How can I accomplish this?

View 1 Replies

Client-Server-Client Multithreading - Instant Message Another Client

Jun 21, 2010

We are creating a Who wants to be a millionaire style game in VB. Our server is pulling information such as questions and answers from a Access Database and sending them to the contestants (Clients). All transfer of information is directly from the server to each client. One of the "Life Lines" we want to use is "Ask a friend", where one client is able to Instant message another client for a short time to get help on the question.

[Code]...

View 2 Replies

Printing - Send Formatted HTML From A Database To A Specific (non-default) Printer With No User Interaction In .Net?

Jul 16, 2010

I'm currently pulling HTML data from a database and displaying it in a WebBrowser control in my VB.Net application so that it's correctly rendered. The next step is to print it, but I need to be able to send it to a specific printer rather than the default printer.

View 1 Replies

Create Client-server App, In Which Client Can View Files On Server?

Nov 15, 2011

basically i just want client to say "C: emp" ENTER

then, server must reply with all its files in c: emp

View 1 Replies

Possible To Spoof Referrer Of A Webbrowser Object That Is Posting Data To A Server?

Aug 14, 2010

Is it possible to spoof the referrer of a webbrowser object that is posting data to a server? I would change to WebRequests, but this needs to be done via a browser.

View 2 Replies

Communications :: Client-server Communication Program - Click On CmdListen In The Server Form And CmdConnect In The Client Form

Jul 23, 2008

The problem I have is: When I click on cmdListen in the server form and cmdConnect in the client form,both programs won't respond and they crash for some reason I don't know.

Client source code:

Code:

Imports System.Net.Sockets
Imports System.Text
Public Class Form1

[CODE]...

Code:
Imports System.Net.Sockets
Imports System.Text
Public Class Form1

[CODE]...

View 3 Replies

Ship Winform Application To Client Without Net?

Sep 22, 2011

I'm a total newbie in programming. I have question about the deployment of winform application. I have created a winform application. But I'm not sure if the users have installed .Net version 4. I have put my winform application at my website and the users will download it to desktop.

My question is: How to automate the process of downloading and install .Net 4 if users have not install it? What are the recommended ways of deploying winform applications to users?

View 4 Replies

C# - Send An Object From Client-side Javascript To Server-side Code Via ASP.NET?

May 23, 2011

Can I send an object from client-side javascript to server-side code via ASP.NET ?

View 5 Replies

Server/Client - Basic Tcp Server/client Application

Mar 30, 2009

I've basically made a basic tcp server/client application. The thing is that I'm behind a router and so will be the other people that use my clients. I've had to use port-forwarding or the software "rinetd"to run quite a few applications online.

Let me explain: I'm on a lan network that connects to the internet. Whenever I want to host a server - for instance a basic ftp or http server. If I give my external IP to anyone, they won't be able to access my server. Even if I portforward, it doesnt work. I have to use rinetd here. For other applications, portforwarding works. I'm not sure how these things work at all.

Anyway, my issue now is that I have created this server/client application. I'm having serious doubts that if I run the server, I'll have to either a) portforward or use rinetd to get people to connect to my server. IF I need to portforward, that's fine. However, using rinetd would really suck... My 2nd concern is as follows: IF the person running the client is in a similar situation as me (i.e he's on a lan that has a router which connects to the net), will he have to portforward or use rinetd as well? If he portforwards that's fine. But I don't think I could get people to use rinetd.... Also, if there are more than 1 person on a lan trying to connect to my server, there is a big problem when they try to portforward: they will only be able to allocate one of their internal ip to that port, and the others won't be able to connect, right? How does this work? I mean, I use many softwares like msn/skype/(some games)/firefox that do not need portforwarding/rinetd. Yet they work. My housemates(other people on the lan) use the same softwares, and it works fine. There's no clash/probs watsoever How come these run fine?

Anyway, back to my issues. Given I have no knowledge about how the above work, I was wondering whether there was a way to host a vb .net server application on an external website (external to my house) so that I might *avoid* the above mentioned problems, and to what extent that would be a sound solution.

View 11 Replies

Writing A Program With 1 Client And Server Where Client Side Creates A Text File

Dec 1, 2008

I have been reading through Atheists posts in regards to client-server and TCP client/server connection's. But how do i go about writing a program with 1 client and server where the client side creates a text file.Once the server sees there is a text file it connects and downloads it to itself or the client pushes the text file to the server.Once on the server i will read the text file and put its info into a sql db.

View 14 Replies

VS 2008 Chat Server/client - After The Client Clicks Disconnect Or Closes By Task Manager, Looses Connection

Aug 18, 2009

Im using the code from [URL] as a starter, most of the code is the same. the chat system works fine but on the client a added a disconnect button "clientSocket.Close()" and as soon as i click that i get errors, on the client, this is the code...

Private Sub getMessage()
For infiniteCounter = 1 To 2

[CODE]...

And this line...

serverStream.Read(inStream, 0, buffSize)
gives me "Unable to read data from the transport connection: A blocking operation was interrupted by a call to WSACancelBlockingCall."

Now im talking the server, after the client clicks disconnect or closes by task manager, looses connection, etc the server crashes and gives me.

View 5 Replies

C# - How To Show Html Formatted Content (without Image) In A Winform

Sep 22, 2011

I want to show html formatted string in my winform application. What control should I use?

View 5 Replies

Forms :: Passing Parameters From Winform To Html Document?

Mar 25, 2010

i have a windows form that has a web browser control.

i need to pass the value from the windows form to the html doc.

here is my problem.... can pass the value across to to a function in the html page but when i try to pass the same value to an image tag in the same document it does not read the value.

here is my code from the winform
If e.Url.Equals(wb1.Url) Then
wb1.Document.InvokeScript("fetchImage", New Object() {path})
End If

it passes through the variable 'path' to a function in the html doc.

heres the code for the html doc.... this part of the code works

function fetchImage(path) {
var now = new Date();
var zm_image = new Image();

[Code]....

View 1 Replies

Chat Client To Client Without Server Just Use IP Address For It?

Apr 19, 2012

Chat Client to Client Without Server Just Use IP Address For it?

View 1 Replies

Winform Sending And Getting Data From Embedded Webbrowser?

Oct 26, 2011

winform sending and getting data from embeded webbrowser

View 2 Replies

Simple Screen Saver - Load Flash File (swf) Into Webbrowser On WinForm?

Jun 9, 2009

how to do a simple screen saver using VB.NET when the user do not use my application? DO i need to use API programming in order to do it?I just need a simple screen saver that will load my flash file (swf) into my webbrowser on my WinForm if the user no longer use my application.Note that this is a Window-base application, NOT web-based.

View 4 Replies

VS 2008 Multi-User Chat Program (Server & Client) With Main Server?

Aug 10, 2009

Multi-User Chat Program (Server & Client) with Main Server?

View 1 Replies

Clinet/server The Server Broadcast Media Files To Client I Used Tcp/ip Protocol?

May 13, 2011

i have 2 application clinet/server the server broadcast media files to client i used tcp/ip protocol the server code is work good but i have a problem in client code i need ineed someone to correct the code .iwll show where the error is in the code note: i call the class in the main form dim a as recive in the starter of the main form class to be gloable .

[Code]...

View 4 Replies

SQL Server 2008 Configuration For Client Server (Windows Form) Application

Apr 6, 2012

Case : I'm creating an application (desktop application) with VB.NET (actually windows form), and using SQL Server Express 2008 for its database.

[Code]...

View 1 Replies

The SMTP Server Requires A Secure Connection Or The Client Was Not Authenticated. The Server Response Was 5.5.1 Authentication Required

Nov 28, 2009

This emailing code wont seem to work in my program. I get an exception "The SMTP server requires a secure connection or the client was not authenticated. The server response was 5.5.1 authentication required."

Imports System.Net.Mail
Public Class emailStudent
Private Sub sendEmailButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles sendEmailButton.Click
SendMail()

[code]....

View 12 Replies

Difference Between SQL Server Native Client And SQL Server DSN To Support SP Execution?

Jul 9, 2009

I wrote a VB code to call a sp in sql server 2005, which returns a recordset as follows:Dim objRecordset As ADODB.Recordset Set objComm = New ADODB.Command

Set objRecordset = objComm.Execute If Not objRecordset.BOF And Not objRecordset.EOF Then
Set objRecordset = objRecordset.NextRecordset I need to continue to get next recordset since there are many select statements inside the sp which I need to get the data. The code works fine when I create the DSN using SQL Server but it does not work when using the connection string or SQL Server Native Client DSN. It either breaks at Set objRecordset = objComm.Execute ( connection string )or at If Not objRecordset.BOF And Not objRecordset.EOF Then(SQL native client )

I have worked on this for a couple of days now and could not figure it out.Is this a bug in SQL Native Client or something related to some configuration on the database side? IS there a way I can change the connection property to get this working using SQL native client or connection string?

View 1 Replies

Info: Multithreaded Server Socket Program Or Client/Server?

Oct 26, 2011

I made a simple TCP server (I've found the example on the web) in VB to receive data from about 40 TCP clients.The clients are not synchronized but sends data about every 18 minutes; the problem is sometimes several clients sends data at the same moment, so I can't receive data.I also made a second program that reads the data (server program writes data on a file, read from the second program) scheduled.

My question is this: I've seen on the web examples about Multithreaded Server Socket Program, so I suppose this could manage my 40 clients (but now the clients are syncronized and send data at the same time in client mode) or is better get data (I have a central client that asks data to all 40 devices in server mode)?

Second question: can I make a single program where I run both TCP client and TCP server at the same time?

View 1 Replies

Load Photos From Server To .net Winform?

Feb 28, 2010

I have a WinForm WinApplication that is suppose to show photos of employees. I want to have the photos sit in a file on the server. Then when the applicatin needs the photo it will load it from the server to the app.How can you do this. I am using VS2008.

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved