Add A Component To The Form For Tcpclient And Tcpserver Like A Add One For A Textbox And A Botton?
Jan 1, 2008
Im learning Tcp communication right now, and Im a newbie :P First can i add a component to the form for tcpclient and tcpserver like a add one for a textbox and a botton?
Second, which method is better Dim listener As Net.Sockets.TcpListener Dim listenThread As Threading.Thread
or Dim tcpClient As New System.Net.Sockets.TcpClient()
View 39 Replies
ADVERTISEMENT
Apr 21, 2009
Is there a way to see live webcam using tcpclient and tcpserver
View 2 Replies
Apr 23, 2009
Can anyone tell me how to make make a TCPClient and be a TCPServer too at a the same time
View 1 Replies
Feb 3, 2011
I am converting an old Vb6 solution to .net 2.0 in vs2010. I've been working in C# for about 3 years now and .net for 5. I don't recall having this problem in C#, but if I want initialize a readonly collection of DerivedControlFoo Is there a clean way to do it besides creating a sub to do it all off somewhere else? I'd love to be able to do it at the class level at the declaration for readability and simplicity.
View 1 Replies
Mar 31, 2011
I have a .Net program that has to run on a cluster of server 2008. To find out the right IP I resolve the dns by GetHostEntry(VarDefinedInfConfig).AddressList(0)
but when I am converting my old code (this code picks the wrong IP) dns.GetHostName().AddressList(0) => this returns a virtual IP and not the right one.So I changed my TcpListener to (dns is parameter from config)Dim listener As TcpListener = New TcpListener(New IPEndPoint(Net.Dns.GetHostEntry(dns).AddressList(0), 8001))
listener.Start()
[Code]...
View 3 Replies
Jan 4, 2011
I'm using: [URL]. I already have the listener up and running. For the 'client' I'd like to change it to a 'form' program with a text field so i can enter one line of text and then a send button. I know how to drag the field and button over to a form but I'm not sure how to tell the program to use them?
Imports System
Imports System.IO
Imports System.Net
Imports System.Net.Sockets
Imports System.Text
Imports Microsoft.VisualBasic
[Code] .....
View 9 Replies
Jul 2, 2010
I have looked in the documentation for visual bsic 2010 a part visual studio 2010 and the obect broswer should be available from the VIEW menu in the designer view or in code view. The browser is not present and no botton on any tool bar.
View 1 Replies
Mar 16, 2011
I have a textbox that is constantly updating (a log). Every time text is input the textbox is scrolled to the top. I need the textbox to always be scrolled down. Seems simple enough? Im scratching my head on this one. I tried the following code
Private Sub Timer22_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer22.Tick
Log.SelectionStart = Log.TextLength
Log.ScrollToCaret()
End Sub
But the problem is the scroller jumps sporadically because it bounces to the top and then bounces down and it makes the program look sloppy.
View 5 Replies
Jul 4, 2011
[code]...
Localy i can connect and send / recieve fine with the client application If i connect remotely, the server sees my connection "And" can send data to the connection which the client can see, but the server cant get data from the client. the server continues the loop through and the socket never becomes ".Available"
View 4 Replies
May 19, 2011
I want to make commands in my tcpserver/client. like irc /kick /ban /unban etc...
View 1 Replies
Jan 5, 2009
I am working on a client/server based application and I have run into quite a few snags stumbling my way through I have resolved quite a few issues, and need help with something new. I am using a TCPIP client/server and I find that at the end of each loop when I am reading the data from the network stream it appends a character to the end. I have tried removing the last character but I am not sure if it is getting the whole character successfully because I still get lots of different errors both in binary and xml deserialization whcih I think is related to this. Does anyone know the ascii code for the termination character for TCPServer/Client communications?
View 15 Replies
Jan 15, 2009
I have to create a textbox and a label component. The textbox object will have to behave under the following conditions: 1. It will only accept letters and the ENTER key as input.
2. As an extension of condition #1, a message will appear whenever an invalid key is pressed
[Code]...
View 14 Replies
Jun 18, 2011
I have 2 forms main_frm and copying_frm. In main_frm, there is a list view that is populated with file names. The user then clicks save and all the files in the list are copied to a folder that they choose using a folder browser dialog. When this happens, I do copying_frm.ShowDialog() to display the copying_frm. The copying_frm contains a progress bar and a cancel button. I can get the progress bar to indicate how much has been copied. But that freezes up the application. To get around this, I create a new thread (called copyingThread) that copies the files. When that thread runs though, it can't access the waitingList_lvw in main_frm. For example, in the function that the copyingThread executes, if I have this line of code: MsgBox(main_frm.waitingList_lvw.Items.Count.ToString()) the result is 0. Also, I don't get any errors and no files are copied. How do I access waitingList_lvw in main_frm from a thread called copyThread that was created in copying_frm?
View 6 Replies
Mar 1, 2010
Create a DLL component for database operation and use created component in another project. Required methods, events and properties
a. Connect
b. Add
c. Delete
d. Save
e. Record navigation (first, next, previous, last)
f. Properties for all database fields
g. Events for validation of database fields.
View 1 Replies
Nov 9, 2009
I would like to save a form to complete in the properties of "My.Settings" Is this possible? [code]where my.setting.form2 is a system.windows.form. form.it is possible to do that ?
View 8 Replies
Feb 22, 2011
I'm developing a Component. I'd like to do something when the component is dragged from the toolbox and dropped onto a form. For example display an about box.I don't want to annoy the developer by popping up an about box every time he refreshes his display or reloads the form.
View 6 Replies
Mar 14, 2012
I drag a toolstrip component to my form. I insert two buttons n two separators. During i configure these items, some time it will disappear but in the properties side, i still can found these items still exists. But i can't found these component in my form. I tried to add same item with same name n it show a error message box(because already exist).
View 2 Replies
May 23, 2011
i have an ocx called TTF16.ocx. It is 32 bit and I placed it in Windows/SysWoW64 and register it as an admistrator (My system is Windows 7 64 bit). The control appears in the toolbox. When I try to add it in the form I got the following warnings
Warning 3 Cannot get the file path for type library "bef6e001-a874-101a-8bba-00aa00300cab" version 2.0. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) F1koe3
Warning 4 Could not resolve COM reference "b0475000-7740-11d1-bdc3-0020af9f8e6e" version 6.1. Object reference not set to an instance of an object. F1koe3
Warning 5 The referenced component 'TTF160' could not be found.
View 4 Replies
Sep 25, 2011
how to find the form that a component resides on.
I googled this and found several articles stating to do it as follows:
vb
Public ReadOnly Property FindForm() As ContainerControl
Get
Return mc_FindForm
[Code]....
View 9 Replies
Aug 6, 2011
Is there a way to resize all component when the form is maximized?
View 1 Replies
Mar 24, 2011
Is it possible to scroll the webbrowser-component to a form on the webpage?
View 1 Replies
May 1, 2010
I'm trying to make a Toolbox component which the user can drag onto a form in the VS Designer. The component has to recognize the Form it is on, in order to handle certain Form events. I would prefer to do it without requiring the user to add any code to the form. Does anyone know a way the component can get the identity of the form?
View 4 Replies
Dec 1, 2010
I have developed a Component and I want it to be able to detect when it's running in the IDE.
Or, let me rephrase that - I want my component to be able to detect when its parent form is running in the IDE.
I can use .DesignMode and a few other methods to detect when my component is running in the IDE (For example when my component is placed on a form etc)
But when the parent form is executed from within the IDE then .DesignMode returns false.
Is it possible for a component to detect if its parent (the form) was started via an IDE/Designer ? or via the command line/start menu or what ?
View 3 Replies
May 24, 2009
after i run the program, the form pop up showing no problem.however, when i click on the maximize button on the top right of the form, the form enlarge and fill the screen. but the components will not move accordingly.
View 2 Replies
Feb 2, 2010
I have an error that keeps regenerating when the form is closed and open back up.
1) Windows Form Application (Project: TestProject)
2) Add class in same project:
Public Class Test : Inherits System.Windows.Forms.TextBox
3) Drag and drop into the form within the project (works fine)
4) Close form
5) Re-open form... then error about the class Test in the project not defined
Actual Error: Type 'TestProject.Test' is not defined.
Is there a best way around this besides creating a separate project and putting the 'Test' class in that separate project and referring that separate project in the 'TestProject'?
Modified Added: By the way... i've used Global.TestProject.Test... but then again another error generate with the custom property within the 'Test' class.
View 5 Replies
Mar 6, 2009
Commonly if I maximized my form. It'll look like this And now, i just want to ask a simple question.. How to centered all those components if i maximized it??
View 1 Replies
Feb 20, 2011
I'm having problems with coding in VB 2010 Express. One of the many errors I am dealing with is the user interface form. It says it's a component, so I have to use it in a form.
View 2 Replies
Jun 21, 2012
I recently have been developing an application in .net that uses lots of components created as digital/analog input/outputs, and, when each component is clicked shows a form that shows it's state.The problem is that the form allows to change the state of the component and I don't really know how to reflect the change made in the windows to the component variables, as I don't know if there is a way to call the parent from a windows form or any similar way to do it.
View 5 Replies
Feb 4, 2009
(I use VB 2008) I'm working with the webbrowser-component. I got a problem to fill a text-field. The textfield is named "description" but I cant fill it. I guess it's because it's more than one form on the page that got a element named "description".
[Code]...
View 2 Replies
Jan 8, 2010
I've created a component whose name I'd like to be able to change while editing in the component tray. I've added a Designer action for a name property, but now I'm stuck.
Looking at the property grid, I can see that the name property is parenthesised, indicating that it's not a regular property.
View 1 Replies